Exponential#

class Exponential(loc, rate)[source]#

Bases: ContinuousDistribution

Class for the two-parameter exponential distribution.

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

  • rate (float) – Rate parameter (lambda). Must be positive.

Variables:
  • loc (float) – Location parameter.

  • rate (float) – Rate 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.