Main Content

Continuous uniform cumulative distribution function

`p = unifcdf(x,a,b)`

p = unifcdf(x,a,b,'upper')

`p = unifcdf(x,a,b)`

returns
the uniform cdf at each value in `x`

using the corresponding
lower endpoint (minimum), `a`

and upper endpoint
(maximum), `b`

. `x`

, `a`

,
and `b`

can be vectors, matrices, or multidimensional
arrays that all have the same size. A scalar input is expanded to
a constant matrix with the same dimensions as the other inputs.

`p = unifcdf(x,a,b,'upper')`

returns the
complement of the uniform cdf at each value in `x`

,
using an algorithm that more accurately computes the extreme upper
tail probabilities.

The uniform cdf is

$$p=F(x|a,b)=\frac{x-a}{b-a}{I}_{\left[a,b\right]}\left(x\right)$$

The standard uniform distribution has a = `0`

and b = `1`

.