Struct rand::distributions::Cauchy [−][src]
pub struct Cauchy { /* fields omitted */ }👎 Deprecated since 0.7.0:
moved to rand_distr crate
Expand description
The Cauchy distribution Cauchy(median, scale).
This distribution has a density function:
f(x) = 1 / (pi * scale * (1 + ((x - median) / scale)^2))
Implementations
Trait Implementations
Generate a random value of T, using rng as the source of randomness.
Create an iterator that generates random values of T, using rng as
the source of randomness. Read more
Auto Trait Implementations
impl RefUnwindSafe for Cauchy
impl UnwindSafe for Cauchy
Blanket Implementations
Mutably borrows from an owned value. Read more