Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double CauchyPDF(double x, double m, double b); | Cauchy probability density function (PDF). |
| 2 | void CauchyPDF(TDenseMtxVec *X, double m, double b, TDenseMtxVec *Res); | Cauchy PDF (vectorized). |
Overload 1: double CauchyPDF(double x, double m, double b);
Cauchy probability density function (PDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | Function domain, real value. |
| 2 | m | double | Location parameter, real value. |
| 3 | b | double | Shape (scale) parameter, real positive value. |
Returns: the Cauchy probability density function (PDF) for given parameters b and m. Parameter b must be greater than zero, otherwise the result is NAN.
Remarks:
Calculates the Cauchy (Lorentz) probability density function
PDF(x| m,b)=1/pi*b/((x-m)^2+b^2)
where m is the location parameter (the peak of the distribution) and b is the scale parameter, equal to the half-width at half-maximum (HWHM). Domain: x is any real value; the location m is any real value and the scale b must be strictly positive. For b <= 0 the result is NAN. The Cauchy distribution has no defined mean or higher moments.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void CauchyPDF(TDenseMtxVec *X, double m, double b, TDenseMtxVec *Res);
Cauchy PDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Defines distribution domain, real vector or matrix. |
| 2 | m | double | Location parameter, real value. |
| 3 | b | double | Shape parameter, real positive value. |
| 4 | Res | TDenseMtxVec * | 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