Probabilities::ErlangCDFInv Function

Overload List

#SignatureDescription
1double ErlangCDFInv(double p, int k, double Lambda);Erlang distribution inverse CDF (quantile / point percent function, PPF).
2void 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).

#NameTypeDescription
1pdoubleProbability, real value on the closed interval [0,1].
2kintShape parameter, integer > 0.
3LambdadoubleRate 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).

#NameTypeDescription
1PTDenseMtxVec *Defines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2kintDefines distribution shape parameter. k must be a positive integer.
3LambdadoubleDefines distribution rate parameter. Lambda must be a positive value.
4ResTDenseMtxVec *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