collections/sliding_window_aggregate_utils library
Sliding window aggregations (min/max/sum/avg over moving window) — roadmap #451.
Enums
- WindowAggregate
- Aggregation kind for a sliding window.
Functions
-
slidingWindow(
List< num> values, int size, WindowAggregate agg) → List<double> -
Returns a list where each element is the
aggofvaluesover a window of lengthsize. Ifsize> length, returns empty list.