sliding-window-aggregation 0.1.0

Sliding window aggregation
Documentation
  • Coverage
  • 16.67%
    1 out of 6 items documented0 out of 5 items with examples
  • Size
  • Source code size: 5.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • koba-e964/sliding-window-aggregation
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • koba-e964

sliding-window-aggregation

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:

  • push_back: push an element to the back of the queue.
  • pop_front: pop an element from the front of the queue.
  • fold_all: for an operation op, compute the fold of all elements in the queue, i.e. a1 op a2 op ... op an if the queue's content is [a1, a2, ..., an].

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