Copyright | 2021 Dominik Schrempf |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creation date: Mon Jan 11 16:34:18 2021.
Synopsis
- type MarginalLikelihood = Log Double
- newtype NPoints = NPoints {
- fromNPoints :: Int
- data MLAlgorithm
- data MLSettings = MLSettings {}
- marginalLikelihood :: ToJSON a => MLSettings -> PriorFunction a -> LikelihoodFunction a -> Cycle a -> Monitor a -> InitialState a -> StdGen -> IO MarginalLikelihood
Documentation
type MarginalLikelihood = Log Double Source #
Marginal likelihood values are stored in log domain.
The number of points used to approximate the path integral.
data MLAlgorithm Source #
Algorithms to calculate the marginal likelihood.
ThermodynamicIntegration | Use a classical path integral. Also known as thermodynamic integration. In particular, Annealing-Melting Integration is used. See Lartillot, N., & Philippe, H., Computing Bayes Factors Using Thermodynamic Integration, Systematic Biology, 55(2), 195–207 (2006). http://dx.doi.org/10.1080/10635150500433722 |
SteppingStoneSampling | Use stepping stone sampling. See Xie, W., Lewis, P. O., Fan, Y., Kuo, L., & Chen, M., Improving marginal likelihood estimation for Bayesian phylogenetic model selection, Systematic Biology, 60(2), 150–160 (2010). http://dx.doi.org/10.1093/sysbio/syq085 Or Fan, Y., Wu, R., Chen, M., Kuo, L., & Lewis, P. O., Choosing among partition models in bayesian phylogenetics, Molecular Biology and Evolution, 28(1), 523–532 (2010). http://dx.doi.org/10.1093/molbev/msq224 |
Instances
Read MLAlgorithm Source # | |
Defined in Mcmc.MarginalLikelihood readsPrec :: Int -> ReadS MLAlgorithm # readList :: ReadS [MLAlgorithm] # readPrec :: ReadPrec MLAlgorithm # readListPrec :: ReadPrec [MLAlgorithm] # | |
Show MLAlgorithm Source # | |
Defined in Mcmc.MarginalLikelihood showsPrec :: Int -> MLAlgorithm -> ShowS # show :: MLAlgorithm -> String # showList :: [MLAlgorithm] -> ShowS # | |
Eq MLAlgorithm Source # | |
Defined in Mcmc.MarginalLikelihood (==) :: MLAlgorithm -> MLAlgorithm -> Bool # (/=) :: MLAlgorithm -> MLAlgorithm -> Bool # |
data MLSettings Source #
Settings of the marginal likelihood estimation.
MLSettings | |
|
Instances
Read MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood readsPrec :: Int -> ReadS MLSettings # readList :: ReadS [MLSettings] # readPrec :: ReadPrec MLSettings # readListPrec :: ReadPrec [MLSettings] # | |
Show MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood showsPrec :: Int -> MLSettings -> ShowS # show :: MLSettings -> String # showList :: [MLSettings] -> ShowS # | |
Eq MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood (==) :: MLSettings -> MLSettings -> Bool # (/=) :: MLSettings -> MLSettings -> Bool # | |
HasLogMode MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood getLogMode :: MLSettings -> LogMode Source # | |
HasVerbosity MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood getVerbosity :: MLSettings -> Verbosity Source # | |
HasAnalysisName MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood | |
HasExecutionMode MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood |
marginalLikelihood :: ToJSON a => MLSettings -> PriorFunction a -> LikelihoodFunction a -> Cycle a -> Monitor a -> InitialState a -> StdGen -> IO MarginalLikelihood Source #
Estimate the marginal likelihood.