Click or drag to resize

NMathFunctionsNaNCentralMoment(DoubleVector, Int32) Method

Calculates the specified central moment about the mean for the the given data, excluding NaN values.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double NaNCentralMoment(
	DoubleVector data,
	int order
)

Parameters

data  DoubleVector
A vector.
order  Int32
A moment (order).

Return Value

Double
The specified central moment.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data has a length of zero.
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.
See Also