Returns the specified central moment of the elements of an array.

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

Syntax

Visual Basic (Declaration)
Public Shared Function CentralMoment ( _
	data As Double(), _
	degree As Integer _
) As Double
C#
public static double CentralMoment (
	double[] data,
	int degree
)
C++
public:
static double CentralMoment (
	array<double>^ data, 
	int degree
)

Parameters

data ()
A Double array.
degree (System.Int32)
The degree of the moment.

Return Value

The central moment of degree degree of the elements of data.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.