Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.32 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.32 KB

Build Status

amlc is a tool for analytically marginalizing over linear continuum parameters in models of absorption line spectra.

Installation instructions

amlc can be installed with pip:

pip install amlc --user

Dependencies

  • Python 3.5+
  • numpy
  • scipy

Basic usage

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']

Support

This material is based upon work supported by the National Science Foundation under Grant Number 1616177

Disclaimer

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.

License

This project is Copyright (c) Kirill Tchernyshyov and is licensed under the MIT license (see the LICENSE file).