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.Internal

Internals of TDigest.

Tree implementation is based on Adams’ Trees Revisited by Milan Straka http://fox.ucw.cz/papers/bbtree/bbtree.pdf

Contents
  1. But*, the benefit vs. code explosion is not yet worth.
Synopsis
  • Packagetdigest-0.3.1
  • Exports30
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceInternal.hs
datadata TDigest (compression :: Nat)

TDigest is a tree of centroids.

compression is a 1/δ. The greater the value of compression the less likely value merging will happen.

Constructors

Instances7Reducer, Show, Semigroup, Monoid, NFData, Binary, …

But*, the benefit vs. code explosion is not yet worth.

valueminimumValue :: TDigest comp -> Mean

Center of left-most centroid. Note: may be different than min element inserted.

Example1 expression
minimumValue (tdigest [1..100] :: TDigest 3)1.0
valuemaximumValue :: TDigest comp -> Mean

Center of right-most centroid. Note: may be different than max element inserted.

Example1 expression
maximumValue (tdigest [1..100] :: TDigest 3)99.0
Example1 expression
:set -XDataKinds