Uses a circular buffer to adaptively calculate the moving average of the contained elements.
More...
|
void | Enqueue (float val) |
| Enqueue the specified value and updates the mean. More...
|
|
| MovingAverage () |
| Initializes a new instance of the T:Crystal.MovingAverage class. More...
|
|
| MovingAverage (int length) |
| Initializes a new instance of the T:Crystal.MovingAverage class. More...
|
|
Uses a circular buffer to adaptively calculate the moving average of the contained elements.
Crystal.MovingAverage.MovingAverage |
( |
| ) |
|
|
inline |
Initializes a new instance of the T:Crystal.MovingAverage class.
Crystal.MovingAverage.MovingAverage |
( |
int |
length | ) |
|
|
inline |
Initializes a new instance of the T:Crystal.MovingAverage class.
- Parameters
-
void Crystal.MovingAverage.Enqueue |
( |
float |
val | ) |
|
|
inline |
Enqueue the specified value and updates the mean.
float Crystal.MovingAverage.Mean |
|
get |
int Crystal.MovingAverage.MovingAverageDepth |
|
get |
The
The moving average rank.
The documentation for this class was generated from the following file:
- Source/Collections/MovingAverage.cs