pub trait Distribution: DynClone {
// Required method
fn sample(&self) -> i32;
}Expand description
An integer-valued probability distribution.
We need to be able to clone Boxdyn_clone crate to allow for this.
pub trait Distribution: DynClone {
// Required method
fn sample(&self) -> i32;
}An integer-valued probability distribution.
We need to be able to clone Boxdyn_clone crate to allow for this.