Struct probability::prelude::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

impl Continuous for Exponential
[src]

fn pdf(&self, x: f64) -> f64

Compute the probability density function.

impl Entropy for Exponential
[src]

fn entropy(&self) -> f64

Compute the differential entropy. Read more

impl Inverse for Exponential
[src]

fn inv_cdf(&self, p: f64) -> f64

Compute the inverse of the distribution function.

impl Kurtosis for Exponential
[src]

fn kurtosis(&self) -> f64

Compute the excess kurtosis.

impl Mean for Exponential
[src]

fn mean(&self) -> f64

Compute the expected value.

impl Median for Exponential
[src]

fn median(&self) -> f64

Compute the median.

impl Modes for Exponential
[src]

fn modes(&self) -> Vec<f64>

Compute the modes.

impl Sample for Exponential
[src]

fn sample<S>(&self, source: &mut S) -> f64 where S: Source

Draw a sample.

impl Skewness for Exponential
[src]

fn skewness(&self) -> f64

Compute the skewness.

impl Variance for Exponential
[src]

fn variance(&self) -> f64

Compute the variance.

fn deviation(&self) -> f64

Compute the standard deviation.

fn var(&self) -> f64

Compute the variance. Read more

fn sd(&self) -> f64

Compute the standard deviation. Read more