Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double ErlangCDFInv(double p, int k, double Lambda); | Erlang distribution inverse CDF (quantile / point percent function, PPF). |
| 2 | void ErlangCDFInv(TDenseMtxVec *P, int k, double Lambda, TDenseMtxVec *Res); | Erlang PPF (vectorized). |
Overload 1: double ErlangCDFInv(double p, int k, double Lambda);
Erlang distribution inverse CDF (quantile / point percent function, PPF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | p | double | Probability, real value on the closed interval [0,1]. |
| 2 | k | int | Shape parameter, integer > 0. |
| 3 | Lambda | double | Rate parameter, real value > 0. |
Returns: the value x with ErlangCDF(x,k,Lambda)=p. Returns NAN when p < 0, p > 1 or Lambda <= 0.
Remarks:
Computes the inverse of the Erlang CDF (the quantile function)
inverse CDF(p| k,lambda ) = F^(-1)(p| k,lambda) , p(x)=CDF(x| k,lambda)
via the equivalent Gamma quantile GammaCDFInv(p, k, 1/Lambda). Domain: p in [0,1], integer k > 0, lambda > 0. If p not in [0,1] or lambda <= 0 the result is NAN.
See Also: Probabilities::ErlangPDF, Probabilities::ErlangCDF
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void ErlangCDFInv(TDenseMtxVec *P, int k, double Lambda, TDenseMtxVec *Res);
Erlang PPF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | P | TDenseMtxVec * | Defines distribution probabilities, real vector or matrix with values within closed interval [0,1]. |
| 2 | k | int | Defines distribution shape parameter. k must be a positive integer. |
| 3 | Lambda | double | Defines distribution rate parameter. Lambda must be a positive value. |
| 4 | Res | TDenseMtxVec * | After calculation stores the PPF calculated from P, k and Lambda. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of P. |
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler