Function Reference: unidpdf

statistics: y = unidpdf (x, df)

Discrete uniform probability density function (PDF).

For each element of x, compute the probability density function (PDF) at x of a discrete uniform distribution which assumes the integer values 1–df with equal probability. The size of p is the common size of x and df. A scalar input functions as a constant matrix of the same size as the other inputs.

Warning: The underlying implementation uses the double class and will only be accurate for df < flintmax (2^53 on IEEE 754 compatible systems).

See also: unidcdf, unidinv, unidrnd, unidstat

Source Code: unidpdf