StreamingQuantiles class abstract

Streaming quantile estimator interface with factory constructors for P² (default) and TDigest implementations.

Constructors

StreamingQuantiles(List<double> quantiles)
Creates a P² streaming quantile estimator that maintains approximate positions for the provided quantiles (expressed as 0..1 fractions).
factory
StreamingQuantiles.tDigest({int compression})
Creates a TDigest-based streaming quantile estimator. Optional compression controls accuracy vs memory usage (higher is more accurate).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Object? value) → void
Adds a sample value to the estimator. Accepts any byte-like value type supported by the underlying implementation.
estimate(double percentile) double
Returns the estimated value at percentile, where 0..100 indicates the desired percentile (for example, 50 for median, 99 for P99).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited