Probabilities.ExpPDF Method

Overload List

#SignatureDescription
1procedure ExpPDF(const X: TDenseMtxVec; Mu: Double; const Res: TDenseMtxVec);Exponential PDF (vectorized).
2function ExpPDF(x: Double; Mu: Double): Double;Exponential probability density function (PDF).

Overload 1: procedure ExpPDF(const X: TDenseMtxVec; Mu: Double; const Res: TDenseMtxVec);

Exponential PDF (vectorized).

#NameDescription
1XDefines distribution domain, real vector or matrix with positive values or zero.
2MuDefines distribution rate parameter. Mu must be a positive scalar.
3ResAfter calculation stores the PDF calculated from X and Mu. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X.

Result: stored in self (calling object)

Overload 2: function ExpPDF(x: Double; Mu: Double): Double;

Exponential probability density function (PDF).

#NameDescription
1xFunction domain, real value >= 0.
2MuScale parameter (= the distribution mean), real value > 0.

Returns: Double - the exponential probability density function (PDF) at x for scale (mean) Mu. Returns 0 when Mu <= 0 (NOT NAN).

Remarks:

Computes the exponential PDF

PDF(x|mu)= 1/muexp (-x/mu)

where mu (Mu) is the scale, equal to the mean (the reciprocal of the rate). Domain: x >= 0, mu > 0. Behaviour: for mu <= 0 the result is 0 (not NAN); note the implementation special-cases x=0, returning 1.0 there. A scalar form (this one) and a vectorized TDenseMtxVec overload are provided.

See Also: Probabilities.ExpCDF, Probabilities.ExpCDFInv