amlc
is a tool for analytically marginalizing over linear continuum parameters in models of absorption line spectra.
amlc
can be installed with pip
:
pip install amlc --user
- Python 3.5+
numpy
scipy
amlc
is designed for evaluating the likelihood of a spectrum given the spectrum's uncertainties, a design matrix for the continuum model, and a proposed set of absorption features:
from amlc.marginalized_likelihood import MarginalizedLikelihood
marginalized_likelihood_instance = MarginalizedLikelihood(observed_spectrum, variance_of_observed_spectrum, continuum_design_matrix)
marginalized_likelihood_instance(proposed_transmittance_model, return_logp=True)['logp']
This material is based upon work supported by the National Science Foundation under Grant Number 1616177
Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This project is Copyright (c) Kirill Tchernyshyov and is licensed under the MIT license (see the LICENSE file).