Calculates the specified central moment about the mean for the the given data.

Namespace: CenterSpace.NMath.Stats
Assembly: NMathStatsPremium (in NMathStatsPremium.dll) Version: 3.6.0.0

Syntax

C#
public static double CentralMoment(
	IDFColumn data,
	int order
)
Visual Basic
Public Shared Function CentralMoment ( _
	data As IDFColumn, _
	order As Integer _
) As Double
Visual C++
public:
static double CentralMoment(
	IDFColumn^ data, 
	int order
)

Parameters

data
Type: CenterSpace.NMath.Stats..::..IDFColumn
A column.
order
Type: System..::..Int32
A moment (order).

Return Value

The specified central moment.

Remarks

The first central moment is equal to zero. The second central moment is the variance. The third central moment is the skewness. The fourth central moment is the kurtosis.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::..InvalidArgumentException Thrown if data is not numeric or has length of zero.

See Also