Safe Haskell | None |
---|---|
Language | Haskell2010 |
TDigest
postprocessing functions.
These are re-exported from Data.TDigest module.
Quantiles
Mean & variance
As we have "full" histogram, we can calculate other statistical variables.
mean :: TDigest comp -> Maybe Double Source #
Mean.
>>>
mean (tdigest [1..100] :: TDigest 10)
Just 50.5
Note: if you only need the mean, calculate it directly.