Uniform Distribution (Continuous)
Statistics and Machine Learning Toolbox™ offers several ways to work with the continuous uniform distribution.
Create a probability distribution object
UniformDistribution
by specifying parameter values. Then, use object functions to evaluate the distribution, generate random numbers, and so on.Use distribution-specific functions with specified distribution parameters. The functions can accept parameters of multiple uniform distributions.
Use the generic distribution functions with the specified distribution name
"Uniform"
and corresponding parameters.
To learn about the uniform distribution, see Uniform Distribution (Continuous).
Objects
UniformDistribution | Uniform probability distribution object |
Functions
Topics
- Uniform Distribution (Continuous)
The uniform distribution (also called the rectangular distribution) is notable because it has a constant probability distribution function between its two bounding parameters.
- Generate Random Numbers Using Uniform Distribution Inversion
This example shows how to generate random numbers using the uniform distribution inversion method.