HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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 declarations

Mean & variance

3 declarations

As we have "full" histogram, we can calculate other statistical variables.

valuemean :: KnownNat comp => TDigest comp -> Maybe Double
#

Mean.

Example1 expression
mean (tdigest [1..100] :: TDigest 10)Just 50.5

Note: if you only need the mean, calculate it directly.

CDF

2 declarations
valuecdf :: KnownNat comp => Double -> TDigest comp -> Double
#

Cumulative distribution function.

Note: if this is the only thing you need, it's more efficient to count this directly.