Calculates the specified central moment about the mean for the
the given data, excluding NaN values.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static double NaNCentralMoment( double[] data, int order ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function NaNCentralMoment ( _ data As Double(), _ order As Integer _ ) As Double |
| Visual C++ |
|---|
public: static double NaNCentralMoment( array<double>^ data, int order ) |
Parameters
- data
- Type: array<
System..::.Double
>[]()[]
An array of doubles.
- 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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if data has a length of zero. |