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§
Sourcefn pdf(&self, value: f64) -> f64
fn pdf(&self, value: f64) -> f64
computes the probability distribution function for a particular value
Sourcefn get_params(&self) -> Vec<DistributionParams>
fn get_params(&self) -> Vec<DistributionParams>
Returns a set of the known parameters of this distribution.