HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletdigest-0.3.1Haskell2010

Data.TDigest.Tree.Postprocess

TDigest postprocessing functions.

These are re-exported from Data.TDigest module.

Contents
  1. Quantiles
  2. Mean & variance
  3. CDF
Synopsis
  • Packagetdigest-0.3.1
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePostprocess.hs

Quantiles

Mean & variance

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

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.