Probabilities.ExpCDFInv Method

Overload List

#SignatureDescription
1procedure ExpCDFInv(const P: TDenseMtxVec; Mu: Double; const Res: TDenseMtxVec);Exponential PPF (vectorized).
2function ExpCDFInv(p: Double; Mu: Double): Double;Exponential distribution inverse CDF (quantile / point percent function, PPF).

Overload 1: procedure ExpCDFInv(const P: TDenseMtxVec; Mu: Double; const Res: TDenseMtxVec);

Exponential PPF (vectorized).

#NameDescription
1PDefines distribution probabilities, real vector or matrix with values within closed interval [0,1].
2MuDefines distribution rate parameter. Mu must be a positive scalar.
3ResAfter calculation stores the PPF calculated from P and Mu. 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: function ExpCDFInv(p: Double; Mu: Double): Double;

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

#NameDescription
1pProbability, real value on the closed interval [0,1].
2MuScale parameter (= the distribution mean), real value > 0.

Returns: Double - the value x with ExpCDF(x,Mu)=p for scale (mean) Mu. Returns NAN when Mu <= 0, p < 0 or p > 1; returns 0 at p=0.

Remarks:

Computes the inverse of the exponential CDF (the quantile function)

inverse CDF(p|mu)=-mu ln (1-p)

Domain: p in [0,1], mu > 0. Behaviour: returns 0 at p=0; for mu <= 0 or p not in [0,1] returns NAN. (Unlike Probabilities.ExpPDF/Probabilities.ExpCDF, the inverse returns NAN -- not 0 -- on invalid parameters.)

See Also: Probabilities.ExpCDF, Probabilities.ExpPDF