Copyright | 2021 Dominik Schrempf |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creation date: Thu Jul 8 17:56:03 2021.
Synopsis
- data Order
- data Cycle a
- cycleFromList :: [Proposal a] -> Cycle a
- setOrder :: Order -> Cycle a -> Cycle a
- data IterationMode
- prepareProposals :: StatefulGen g m => IterationMode -> Cycle a -> g -> m [Proposal a]
- autoTuneCycle :: TuningType -> Acceptances (Proposal a) -> Maybe (Vector a) -> Cycle a -> Cycle a
- summarizeCycle :: IterationMode -> Acceptances (Proposal a) -> Cycle a -> ByteString
Cycles
Define the order in which Proposal
s are executed in a Cycle
. The total
number of Proposal
s per Cycle
may differ between Order
s (e.g., compare
RandomO
and RandomReversibleO
).
RandomO | Shuffle the |
SequentialO | The |
RandomReversibleO | Similar to |
SequentialReversibleO | Similar to |
In brief, a Cycle
is a list of proposals.
The state of the Markov chain will be logged only after all Proposal
s in
the Cycle
have been completed, and the iteration counter will be increased
by one. The order in which the Proposal
s are executed is specified by
Order
. The default is RandomO
.
No proposals with the same name and description are allowed in a Cycle
, so
that they can be uniquely identified.
cycleFromList :: [Proposal a] -> Cycle a Source #
data IterationMode Source #
Use all proposals, or use fast proposals only?
Instances
Eq IterationMode Source # | |
Defined in Mcmc.Cycle (==) :: IterationMode -> IterationMode -> Bool # (/=) :: IterationMode -> IterationMode -> Bool # |
prepareProposals :: StatefulGen g m => IterationMode -> Cycle a -> g -> m [Proposal a] Source #
Replicate Proposal
s according to their weights and possibly shuffle them.
autoTuneCycle :: TuningType -> Acceptances (Proposal a) -> Maybe (Vector a) -> Cycle a -> Cycle a Source #
Output
summarizeCycle :: IterationMode -> Acceptances (Proposal a) -> Cycle a -> ByteString Source #