VectorExtensions.MovingAverageAbsoluteDeviation Method

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

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static Vector<double> MovingAverageAbsoluteDeviation(
	this Vector<double> vector,
	int length,
	Vector<double> mean
)

Parameters

vector  Vector<Double>
The vector to transform.
length  Int32
The number of observations in the range.
mean  Vector<Double>
A vector containing the mean from which the deviation is calculated.

Return Value

Vector<Double>
A vector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

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

Exceptions

ArgumentOutOfRangeException

length is less than or equal to zero.

ArgumentNullException

mean is null.

DimensionMismatchException

The length of mean does not match the length of the vector.

See Also