Struct rv::dist::Exponential[][src]

pub struct Exponential {
    pub rate: f64,
}

Exponential distribution, Exp(λ) over x in [0, ∞)

Examples

Compute 50% confidence interval

use rv::prelude::*;

let expon = Exponential::new(1.5).unwrap();
let interval: (f64, f64) = expon.interval(0.5);  // (0.19, 0.92)

Fields

λ > 0, rate or inverse scale

Methods

impl Exponential
[src]

Trait Implementations

impl Debug for Exponential
[src]

Formats the value using the given formatter. Read more

impl Clone for Exponential
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Skewness for Exponential
[src]

impl Kurtosis for Exponential
[src]

impl Entropy for Exponential
[src]

The entropy, H(X)

impl KlDivergence for Exponential
[src]

The KL divergence, KL(P|Q) between this distribution, P, and another, Q Read more

Symmetrised divergence, KL(P|Q) + KL(Q|P) Read more

impl Rv<f64> for Exponential
[src]

Un-normalized probability function Read more

The log of the constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more

Single draw from the Rv Read more

Multiple draws of the Rv Read more

Un-normalized probability function Read more

The constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more

impl Support<f64> for Exponential
[src]

Returns true if x is in the support of the Rv Read more

impl ContinuousDistr<f64> for Exponential
[src]

The value of the Probability Density Function (PDF) at x Read more

The value of the log Probability Density Function (PDF) at x Read more

impl Cdf<f64> for Exponential
[src]

The value of the Cumulative Density Function at x Read more

Survival function, 1 - CDF(x)

impl InverseCdf<f64> for Exponential
[src]

The value of the x at the given probability in the CDF Read more

Alias for invcdf

Interval containing p proportion for the probability Read more

impl Mean<f64> for Exponential
[src]

Returns None if the mean is undefined

impl Median<f64> for Exponential
[src]

Returns None if the median is undefined

impl Mode<f64> for Exponential
[src]

Returns None if the mode is undefined or is not a single value

impl Variance<f64> for Exponential
[src]

Returns None if the variance is undefined

impl Rv<f32> for Exponential
[src]

Un-normalized probability function Read more

The log of the constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more

Single draw from the Rv Read more

Multiple draws of the Rv Read more

Un-normalized probability function Read more

The constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more

impl Support<f32> for Exponential
[src]

Returns true if x is in the support of the Rv Read more

impl ContinuousDistr<f32> for Exponential
[src]

The value of the Probability Density Function (PDF) at x Read more

The value of the log Probability Density Function (PDF) at x Read more

impl Cdf<f32> for Exponential
[src]

The value of the Cumulative Density Function at x Read more

Survival function, 1 - CDF(x)

impl InverseCdf<f32> for Exponential
[src]

The value of the x at the given probability in the CDF Read more

Alias for invcdf

Interval containing p proportion for the probability Read more

impl Mean<f32> for Exponential
[src]

Returns None if the mean is undefined

impl Median<f32> for Exponential
[src]

Returns None if the median is undefined

impl Mode<f32> for Exponential
[src]

Returns None if the mode is undefined or is not a single value

impl Variance<f32> for Exponential
[src]

Returns None if the variance is undefined

Auto Trait Implementations

impl Send for Exponential

impl Sync for Exponential