<< distfun_uniffitmm Uniform distfun_unifpdf >>

Distfun >> Distfun > Uniform > distfun_unifinv

distfun_unifinv

Uniform Inverse CDF

Calling Sequence

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

Parameters

p :

a matrix of doubles, the probability. Must be in the range [0,1].

a :

a matrix of doubles, the lower bound

b :

a matrix of doubles, the upper bound (with a<=b)

lowertail :

a 1-by-1 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 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 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


Report an issue
<< distfun_uniffitmm Uniform distfun_unifpdf >>