Struct rand::distributions::Exp [−][src]
pub struct Exp { /* fields omitted */ }👎 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
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 Exp
impl UnwindSafe for Exp
Blanket Implementations
Mutably borrows from an owned value. Read more