HyperMath

UnifPDF

UnifPDF

Previous topic Next topic No expanding text in this topic  

UnifPDF

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Generates a continuous uniform probability density function value at specified locations in a given interval.

Syntax

PDF = UnifPDF(Points, Llim, Ulim)

Arguments

Name

Description

 

Points

A scalar, vector, or matrix of points where the density function is to be evaluated.

 

Llim

Lower limit of the interval.  A real scalar.

 

Ulim

Upper limit of the interval.  A real scalar and must be greater than Llim.

Output

Name

Description

 

PDF

A scalar or vector of the density function values at the given points. The same size as Points.

Example

Find the uniform probability density function at points 0, 2, and 3 in the interval -2 to 2.

 

Syntax

 

pdf = UnifPDF([0,2,3],-2,2)

 

Result

 

pdf =  0.25    0.25    0

See Also:

NormPDF

Probability Distributions