Safe Haskell | None |
---|
The pure interface for histograms. This module is typically not as useful as the stateful implementation since reservoir updates require retrieving the current time.
- data Histogram
- histogram :: Reservoir -> Histogram
- clear :: NominalDiffTime -> Histogram -> Histogram
- update :: Double -> NominalDiffTime -> Histogram -> Histogram
- mean :: Histogram -> Double
- stddev :: Histogram -> Double
- variance :: Histogram -> Double
- minVal :: Histogram -> Double
- maxVal :: Histogram -> Double
- count :: Histogram -> Int
- snapshot :: Histogram -> Snapshot
Documentation
A pure histogram that maintains a bounded reservoir of samples and basic statistical data about the samples.
clear :: NominalDiffTime -> Histogram -> HistogramSource
Reset all statistics, in addition to the underlying reservoir.