| Copyright | (c) Dominik Schrempf 2021 | 
|---|---|
| License | GPL-3.0-or-later | 
| Maintainer | dominik.schrempf@gmail.com | 
| Stability | unstable | 
| Portability | portable | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Mcmc.Monitor.Parameter
Contents
Description
Creation date: Fri May 29 11:11:49 2020.
Synopsis
- data MonitorParameter a = MonitorParameter {}
 - (>$<) :: Contravariant f => (a -> b) -> f b -> f a
 - monitorInt :: String -> MonitorParameter Int
 - monitorDouble :: String -> MonitorParameter Double
 - monitorDoubleF :: String -> MonitorParameter Double
 - monitorDoubleE :: String -> MonitorParameter Double
 
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 | |
Instances
| Contravariant MonitorParameter Source # | |
Defined in Mcmc.Monitor.Parameter Methods contramap :: (a -> b) -> MonitorParameter b -> MonitorParameter a # (>$) :: b -> MonitorParameter b -> MonitorParameter a #  | |
(>$<) :: Contravariant f => (a -> b) -> f b -> f a infixl 4 #
This is an infix alias for contramap.
Arguments
| :: String | Name.  | 
| -> MonitorParameter Double | 
Monitor Double with eight decimal places (half precision).
Arguments
| :: String | Name.  | 
| -> MonitorParameter Double | 
Monitor Double with full precision computing the shortest string of
 digits that correctly represent the number.
Arguments
| :: String | Name.  | 
| -> MonitorParameter Double | 
Monitor Double in exponential format and half precision.