void ErlangStat(Int32 k, Double Lambda, ref Double AMean, ref Double AVariance, ref Double ASkewness, ref Double AKurtosis)
Erlang distribution moments (mean, variance, skewness, excess kurtosis).
| # | Name | Description |
|---|---|---|
| 1 | AMean | Returns the mean, = k/Lambda. |
| 2 | AVariance | Returns the variance, = k/Lambda^2. |
| 3 | ASkewness | Returns the skewness, = 2/sqrt(k). |
| 4 | AKurtosis | Returns the EXCESS kurtosis, = 6/k. |
| 5 | k | Shape parameter, integer > 0. |
| 6 | Lambda | Rate parameter, real value > 0. |
Result: stored in self (calling object)
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.