Statistics Toolbox
  Go to function:
    Search    Help Desk 
unifcdf    Examples

Continuous uniform cumulative distribution function (cdf).

Syntax

Description

unifcdf(X,A,B) computes the uniform cdf with parameters A and B at the values in X. The arguments X, A and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments.

A and B are the minimum and maximum values respectively.

The uniform cdf is:


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?

What is the probability that an observation from a uniform distribution with
a = -1 and b = 1 will be less than 0.75?



[ Previous | Help Desk | Next ]