Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Snapshot = Snapshot {}
- quantile :: Double -> Snapshot -> Double
- size :: Snapshot -> Int
- median :: Snapshot -> Double
- get75thPercentile :: Snapshot -> Double
- get95thPercentile :: Snapshot -> Double
- get98thPercentile :: Snapshot -> Double
- get99thPercentile :: Snapshot -> Double
- get999thPercentile :: Snapshot -> Double
- takeSnapshot :: PrimMonad m => MVector (PrimState m) Double -> m Snapshot
Documentation
A wrapper around a *sorted* vector intended for calculating quantile statistics.
Snapshot | |
|
quantile :: Double -> Snapshot -> Double Source
Calculate an arbitrary quantile value for a Snapshot. Values below zero or greater than one will be clamped to the range [0, 1]
get75thPercentile :: Snapshot -> Double Source
Calculate the 75th percentile of a Snapshot
get95thPercentile :: Snapshot -> Double Source
Calculate the 95th percentile of a Snapshot
get98thPercentile :: Snapshot -> Double Source
Calculate the 98th percentile of a Snapshot
get99thPercentile :: Snapshot -> Double Source
Calculate the 99th percentile of a Snapshot
get999thPercentile :: Snapshot -> Double Source
Calculate the 99.9th percentile of a Snapshot