Calculates the specified central moment about the mean for the
the given data.
Namespace: CenterSpace.NMath.StatsAssembly: NMathStatsPremium (in NMathStatsPremium.dll) Version: 3.6.0.0
Syntax
| C# |
|---|
public static double CentralMoment( int[] data, int order ) |
| Visual Basic |
|---|
Public Shared Function CentralMoment ( _ data As Integer(), _ order As Integer _ ) As Double |
| Visual C++ |
|---|
public: static double CentralMoment( array<int>^ data, int order ) |
Parameters
- data
- Type: array<System..::..Int32>[]()[][]
An array of integers.
- 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. |