irox_stats

Trait Distribution

Source
pub trait Distribution {
    // Required methods
    fn pdf(&self, value: f64) -> f64;
    fn get_params(&self) -> Vec<DistributionParams>;
}
Expand description

This trait represents a statistical distribution

Required Methods§

Source

fn pdf(&self, value: f64) -> f64

computes the probability distribution function for a particular value

Source

fn get_params(&self) -> Vec<DistributionParams>

Returns a set of the known parameters of this distribution.

Implementors§