sliding-window-aggregation

Crates.io: sliding-window-aggregation Documentation Build Status License: MIT

This crate provides an implementation of the Sliding Window Aggregation (SWAg) data structure.

SWAg is basically a queue with a fast folding operation. SWAg supports the following operations, each one of which takes amortized O(1) time:

A detailed explanation is given in https://scrapbox.io/data-structures/SlidingWindowAggregation.