Weibull#

class Weibull(shape, loc, scale)[source]#

Bases: ContinuousDistribution

Class for the three-parameter Weibull distribution.

Parameters:
  • shape (float) – Shape parameter (k). Must be positive.

  • loc (float) – Location parameter (gamma). Can be any real number.

  • scale (float) – Scale parameter (lambda). Must be positive.

Variables:
  • shape (float) – Shape parameter.

  • loc (float) – Location parameter.

  • scale (float) – Scale parameter.

Methods

ppf(P)

Percent Point Function (PPF) or quantile function.

pdf(X)

Probability density function (PDF).

lpdf(X)

Log of the Probability Density Function (LPDF).

log_gradients(X)

Calculates the gradients of the log-PDF w.r.t.

generate(size)

Generates random samples from the distribution.