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 inx
using the corresponding lower endpoint (minimum),a
and upper endpoint (maximum),b
.x
,a
, andb
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 inx
, using an algorithm that more accurately computes the extreme upper tail probabilities.
The uniform cdf is
The standard uniform distribution has a =0
and b =1
.