Probabilities::ExpPDF Function

Overload List

#SignatureDescription
1double ExpPDF(double x, double Mu);Exponential probability density function (PDF).
2void ExpPDF(TDenseMtxVec *X, double Mu, TDenseMtxVec *Res);Exponential PDF (vectorized).

Overload 1: double ExpPDF(double x, double Mu);

Exponential probability density function (PDF).

#NameTypeDescription
1xdoubleFunction domain, real value >= 0.
2MudoubleScale parameter (= the distribution mean), real value > 0.

Returns: 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
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler

Overload 2: void ExpPDF(TDenseMtxVec *X, double Mu, TDenseMtxVec *Res);

Exponential PDF (vectorized).

#NameTypeDescription
1XTDenseMtxVec *Defines distribution domain, real vector or matrix with positive values or zero.
2MudoubleDefines distribution rate parameter. Mu must be a positive scalar.
3ResTDenseMtxVec *After 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.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler