Probabilities.UniformPDF Method

Overload List

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

Overload 1: void UniformPDF(TDenseMtxVec X, Double A, Double B, TDenseMtxVec Res)

Uniform distribution PDF (vectorized).

#NameDescription
1XDefines distribution domain, real vector or matrix with values on closed interval [A,B].
2ADistribution parameter, real value, defining distribution lower bound.
3BDistribution parameter, real value, defining distribution upper bound.
4ResAfter 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.

Result: stored in self (calling object)

Overload 2: Double UniformPDF(Double x, Double a, Double b)

Uniform probability density function (PDF).

#NameDescription
1xDistribution domain, real value on closed interval [a,b].
2aDistribution lower bound, real value.
3bDistribution upper bound, real value (b > a).

Returns: Double - 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