Median, i.e. quantile 0.5.
Moduletdigest-0.3Haskell2010
Data.TDigest.Vector.Postprocess
TDigest postprocessing functions.
These are re-exported from Data.TDigest module.
- 7 values
- Packagetdigest-0.3
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourcePostprocess.hs
Quantiles
2 declarationsCalculate quantile of a specific value.
Mean & variance
3 declarationsAs we have "full" histogram, we can calculate other statistical variables.
Mean.
mean (tdigest [1..100] :: TDigest 10)Just 50.5
Note: if you only need the mean, calculate it directly.
Variance.
Standard deviation, square root of variance.
CDF
2 declarationsCumulative distribution function.
Note: if this is the only thing you need, it's more efficient to count this directly.
An alias for quantile