Copyright | 2021 Dominik Schrempf |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- monitorDoubleS :: 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
Instances
Contravariant MonitorParameter Source # | |
Defined in Mcmc.Monitor.Parameter contramap :: (a' -> a) -> MonitorParameter a -> MonitorParameter a' # (>$) :: b -> MonitorParameter b -> MonitorParameter a # |
(>$<) :: Contravariant f => (a -> b) -> f b -> f a infixl 4 #
This is an infix alias for contramap
.
:: String | Name. |
-> MonitorParameter Double |
Monitor Double
with eight decimal places (half precision).
:: String | Name. |
-> MonitorParameter Double |
Monitor Double
in scientific format.