Probabilities::UniformPDF Function

Overload List

#SignatureDescription
1double UniformPDF(double x, double a, double b);Uniform probability density function (PDF).
2void UniformPDF(TDenseMtxVec *X, double A, double B, TDenseMtxVec *Res);Uniform distribution PDF (vectorized).

Overload 1: double UniformPDF(double x, double a, double b);

Uniform probability density function (PDF).

#NameTypeDescription
1xdoubleDistribution domain, real value on closed interval [a,b].
2adoubleDistribution lower bound, real value.
3bdoubleDistribution upper bound, real value (b > a).

Returns: the uniform probability density function (PDF) for value x using the parameters a and b. a must be smaller than b, otherwise the result is NAN.

Remarks:

The continuous uniform probability density function is

PDF(x| a,b)=1/(b-a), a <= x <= b

and 0 outside [a, b]. Domain: a < b; x within [a, b]. For a >= b the result is NAN.

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

Overload 2: void UniformPDF(TDenseMtxVec *X, double A, double B, TDenseMtxVec *Res);

Uniform distribution PDF (vectorized).

#NameTypeDescription
1XTDenseMtxVec *Defines distribution domain, real vector or matrix with values on closed interval [A,B].
2AdoubleDistribution parameter, real value, defining distribution lower bound.
3BdoubleDistribution parameter, real value, defining distribution upper bound.
4ResTDenseMtxVec *After calculation stores the PDF calculated from X, A 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