stats/bucketed_aggregate_utils library
Bucketed aggregation (sum/count/avg/min/max per bucket) — roadmap #570.
Functions
-
bucketAggregate(
List< num> bucket, String aggregate) → double -
For each bucket, compute
aggregate(sum, count, avg, min, max). Audited: 2026-06-12 11:26 EDT -
bucketBy<
K> (List< num> values, K keyOf(int index, num value)) → Map<K, List< num> > -
Groups
valuesbykeyOf(index, value), then returns map of key -> list of values. Audited: 2026-06-12 11:26 EDT
Typedefs
-
BucketedValues<
K> = Map< K, List< num> > - Bucket key and list of values.