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

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

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

Parameters

data
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector.
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 has a length of zero.

See Also