Skip to main content

DiscreteDistribution

Trait DiscreteDistribution 

Source
pub trait DiscreteDistribution<T: Float> {
    // Provided methods
    fn mean(&self) -> Option<T> { ... }
    fn variance(&self) -> Option<T> { ... }
    fn std_dev(&self) -> Option<T> { ... }
    fn entropy(&self) -> Option<T> { ... }
    fn skewness(&self) -> Option<T> { ... }
}

Provided Methods§

Source

fn mean(&self) -> Option<T>

Returns the mean, if it exists.

Source

fn variance(&self) -> Option<T>

Returns the variance, if it exists.

Source

fn std_dev(&self) -> Option<T>

Returns the standard deviation, if it exists.

Source

fn entropy(&self) -> Option<T>

Returns the entropy, if it exists.

Source

fn skewness(&self) -> Option<T>

Returns the skewness, if it exists.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§