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

pub struct Lognormal {
    // some fields omitted
}

A lognormal distribution.

Methods

impl Lognormal
[src]

fn new(mu: f64, sigma: f64) -> Self

Create a lognormal distribution with location mu and scale sigma.

It should hold that sigma > 0.

fn mu(&self) -> f64

Return the location parameter.

fn sigma(&self) -> f64

Return the scale parameter.

Trait Implementations

impl Copy for Lognormal
[src]

impl Clone for Lognormal
[src]

fn clone(&self) -> Lognormal

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Default for Lognormal
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl Continuous for Lognormal
[src]

fn density(&self, x: f64) -> f64

Compute the probability density function.

impl Distribution for Lognormal
[src]

type Value = f64

The type of outcomes.

fn distribution(&self, x: f64) -> f64

Compute the cumulative distribution function.

impl Entropy for Lognormal
[src]

fn entropy(&self) -> f64

Compute the differential entropy. Read more

impl Inverse for Lognormal
[src]

fn inverse(&self, p: f64) -> f64

Compute the inverse of the cumulative distribution function.

impl Kurtosis for Lognormal
[src]

fn kurtosis(&self) -> f64

Compute the excess kurtosis.

impl Mean for Lognormal
[src]

fn mean(&self) -> f64

Compute the expected value.

impl Median for Lognormal
[src]

fn median(&self) -> f64

Compute the median.

impl Modes for Lognormal
[src]

fn modes(&self) -> Vec<f64>

Compute the modes.

impl Sample for Lognormal
[src]

fn sample<S>(&self, source: &mut S) -> f64 where S: Source

Draw a sample.

impl Skewness for Lognormal
[src]

fn skewness(&self) -> f64

Compute the skewness.

impl Variance for Lognormal
[src]

fn variance(&self) -> f64

Compute the variance.

fn deviation(&self) -> f64

Compute the standard deviation.