pub trait DistributionSampler { // Required methods fn gamma(&self, shape: f64, scale: f64) -> f64; fn normal(&self, mean: f64, std_dev: f64) -> f64; }
Provides the way to sample from different distributions.
Returns a sample from gamma distribution.
Returns a sample from normal distribution.