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

pub struct Exponential { /* fields omitted */ }

An exponential distribution.

Methods

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 Continuous 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]

impl Clone for Exponential[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 Debug for Exponential[src]

Auto Trait Implementations

impl Send for Exponential

impl Sync for Exponential

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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