Previous Up Next

20.4.2  Uniform distribution

The probability density function for the uniform distribution.

Given two values a and b with a < b, the uniform distribution on [a,b] has density function 1/(ba) for x in [a,b]. The uniform (or uniformd) command computes this density function.

Example

uniform(2.2,3.5,2.8)
     
0.769230769231           
The cumulative distribution function for the uniform distribution.

The uniform_cdf or uniformd_cdf command finds the cumulative distribution function for the uniform distribution.

Examples

uniform_cdf(2,4,3.2)
     
0.6           
uniform_cdf(2,4,3,3.2)
     
0.1           
The inverse distribution function for the uniform distribution.

The uniform_icdf or uniformd_icdf command computes the inverse distribution for the uniform distribution.

Example

uniform_icdf(2,3,.6)
     
2.6           

Previous Up Next