Returns the specified raw moment of a numerical variable.

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

Syntax

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

Parameters

data (Extreme.Statistics.NumericalVariable)
A Vector.
degree (System.Int32)
The degree of the moment.

Return Value

The raw moment of degree degree of data.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.