mcmc-0.3.0: Sample from a posterior using Markov chain Monte Carlo
Copyright(c) Dominik Schrempf 2020
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Mcmc.Monitor.Parameter

Description

Creation date: Fri May 29 11:11:49 2020.

Synopsis

Parameter monitors

data MonitorParameter a Source #

Instruction about a parameter to monitor.

Convert a parameter monitor from one data type to another with (>$<).

For example, monitor a Double value being the first entry of a tuple:

mon = fst >$< monitorDouble

Constructors

MonitorParameter 

Fields

Instances

Instances details
Contravariant MonitorParameter Source # 
Instance details

Defined in Mcmc.Monitor.Parameter

(>$<) :: Contravariant f => (a -> b) -> f b -> f a infixl 4 #

This is an infix alias for contramap.

(@.) :: (b -> a) -> MonitorParameter a -> MonitorParameter b Source #

Deprecated: Superseded by the contravariant instance, use (>$<).

Convert a parameter monitor from one data type to another.

DEPRECATED.

For example, to monitor a Double value being the first entry of a tuple:

mon = fst @. monitorDouble

monitorInt Source #

Arguments

:: String

Name.

-> MonitorParameter Int 

Monitor Int.

monitorDouble Source #

Arguments

:: String

Name.

-> MonitorParameter Double 

Monitor Double with eight decimal places (half precision).

monitorDoubleF Source #

Arguments

:: String

Name.

-> MonitorParameter Double 

Monitor Double with full precision computing the shortest string of digits that correctly represent the number.

monitorDoubleE Source #

Arguments

:: String

Name.

-> MonitorParameter Double 

Monitor Double in exponential format and half precision.