Crystal AI  1.0.0
Crystal.MovingAverage Class Reference

Uses a circular buffer to adaptively calculate the moving average of the contained elements. More...

Public Member Functions

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...
 

Properties

float Mean [get]
 The average. More...
 
int MovingAverageDepth [get]
 The More...
 

Detailed Description

Uses a circular buffer to adaptively calculate the moving average of the contained elements.

Constructor & Destructor Documentation

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
lengthLength.

Member Function Documentation

void Crystal.MovingAverage.Enqueue ( float  val)
inline

Enqueue the specified value and updates the mean.

Property Documentation

float Crystal.MovingAverage.Mean
get

The average.

int Crystal.MovingAverage.MovingAverageDepth
get

The

The moving average rank.


The documentation for this class was generated from the following file: