Trait libspecr::Distribution
source · pub trait Distribution<T> {
// Required method
fn sample(&self, rng: &mut ThreadRng) -> T;
}Expand description
A probability distribution over values of type T.
pub trait Distribution<T> {
// Required method
fn sample(&self, rng: &mut ThreadRng) -> T;
}A probability distribution over values of type T.