Struct rand::distributions::exponential::Exp [−] [src]

pub struct Exp { /* fields omitted */ }
Unstable (rand)

: use rand from crates.io

The exponential distribution Exp(lambda).

This distribution has density function: f(x) = lambda * exp(-lambda * x) for x > 0.

Methods

impl Exp
[src]

Unstable (rand)

: use rand from crates.io

Construct a new Exp with the given shape parameter lambda. Panics if lambda <= 0.

Trait Implementations

impl Copy for Exp
[src]

impl Clone for Exp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Sample<f64> for Exp
[src]

Unstable (rand)

: use rand from crates.io

Generate a random value of Support, using rng as the source of randomness. Read more

impl IndependentSample<f64> for Exp
[src]

Unstable (rand)

: use rand from crates.io

Generate a random value.