Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double ExpPDF(double x, double Mu); | Exponential probability density function (PDF). |
| 2 | void ExpPDF(TDenseMtxVec *X, double Mu, TDenseMtxVec *Res); | Exponential PDF (vectorized). |
Overload 1: double ExpPDF(double x, double Mu);
Exponential probability density function (PDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | Function domain, real value >= 0. |
| 2 | Mu | double | Scale 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).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Defines distribution domain, real vector or matrix with positive values or zero. |
| 2 | Mu | double | Defines distribution rate parameter. Mu must be a positive scalar. |
| 3 | Res | TDenseMtxVec * | 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