📊 T-Digest Scale Function and Centroid Cutting Lab
T-Digest Scale Function and Centroid Cutting Lab
The simulation streams synthetic data points through a live t-digest, visualizing centroids forming and merging with denser clustering near the tails, then plots estimated percentiles against the true exact percentiles computed from the full dataset.
🔬 What It Demonstrates
The simulation streams synthetic data points through a live t-digest, visualizing centroids forming and merging with denser clustering near the tails, then plots estimated percentiles against the true exact percentiles computed from the full dataset.
🎮 How to Use
Choose a distribution shape and stream size, adjust the compression slider to change the centroid budget, and watch the error between estimated and exact percentiles shrink or grow as centroids are added or removed.
💡 Did You Know?
A t-digest with only a couple hundred centroids can estimate the 99.9th percentile of a stream of a billion values with error small enough for production monitoring, using a memory footprint thousands of times smaller than storing the raw data.
T-Digest Scale Function and Centroid Cutting Lab
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install