Returns a NumericalVariable whose observations are the sum of a range of observations of the variable.

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

Syntax

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

Parameters

length (System.Int32)
The number of observations in the range.

Return Value

A NumericalVariable.

Remarks

If length is equal to 1, this method returns the original variable.

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

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionlength is less than or equal to zero.