SlidingWindow

public class SlidingWindow<R>

Core of the temporal operators. Alternative implementations (e.g. online version) might simply override the apply method. For the original sliding window algorithm from Lemire: https://dl.acm.org/doi/10.5555/1324123.1324129 Note that, except for methods explicitly marked by DIRECTION-AWARE METHOD (which use the isFuture field to understand the direction), the algorithm is agnostic on the direction of the sliding.

See also

for the internal representation of the Window

for details on how the signal is scanned

Constructors

Link copied to clipboard
public void SlidingWindow(double a, double b, BinaryOperator<R> aggregator, boolean isFuture)
Constructs a Sliding Window on the given aggregator and time interval.

Functions

Link copied to clipboard
public Signal<R> apply(Signal<R> s)
Activates the actual shift of the Signal
Link copied to clipboard
public double size()