<< distfun_unifcdf Uniform distfun_unifpdf >>

Distfun >> Uniform > distfun_unifinv

distfun_unifinv

Uniform Inverse CDF

Calling Sequence

x = distfun_unifinv ( p )
x = distfun_unifinv ( p , a , b )
x = distfun_unifinv ( p , a , b , lowertail )

Parameters

p :

a 1x1 or nxm matrix of doubles, the probability

a :

a 1x1 or nxm matrix of doubles, the lower bound (default a=0)

b :

a 1x1 or nxm matrix of doubles, the upper bound (default b=1)

lowertail :

a 1x1 matrix of booleans, the tail (default lowertail=%t). If lowertail is true (the default), then considers P(X<x) otherwise P(X>x).

x :

a nxm matrix of doubles, the outcome

Description

Computes the inverse Uniform cumulated probability distribution function of the Uniform function.

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Examples

// Test with default a, b
x = distfun_unifinv ( [0.5 0.9 0.7] )
expected = [0.5 0.9 0.7]

// Test argument expansion
x=distfun_unifinv([0.5 0.9 0.7],1.0,2.0)
expected = [1.5    1.9    1.7]

// Test with expanded arguments
x=distfun_unifinv([0.5 0.9 0.7],[1 1 1],[2 2 2])
expected = [1.5    1.9    1.7]

// See upper tail
x=distfun_unifinv(1.e-15,1.,2.)
x=distfun_unifinv(1.e-15,1.,2.,%f)

Authors

<< distfun_unifcdf Uniform distfun_unifpdf >>