Struct probability::distribution::Exponential
[−]
[src]
pub struct Exponential { // some fields omitted }
An exponential distribution.
Methods
impl Exponential
[src]
fn new(lambda: f64) -> Exponential
Create an exponential distribution with rate lambda
.
It should hold that lambda > 0
.
fn lambda(&self) -> f64
Return the rate parameter.
Trait Implementations
impl Copy for Exponential
[src]
impl Clone for Exponential
[src]
fn clone(&self) -> Exponential
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Distribution for Exponential
[src]
type Value = f64
The type of outcomes.
fn cdf(&self, x: f64) -> f64
Compute the distribution function. Read more