pdfWeibull#

Purpose#

Computes the probability density function of a Weibull random variable.

Format#

p = pdfWeibull(x, k, lambda)#
Parameters:
  • x (NxK matrix, Nx1 vector or scalar) – x must be greater than 0.

  • k (NxK matrix, Nx1 vector or scalar) – Shape parameter, ExE conformable with x. k must be greater than 0.

  • lambda (Nx1 vector or scalar) – Scale parameter, may be matrix, ExE conformable with x. lambda must be greater than 0.

Returns:

p (NxK matrix, Nx1 vector or scalar) – the probability density function of a Weibull random variable evaluated at x.

Remarks#

The probability density function of a Weibull random variable is defined as

\[\begin{split}f(x, \lambda, k) = \begin{cases} \frac{k}{\lambda} \big(\frac{x}{\lambda}\big)^{k-1} e^{-(x/\lambda)k}, & x \geq 0\\ 0, & x < 0 \end{cases}\end{split}\]

See also

Functions cdfWeibull(), cdfWeibullInv()