add method

void add(
  1. num value
)

Feeds value into the estimator. The value is retained for an exact quantile; quantile sorts a copy on demand, so this is O(1) amortized. Audited: 2026-06-12 11:26 EDT

Implementation

void add(num value) {
  _buffer.add(value.toDouble());
}