tdigest-0: On-line accumulation of rank-based statistics
Data.TDigest.Postprocess
Contents
Description
TDigest postprocessing functions.
TDigest
These are re-exported from Data.TDigest module.
Synopsis
histogram :: TDigest comp -> [HistBin] Source #
Calculate histogram based on the TDigest.
data HistBin Source #
Histogram bin
Constructors
Fields
lower bound
upper bound
weight ("area" of the bar)
weight from the right
Instances
Methods
showsPrec :: Int -> HistBin -> ShowS #
show :: HistBin -> String #
showList :: [HistBin] -> ShowS #
median :: TDigest comp -> Maybe Double Source #
Median, i.e. quantile 0.5.
quantile 0.5
quantile
quantile :: Double -> TDigest comp -> Maybe Double Source #
Calculate quantile of a specific value.
cdf :: Double -> TDigest comp -> Double Source #
Cumulative distribution function.
Note: if this is the only thing you need, it's more efficient to count this directly.
icdf :: Double -> TDigest comp -> Maybe Double Source #
Alias of quantile.