sketches-js
Fork of sketches-js to fix compatibility with older versions of Node.
An implementation of DDSketch for Node.js.
DDSketch is a data structure for recording large amounts of numeric data and calculating quantiles over that data. It's designed to be fast, fully-mergeable and provide guarantees that a quantile value is within a configurable percentage threshold of the real value.
Implementation
The implementation is based on the official paper: DDSketch: A Fast and Fully-Mergeable Quantile Sketch with Relative-Error Guarantees (PDF)
Usage
npm install monti-apm-sketches-js
const DDSketch = ; const sketch = alpha: 0005 // compute quantiles with precision of 1/2 of a percent; for let i = 0; i < 1000; i++ sketch; 05 075 09 095 099;
License
The source code is distributed under the terms of MPL 2.0 license.