Probabilities.UniformDPDF Method

Overload List

#SignatureDescription
1procedure UniformDPDF(const X: TMtxVecInt; N: Integer; const Res: TDenseMtxVec);Discrete uniform distribution PDF (vectorized).
2function UniformDPDF(x: Integer; N: Integer): Double;Discrete uniform probability mass function (PMF).

Overload 1: procedure UniformDPDF(const X: TMtxVecInt; N: Integer; const Res: TDenseMtxVec);

Discrete uniform distribution PDF (vectorized).

#NameDescription
1XDefines distribution domain, vector or matrix with integer values on closed interval [1,N].
2NDistribution parameter, positive integer.
3ResAfter calculation stores the PDF calculated from X and N. 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: function UniformDPDF(x: Integer; N: Integer): Double;

Discrete uniform probability mass function (PMF).

#NameDescription
1xFunction domain, integer on the closed interval [1,N].
2NUpper bound of the support
3N must be a positive integer (N>=1).

Returns: Double - the discrete uniform probability mass function (PMF) at x using parameter N. Returns NAN when N<1; 0 outside the support.

Remarks:

The discrete uniform distribution puts equal weight 1/N on the integers 1,2,...,N:

PMF(x| N)=1/N, x=1,2,...,N

Domain: x in {1,...,N}, N >= 1. For N<1 the result is NaN; for x outside [1,N][1,N] the result is 0.

See Also: Probabilities.UniformDCDF, Probabilities.UniformDCDFInv