Struct probability::prelude::Exponential[][src]

pub struct Exponential { /* fields omitted */ }

An exponential distribution.

Implementations

impl Exponential[src]

pub fn new(lambda: f64) -> Self[src]

Create an exponential distribution with rate lambda.

It should hold that lambda > 0.

pub fn lambda(&self) -> f64[src]

Return the rate parameter.

Trait Implementations

impl Clone for Exponential[src]

impl Continuous for Exponential[src]

impl Copy for Exponential[src]

impl Debug for Exponential[src]

impl Distribution for Exponential[src]

type Value = f64

The type of outcomes.

impl Entropy for Exponential[src]

impl Inverse for Exponential[src]

impl Kurtosis for Exponential[src]

impl Mean for Exponential[src]

impl Median for Exponential[src]

impl Modes for Exponential[src]

impl Sample for Exponential[src]

impl Skewness for Exponential[src]

impl Variance for Exponential[src]

Auto Trait Implementations

impl RefUnwindSafe for Exponential

impl Send for Exponential

impl Sync for Exponential

impl Unpin for Exponential

impl UnwindSafe for Exponential

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.