Probabilities.UniformDCDF Method

Overload List

#SignatureDescription
1procedure UniformDCDF(const X: TMtxVecInt; N: Integer; const Res: TDenseMtxVec);Discrete uniform distribution CDF (vectorized).
2function UniformDCDF(x: Integer; N: Integer): Double;Discrete uniform cumulative distribution function (CDF).

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

Discrete uniform distribution CDF (vectorized).

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

Discrete uniform cumulative distribution function (CDF).

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

Returns: Double - the discrete uniform cumulative distribution function (CDF) at x using parameter N. Returns NAN when N<1.

Remarks:

Computes the discrete uniform CDF P(X <= x) on the support 1,...,N:

CDF(x| N)={ 0,  if x<1
          { x/N,  if 1 <= x <= N
          { 1,  if x>N

Domain: N >= 1. For N<1 the result is NaN.

See Also: Probabilities.UniformDPDF, Probabilities.UniformDCDFInv