[][src]Struct rv::dist::LogNormal

pub struct LogNormal {
    pub mu: f64,
    pub sigma: f64,
}

LogNormal Distribution If x ~ Normal(μ, σ), then e^x ~ LogNormal(μ, σ).

Fields

mu: f64

log scale mean

sigma: f64

log scale standard deviation

Methods

impl LogNormal[src]

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

pub fn standard() -> Self[src]

Trait Implementations

impl Rv<f32> for LogNormal[src]

fn f(&self, x: &X) -> f64[src]

Probability function Read more

impl Rv<f64> for LogNormal[src]

fn f(&self, x: &X) -> f64[src]

Probability function Read more

impl Support<f32> for LogNormal[src]

impl Support<f64> for LogNormal[src]

impl ContinuousDistr<f32> for LogNormal[src]

fn pdf(&self, x: &X) -> f64[src]

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

fn ln_pdf(&self, x: &X) -> f64[src]

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

impl ContinuousDistr<f64> for LogNormal[src]

fn pdf(&self, x: &X) -> f64[src]

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

fn ln_pdf(&self, x: &X) -> f64[src]

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

impl Cdf<f32> for LogNormal[src]

fn sf(&self, x: &X) -> f64[src]

Survival function, 1 - CDF(x)

impl Cdf<f64> for LogNormal[src]

fn sf(&self, x: &X) -> f64[src]

Survival function, 1 - CDF(x)

impl InverseCdf<f32> for LogNormal[src]

fn quantile(&self, p: f64) -> X[src]

Alias for invcdf

fn interval(&self, p: f64) -> (X, X)[src]

Interval containing p proportion for the probability Read more

impl InverseCdf<f64> for LogNormal[src]

fn quantile(&self, p: f64) -> X[src]

Alias for invcdf

fn interval(&self, p: f64) -> (X, X)[src]

Interval containing p proportion for the probability Read more

impl Mean<f32> for LogNormal[src]

impl Mean<f64> for LogNormal[src]

impl Median<f32> for LogNormal[src]

impl Median<f64> for LogNormal[src]

impl Mode<f32> for LogNormal[src]

impl Mode<f64> for LogNormal[src]

impl Variance<f64> for LogNormal[src]

impl Entropy for LogNormal[src]

impl Skewness for LogNormal[src]

impl Kurtosis for LogNormal[src]

impl<'_> From<&'_ LogNormal> for String[src]

impl Clone for LogNormal[src]

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

Performs copy-assignment from source. Read more

impl Default for LogNormal[src]

impl Display for LogNormal[src]

impl Debug for LogNormal[src]

Auto Trait Implementations

impl Send for LogNormal

impl Sync for LogNormal

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,