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 |
Creation date: Tue May 5 18:01:15 2020.
Synopsis
- data Status a = Status {
- name :: String
- item :: Item a
- iteration :: Int
- trace :: Trace a
- acceptance :: Acceptance (Proposal a)
- burnInIterations :: Maybe Int
- autoTuningPeriod :: Maybe Int
- iterations :: Int
- forceOverwrite :: Bool
- save :: Maybe Int
- verbosity :: Verbosity
- generator :: GenIO
- start :: Maybe (Int, UTCTime)
- logHandle :: Maybe Handle
- priorF :: a -> Log Double
- likelihoodF :: a -> Log Double
- cycle :: Cycle a
- monitor :: Monitor a
- status :: String -> (a -> Log Double) -> (a -> Log Double) -> Cycle a -> Monitor a -> a -> Maybe Int -> Maybe Int -> Int -> GenIO -> Status a
- saveWith :: Int -> Status a -> Status a
- force :: Status a -> Status a
- quiet :: Status a -> Status a
- debug :: Status a -> Status a
Documentation
The Status
contains all information to run an MCMC chain. It is
constructed using the function status
.
The polymorphic type a
stores the state of the chain. It can also be used
to store auxiliary information.
Status | |
|
:: String | Name of the Markov chain; used as file prefix. |
-> (a -> Log Double) | The prior function. |
-> (a -> Log Double) | The likelihood function. |
-> Cycle a | A list of |
-> Monitor a | A |
-> a | The initial state in the state space |
-> Maybe Int | Number of burn in iterations; deactivate burn in with |
-> Maybe Int | Auto tuning period (only during burn in); deactivate
auto tuning with |
-> Int | Number of normal iterations excluding burn in. Note that auto tuning only happens during burn in. |
-> GenIO | A source of randomness. For reproducible runs, make sure to use generators with the same, fixed seed. |
-> Status a |
Initialize the Status
of a Markov chain Monte Carlo run.
force :: Status a -> Status a Source #
Overwrite existing files; it is not necessary to use force
, when a chain
is continued.