Cauchy#

class Cauchy(loc, scale)[source]#

Bases: ContinuousDistribution

Class for the two-parameter cauchy distribution.

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

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

Variables:
  • 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.