Returns a NumericalVariable whose observations are the difference between each observation and a previous observation.

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

Syntax

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

Parameters

lag (System.Int32)
An integer larger than zero that specifies the distance between the current observation and the reference observation.

Return Value

A NumericalVariable.

Remarks

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

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionlag is less than or equal to zero.