HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletdigest-0.3Haskell2010

Data.TDigest.Tree.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 :: 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 :: Double -> TDigest comp -> Double
#

Cumulative distribution function.

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