Probabilities::RayleighPDF Function

Overload List

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

Overload 1: double RayleighPDF(double x, double b);

Rayleigh probability density function (PDF).

#NameTypeDescription
1xdoubleFunction domain, positive real value or zero.
2bdoubleDistribution scale parameter, positive real value.

Returns: the Rayleigh probability density function (PDF) for value x using the parameter b. b must be positive and x >= 0, otherwise the result is NAN.

Remarks:

The Rayleigh probability density function is

PDF(x| b)=x/b^2exp(-x^2/2b^2), x >= 0

Domain: x >= 0 and scale b > 0. For b <= 0 or x < 0 the result is NAN.

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

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

Rayleigh distribution PDF (vectorized).

#NameTypeDescription
1XTDenseMtxVec *Distribution domain, positive real values or zeros.
2bdoubleDistribution parameter, positive real value.
3ResTDenseMtxVec *After calculation stores the PDF calculated from X 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