Returns a NumericalVariable whose observations are the simple moving average of the observations of the variable.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function GetMovingAverage ( _
	length As Integer _
) As NumericalVariable
C#
public NumericalVariable GetMovingAverage (
	int length
)
C++
public:
NumericalVariable^ GetMovingAverage (
	int length
)

Parameters

length (System.Int32)
The number of observations to be used in the average.

Return Value

A NumericalVariable.

Remarks

The new variable gets the name SMA<n>(<name>), where <name> is the name of the original variable and <n> . is the length.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionlength is less than or equal to zero.