[][src]Struct probability::distribution::Lognormal

pub struct Lognormal { /* fields omitted */ }

A lognormal distribution.

Methods

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

fn deviation(&self) -> f64[src]

Compute the standard deviation.

impl Clone for Lognormal[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Lognormal[src]

impl Default for Lognormal[src]

impl Debug for Lognormal[src]

Auto Trait Implementations

impl Send for Lognormal

impl Sync for Lognormal

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]