Struct rand::distributions::Exp
source · pub struct Exp { /* private fields */ }
👎Deprecated since 0.7.0: moved to rand_distr crate
Expand description
The exponential distribution Exp(lambda)
.
This distribution has density function: f(x) = lambda * exp(-lambda * x)
for x > 0
.
Note that Exp1
is an optimised implementation for lambda = 1
.
Implementations§
Trait Implementations§
source§impl Distribution<f64> for Exp
impl Distribution<f64> for Exp
impl Copy for Exp
Auto Trait Implementations§
impl RefUnwindSafe for Exp
impl Send for Exp
impl Sync for Exp
impl Unpin for Exp
impl UnwindSafe for Exp
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