Probabilities::LaplacePDF Function

Overload List

#SignatureDescription
1double LaplacePDF(double x, double m, double b);Laplace probability density function (PDF).
2void LaplacePDF(TDenseMtxVec *X, double m, double b, TDenseMtxVec *Res);Laplace distribution PDF (vectorized).

Overload 1: double LaplacePDF(double x, double m, double b);

Laplace probability density function (PDF).

#NameTypeDescription
1xdoubleFunction domain, real value.
2mdoubleDistribution location parameter, real value.
3bdoubleDistribution scale parameter, real positive value.

Returns: the Laplace probability density function (PDF) for value x using the parameters m and b. For b <= 0 the result is NAN.

Remarks:

The Laplace (double-exponential) probability density function is

PDF(x| m,b)=1/2bexp(-(|x-m|)/b)

Domain: x any real value, location m any real value, scale b > 0. For b <= 0 the result is NAN.

See Also: Probabilities::LaplaceCDF, Probabilities::LaplaceCDFInv
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler

Overload 2: void LaplacePDF(TDenseMtxVec *X, double m, double b, TDenseMtxVec *Res);

Laplace distribution PDF (vectorized).

#NameTypeDescription
1XTDenseMtxVec *Defines distribution domain, vector or matrix with real values.
2mdoubleDistribution location parameter, real value.
3bdoubleDistribution scale parameter, real positive value.
4ResTDenseMtxVec *After calculation stores the PDF calculated from X, m and b. 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