Stats.CentralMoment Method

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

CentralMoment<T>(T[], Int32) Returns the specified central moment of the elements of an array.
CentralMoment<T>(Vector<T>, Int32) Returns the specified central moment of the elements of a vector.

CentralMoment<T>(T[], Int32)

Returns the specified central moment of the elements of an array.
C#
public static double CentralMoment<T>(
	this T[] values,
	int degree
)

Parameters

values  T[]
An array.
degree  Int32
The degree of the moment.

Type Parameters

T

Return Value

Double
The central moment of degree degree of the elements of values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T[]. 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).

Exceptions

ArgumentNullExceptionvalues is null.
ArgumentOutOfRangeExceptiondegree is less than one.

CentralMoment<T>(Vector<T>, Int32)

Returns the specified central moment of the elements of a vector.
C#
public static double CentralMoment<T>(
	this Vector<T> values,
	int degree
)

Parameters

values  Vector<T>
A vector.
degree  Int32
The degree of the moment.

Type Parameters

T

Return Value

Double
The central moment of degree degree of the elements of values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. 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).

Exceptions

ArgumentNullExceptionvalues is null.
ArgumentOutOfRangeExceptiondegree is less than one.

See Also