pub trait DistributionSampler {
    // Required methods
    fn gamma(&self, shape: f64, scale: f64) -> f64;
    fn normal(&self, mean: f64, std_dev: f64) -> f64;
}
Expand description

Provides the way to sample from different distributions.

Required Methods§

source

fn gamma(&self, shape: f64, scale: f64) -> f64

Returns a sample from gamma distribution.

source

fn normal(&self, mean: f64, std_dev: f64) -> f64

Returns a sample from normal distribution.

Implementors§