Struct probability::distribution::Exponential [−][src]
pub struct Exponential { /* fields omitted */ }
An exponential distribution.
Methods
impl Exponential
[src]
impl Exponential
pub fn new(lambda: f64) -> Self
[src]
pub fn new(lambda: f64) -> Self
Create an exponential distribution with rate lambda
.
It should hold that lambda > 0
.
pub fn lambda(&self) -> f64
[src]
pub fn lambda(&self) -> f64
Return the rate parameter.
Trait Implementations
impl Clone for Exponential
[src]
impl Clone for Exponential
fn clone(&self) -> Exponential
[src]
fn clone(&self) -> Exponential
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Exponential
[src]
impl Copy for Exponential
impl Debug for Exponential
[src]
impl Debug for Exponential
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Continuous for Exponential
[src]
impl Continuous for Exponential
impl Distribution for Exponential
[src]
impl Distribution for Exponential
type Value = f64
The type of outcomes.
fn distribution(&self, x: f64) -> f64
[src]
fn distribution(&self, x: f64) -> f64
Compute the cumulative distribution function.
impl Entropy for Exponential
[src]
impl Entropy for Exponential
impl Inverse for Exponential
[src]
impl Inverse for Exponential
impl Kurtosis for Exponential
[src]
impl Kurtosis for Exponential
impl Mean for Exponential
[src]
impl Mean for Exponential
impl Median for Exponential
[src]
impl Median for Exponential
impl Modes for Exponential
[src]
impl Modes for Exponential
impl Sample for Exponential
[src]
impl Sample for Exponential
impl Skewness for Exponential
[src]
impl Skewness for Exponential
impl Variance for Exponential
[src]
impl Variance for Exponential
Auto Trait Implementations
impl Send for Exponential
impl Send for Exponential
impl Sync for Exponential
impl Sync for Exponential