<< distfun_expcdf Exponential distfun_exppdf >>

distfun >> distfun > Exponential > distfun_expinv

distfun_expinv

Exponential Inverse CDF

Calling Sequence

x = distfun_expinv ( p , mu )
x = distfun_expinv ( p , mu , lowertail )

Parameters

p:

a matrix of doubles, the probability

mu :

a matrix of doubles, the average. mu>0

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

Description

This function computes the Exponential Quantile.

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

Any optional input argument equal to the empty matrix will be set to its default value.

Examples

x = distfun_expinv ( 0.7 , 2. )
xexpected = 2.4079456

// See upper tail
x = distfun_expinv ( 0.8 , 1/2 )
x = distfun_expinv ( 0.8 , 1/2 , %f )
// See an extreme case
x = distfun_expinv ( 1.e-20 , 1/2 , %f )
// See an extreme case
x = distfun_expinv(1.e-20,1)

Authors

Bibliography

Wikipedia, Exponential distribution function, http://en.wikipedia.org/wiki/Exponential_distribution


Report an issue
<< distfun_expcdf Exponential distfun_exppdf >>