void ErlangStat(int k, double Lambda, double &AMean, double &AVariance, double &ASkewness, double &AKurtosis);
Erlang distribution moments (mean, variance, skewness, excess kurtosis).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | k | int | Shape parameter, integer > 0. |
| 2 | Lambda | double | Rate parameter, real value > 0. |
| 3 | AMean | double & | Returns the mean, = k/Lambda. |
| 4 | AVariance | double & | Returns the variance, = k/Lambda^2. |
| 5 | ASkewness | double & | Returns the skewness, = 2/sqrt(k). |
| 6 | AKurtosis | double & | Returns the EXCESS kurtosis, = 6/k. |
Remarks:
Returns the moments of the Erlang distribution with integer shape k and rate lambda. If k <= 0 or lambda <= 0 all four outputs are NAN.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler