Returns a NumericalVariable whose observations are the average absolute deviation of a range of observations from observations of another variable.

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

Syntax

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

Parameters

length (System.Int32)
The number of observations in the range.
mean (Extreme.Statistics.NumericalVariable)
A NumericalVariable containing the mean from which the deviation is calculated.

Return Value

A NumericalVariable.

Remarks

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

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionlength is less than or equal to zero.
ArgumentNullExceptionmean is nullNothingnullptr.
DimensionMismatchException The length of mean does not match the length of the variable.