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 Vector, _
	degree As Integer _
) As Double
C#
public static double Moment (
	Vector data,
	int degree
)
C++
public:
static double Moment (
	Vector^ data, 
	int degree
)

Parameters

data (Extreme.Mathematics.LinearAlgebra.Vector)
A Vector.
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.