Skip to content
/ amlc Public

Analytic marginalization of linear continuum parameters

License

Notifications You must be signed in to change notification settings

ktchrn/amlc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Analytic marginalization of linear continuum parameters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages