cdfExpInv

Purpose

Computes the exponential inverse cumulative distribution function.

Format

x = cdfExpInv(p, loc, m)
Parameters:
  • p (NxK matrix, Nx1 vector or scalar) – Probabilities at which to compute the inverse of the exponential cumulative distribution function. \(0 \lt p \lt 1\).
  • loc (NxK matrix, Nx1 vector or scalar) – Location parameter, ExE conformable with p. \(loc < x\).
  • m (NxK matrix, Nx1 vector or scalar) – Mean parameter, ExE conformable with p. m is the reciprocal of the rate parameter sometimes called \(\lambda\). \(m > 0\).
Returns:

x (NxK matrix, Nx1 vector or scalar) – each value of x is the value such that the exponential cdf with loc location and m mean evaluated at x is equal to the corresponding value of p.

Examples

// Probabilities
p = {0.1, 0.25, 0.5, 0.75, 0.95};

// Location parameter
loc = 0;

// Mean parameter
m = 2;

// Call cdfExp
x = cdfExpInv(p, loc, m);
print "x = " x;

After above code,

x =
  0.2107
  0.5754
  1.3863
  2.7726
  5.9915

See also

Functions pdfExp(), cdfExp()