Struct probability::prelude::Lognormal[][src]

pub struct Lognormal { /* fields omitted */ }

A lognormal distribution.

Implementations

impl Lognormal[src]

pub fn new(mu: f64, sigma: f64) -> Self[src]

Create a lognormal distribution with location mu and scale sigma.

It should hold that sigma > 0.

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

Return the location parameter.

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

Return the scale parameter.

Trait Implementations

impl Clone for Lognormal[src]

impl Continuous for Lognormal[src]

impl Copy for Lognormal[src]

impl Debug for Lognormal[src]

impl Default for Lognormal[src]

impl Distribution for Lognormal[src]

type Value = f64

The type of outcomes.

impl Entropy for Lognormal[src]

impl Inverse for Lognormal[src]

impl Kurtosis for Lognormal[src]

impl Mean for Lognormal[src]

impl Median for Lognormal[src]

impl Modes for Lognormal[src]

impl Sample for Lognormal[src]

impl Skewness for Lognormal[src]

impl Variance for Lognormal[src]

Auto Trait Implementations

impl RefUnwindSafe for Lognormal

impl Send for Lognormal

impl Sync for Lognormal

impl Unpin for Lognormal

impl UnwindSafe for Lognormal

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.