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

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

Syntax

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

Parameters

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

Return Value

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

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.