[−][src]Trait markovian::Transition
Abstraction over transition matrix.
Remarks
Output parameter O
allows sampling more than only the next state,
for example, continuous markov chains are able to sample both a new state
and a time step.
Required methods
fn sample_from<R: ?Sized>(&self, state: &T, rng: &mut R) -> O where
R: Rng,
R: Rng,
Implementors
impl<T, O, F, D> Transition<T, O> for F where
F: Fn(&T) -> D,
D: Distribution<O>,
[src]
F: Fn(&T) -> D,
D: Distribution<O>,