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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".