| Copyright | (c) Dominik Schrempf 2020 |
|---|---|
| License | GPL-3.0-or-later |
| Maintainer | dominik.schrempf@gmail.com |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Mcmc.Chain.Chain
Description
Creation date: Tue May 5 18:01:15 2020.
Synopsis
- type PriorFunction a = a -> Log Double
- noPrior :: PriorFunction a
- type LikelihoodFunction a = a -> Log Double
- noLikelihood :: LikelihoodFunction a
- data Chain a = Chain {
- chainId :: Int
- link :: Link a
- iteration :: Int
- trace :: Trace a
- acceptance :: Acceptance (Proposal a)
- generator :: GenIO
- start :: Int
- priorFunction :: PriorFunction a
- likelihoodFunction :: LikelihoodFunction a
- cycle :: Cycle a
- monitor :: Monitor a
Documentation
type PriorFunction a = a -> Log Double Source #
Prior function.
noPrior :: PriorFunction a Source #
Flat prior function. Useful for testing and debugging.
type LikelihoodFunction a = a -> Log Double Source #
Likelihood function.
noLikelihood :: LikelihoodFunction a Source #
Flat likelihood function. Useful for testing and debugging.
The chain contains all information to run an MCMC sampler.
The state of a chain has type a. If necessary, the type a can also be
used to store auxiliary information.
For example, the chain stores information about the current Link and
iteration, the Trace, the Acceptance rates, and the random number
generator.
Further, the chain includes auxiliary variables and functions such as the
prior and likelihood functions, or Proposals to move around the state space
and to Monitor an MCMC run.
The Environment of the chain is not stored externally.
Constructors
| Chain | |
Fields
| |