| 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 |
Mcmc.Cycle
Description
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 Proposals are executed in a Cycle. The total
number of Proposals per Cycle may differ between Orders (e.g., compare
RandomO and RandomReversibleO).
Constructors
| 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 Proposals in
the Cycle have been completed, and the iteration counter will be increased
by one. The order in which the Proposals 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?
Constructors
| AllProposals | |
| FastProposals |
Instances
| Eq IterationMode Source # | |
Defined in Mcmc.Cycle Methods (==) :: IterationMode -> IterationMode -> Bool # (/=) :: IterationMode -> IterationMode -> Bool # | |
prepareProposals :: StatefulGen g m => IterationMode -> Cycle a -> g -> m [Proposal a] Source #
Replicate Proposals 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 #