pub struct Cauchy { /* private fields */ }
Expand description

A Cauchy distribution.

The Cauchy distribution (also known as Lorentz or Cauchy–Lorentz distribution) is a continuous probability distribution with a location parameter x_0, a scale parameter gamma > 0, and the following probability density function:

p(x) = 1 / (pi * gamma * (1 + ((x - x_0) / gamma)^2)).

The distribution is long tailed and has no mean or variance. It is unimodal with the mode at x_0, around which it is symmetric.

Implementations

Create a Cauchy distribution with location x_0 and scale gamma.

It should hold that gamma > 0.

Return the location parameter.

Return the scale parameter.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Compute the probability density function.
Formats the value using the given formatter. Read more
The type of outcomes.
Compute the cumulative distribution function.
Compute the differential entropy. Read more
Compute the inverse of the cumulative distribution function.
Compute the median.
Compute the modes.
Draw a sample.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.