Registry / utility / t-digest

t-digest

JSON →
library2.0.2javamavenunverified

Data structure which allows accurate estimation of quantiles and related rank statistics.

<dependency> <groupId>com.tdunning</groupId> <artifactId>t-digest</artifactId> <version>2.0.2</version> </dependency>
INSTALL
IMPORT
SIG · T-DIGEST
T
t-digest
utilityjavav2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TDigest
com.tdunning.math.stats.TDigest

Creates a T-Digest, adds data points, and estimates the median.

import com.tdunning.math.stats.TDigest; public class TDigestExample { public static void main(String[] args) { TDigest digest = TDigest.createMergingDigest(100); for (int i = 0; i < 1000; i++) { digest.add(i); } System.out.println("Median: " + digest.quantile(0.5)); } }
Debug
Known issues
gotchaThe compression parameter significantly affects accuracy and memory usage; incorrect values may lead to poor estimates.
fix
Use a compression value between 100 and 200 for typical use cases.
affects: *
Upgrade
Version history
2.0.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
t-digest — mvn dependency:get t-digest · libregistry