Ultimate Summator |
UltimateSummator is a special class for fast sum calculation on sliding window.
The following constructors create an instance of this class:
Constructor | Description |
---|---|
Default constructor. | |
Create new instance of ultimate summator with point-based sliding window sized. | |
Create new instance of ultimate summator with time-based sliding window sized. |
It contains properties:
Property | Description | ||
---|---|---|---|
Number of elements in collection. | |||
Total sum of points in sliding window. | |||
Get data which was store "pointsCount" steps ago. | |||
Return historically latest element with smaller or equal DateTime.
|
The class contains field DefaultDateTime which is the default DateTime, which will be assumed as default date value.
Methods:
Method | Description | ||
---|---|---|---|
Returns an enumerator that iterates through a collection. | |||
Store new data element in summator. Returns true if and only if we succeed to add element.
| |||
Get sum on time-baseed or point-based interval. User sets inclusive left and right boundaries of interval. | |||
Get sum on point-based interval. User sets boundaries as offsets. | |||
Get sum from the oldest point in sliding window to specified time inclusively. | |||
Get sum of pointsCount elements starting from the very oldest point. | |||
Get sum from the oldest point in sliding window to specified time inclusively. | |||
Get sum from the recent point in sliding window to specified time inclusively. | |||
Copies the elements of the SimpleDataQueue to a new array. | |||
Makes full copy of this instance. | |||
Sets internal state to destination object. |