Probabilities.ErlangCDFInv Method

Overload List

#SignatureDescription
1void ErlangCDFInv(TDenseMtxVec P, Int32 k, Double Lambda, TDenseMtxVec Res)Erlang PPF (vectorized).
2Double ErlangCDFInv(Double p, Int32 k, Double Lambda)Erlang distribution inverse CDF (quantile / point percent function, PPF).

Overload 1: void ErlangCDFInv(TDenseMtxVec P, Int32 k, Double Lambda, TDenseMtxVec Res)

Erlang PPF (vectorized).

#NameDescription
1PDefines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2kDefines distribution shape parameter. k must be a positive integer.
3LambdaDefines distribution rate parameter. Lambda must be a positive value.
4ResAfter 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.

Result: stored in self (calling object)

Overload 2: Double ErlangCDFInv(Double p, Int32 k, Double Lambda)

Erlang distribution inverse CDF (quantile / point percent function, PPF).

#NameDescription
1pProbability, real value on the closed interval [0,1].
2kShape parameter, integer > 0.
3LambdaRate parameter, real value > 0.

Returns: Double - 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