Skip to main content

Cauchy

The ratio of two normal distributions with location parameter a (with default value 0.0) and half-width half-maximum b (with default value 1.0).

The probability density is given by,

f(xa,b)=(bπ(1+(xab)2))1.f(x | a, b) = \left(b\pi\left(1 + \left(\frac{x-a}{b}\right)^2\right)\right)^{-1}.

Constructors

Cauchy(const Cauchy distribution) -> Cauchy

Copy constructor for Cauchy distribution.

Parameters

  • distribution: Cauchy distribution to be copied

Symbols

NameDescription
=Copy assignment operator for Cauchy distribution.

Members

NameDescription
aLocation
bHalf-width half-Maximum.
maxReturns the maximum possible value from the distribution
minReturns the minimum possible value from the distribution
sampleSample from distribution.