pub trait SwitchableDistribution<U>: Distribution + Sizedwhere
U: Event,
{ // Required method fn switch<'a>(
&'a self,
map: &'a HashMap<u32, U>
) -> SwitchedDistribution<'a, Self, Self::Value, Self::Condition>; }

Required Methods§

source

fn switch<'a>(
&'a self,
map: &'a HashMap<u32, U>
) -> SwitchedDistribution<'a, Self, Self::Value, Self::Condition>

Implementors§

source§

impl<D, T, U> SwitchableDistribution<U> for Dwhere
D: Distribution<Value = T, Condition = U>,
T: RandomVariable,
U: Event,