Main Content

Uniform Distribution (Discrete)

Evaluate the discrete uniform distribution or its inverse, generate pseudorandom samples

Statistics and Machine Learning Toolbox™ offers multiple ways to work with the discrete uniform distribution.

  • Use distribution-specific functions with specified distribution parameters. The functions can accept parameters of multiple discrete uniform distributions.

  • Use the generic distribution functions with the specified distribution name "Discrete Uniform" and corresponding parameters.

To learn about the discrete uniform distribution, see Uniform Distribution (Discrete).

Functions

expand all

unidcdfDiscrete uniform cumulative distribution function
unidpdfDiscrete uniform probability density function
unidinvDiscrete uniform inverse cumulative distribution function
unidstatDiscrete uniform mean and variance
unidrnd Random numbers from discrete uniform distribution
cdfCumulative distribution function
icdfInverse cumulative distribution function
pdfProbability density function
randomRandom numbers
mleMaximum likelihood estimates

Topics