Name | Description |
---|
Buffer | Memory of sliding window |
init | Initialize a sliding window buffer |
push | Store an element on the sliding window buffer and remove elements that are older as the window length |
removeOldest | Remove all elements from the buffer that are about to leave the sliding time window |
nextLeaving | Return time instant when the oldest element is leaving the buffer |
firstValue | Returns the newest value |
lastValue | Returns the oldest value |
indexValue | Returns the value at buffer index |
indexTime | Returns the time value at buffer index |
numberOfValues | Returns the number of values in the buffer |
maxDuration | Returns the maximum duration where buffer value is true in the sliding time window |
accumulatedDuration | Returns the accumulated duration where buffer value is true in the sliding time window |