pdfexp

Purpose

Computes the probability density function for the exponential distribution.

Format

p = pdfexp(x, a, b)
Parameters
  • x (NxK matrix, Nx1 vector or scalar) – x must be greater than a.

  • a (NxK matrix, Nx1 vector or scalar) – Location parameter. ExE conformable with x.

  • b (scalar) – the scale parameter. sometimes called beta. b must be greater than 0.

Returns

p (NxK matrix, Nx1 vector or scalar) – the probability density function for the exponential distribution for the elements in x.

Remarks

pdfExp() calculates the probability density function for the two-parameter exponential distribution, which is defined as

\[f(x) = \frac{1}{b} exp \big( − \frac{x−a}{b} \big)\]

See also

Functions cdfexp()