Wicked Fast, Accurate Quantiles Using t-Digests

The t-Digest construction algorithm, by Dunning, (2019) , uses a variant of 1-dimensional k-means clustering to produce a very compact data structure that allows accurate estimation of quantiles. This t-Digest data structure can be used to estimate quantiles, compute other rank statistics or even to estimate related measures like trimmed means. The advantage of the t-Digest over previous digests for this purpose is that the t-Digest handles data with full floating point resolution. The accuracy of quantile estimates produced by t-Digests can be orders of magnitude more accurate than those produced by previous digest algorithms. Methods are provided to create and update t-Digests and retrieve quantiles from the accumulated distributions.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tdigest")

0.4.3 by Bob Rudis, 5 months ago


https://git.sr.ht/~hrbrmstr/tdigest


Report a bug at https://todo.sr.ht/~hrbrmstr/tdigest


Browse source code at https://github.com/cran/tdigest


Authors: Bob Rudis [aut, cre] , Ted Dunning [aut] (t-Digest algorithm; <https://github.com/tdunning/t-digest/>) , Andrew Werner [aut] (Original C+ code; <https://github.com/ajwerner/tdigest>)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports magrittr, stats

Suggests testthat, covr, spelling


See at CRAN