Struct probability::distribution::Logistic [] [src]

pub struct Logistic {
    // some fields omitted
}

A logistic distribution.

Methods

impl Logistic
[src]

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

Create a logistic distribution with location mu and scale s.

It should hold that s > 0.

fn mu(&self) -> f64

Return the location parameter.

fn s(&self) -> f64

Return the scale parameter.

Trait Implementations

impl Copy for Logistic
[src]

impl Clone for Logistic
[src]

fn clone(&self) -> Logistic

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 Logistic
[src]

fn default() -> Self

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

impl Continuous for Logistic
[src]

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

Compute the probability density function.

impl Distribution for Logistic
[src]

type Value = f64

The type of outcomes.

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

Compute the cumulative distribution function.

impl Entropy for Logistic
[src]

fn entropy(&self) -> f64

Compute the differential entropy. Read more

impl Inverse for Logistic
[src]

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

Compute the inverse of the cumulative distribution function.

impl Kurtosis for Logistic
[src]

fn kurtosis(&self) -> f64

Compute the excess kurtosis.

impl Mean for Logistic
[src]

fn mean(&self) -> f64

Compute the expected value.

impl Median for Logistic
[src]

fn median(&self) -> f64

Compute the median.

impl Modes for Logistic
[src]

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

Compute the modes.

impl Sample for Logistic
[src]

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

Draw a sample.

impl Skewness for Logistic
[src]

fn skewness(&self) -> f64

Compute the skewness.

impl Variance for Logistic
[src]

fn variance(&self) -> f64

Compute the variance.

fn deviation(&self) -> f64

Compute the standard deviation.