Statistics Toolbox | ![]() ![]() |
Continuous uniform cumulative distribution function (cdf).
Syntax
P = unifcdf(X,A,B)
Description
P = unifcdf(X,A,B)
computes the uniform cdf at each of the values in X
using the corresponding parameters in A and B (the minimum and maximum values, respectively). Vector or matrix inputs for X, A, and B must all have the same size. A scalar input is expanded to a constant matrix with the same dimensions as the other inputs.
The standard uniform distribution has A = 0
and B = 1
.
Examples
What is the probability that an observation from a standard uniform distribution will be less than 0.75?
probability = unifcdf(0.75) probability = 0.7500
What is the probability that an observation from a uniform distribution with a
= -1
and b
= 1
will be less than 0.75?
probability = unifcdf(0.75,-1,1) probability = 0.8750
See Also
cdf
, unifinv
, unifit
, unifpdf
, unifrnd
, unifstat
![]() | unidstat | unifinv | ![]() |