Struct rand::distributions::Cauchy
source · pub struct Cauchy { /* private fields */ }
👎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§
source§impl Distribution<f64> for Cauchy
impl Distribution<f64> for Cauchy
impl Copy for Cauchy
Auto Trait Implementations§
impl RefUnwindSafe for Cauchy
impl Send for Cauchy
impl Sync for Cauchy
impl Unpin for Cauchy
impl UnwindSafe for Cauchy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more