statrs::statistics

Trait DiscreteDistribution

Source
pub trait DiscreteDistribution<T: Float>: Distribution<u64> {
    // 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 not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§