Probabilities::ChiSquareStat Function

void ChiSquareStat(int Nu, double &AMean, double &AVariance, double &ASkewness, double &AKurtosis);

Chi-squared distribution moments (mean, variance, skewness, excess kurtosis).

#NameTypeDescription
1NuintDegrees of freedom, integer > 0.
2AMeandouble &Returns the mean, = Nu.
3AVariancedouble &Returns the variance, = 2*Nu.
4ASkewnessdouble &Returns the skewness, = sqrt(8/Nu).
5AKurtosisdouble &Returns the EXCESS kurtosis, = 12/Nu.
Remarks:

Returns the moments of the chi-squared distribution with nu degrees of freedom. If nu <= 0 all four outputs are NAN.

Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler