[][src]Trait markovian::Transition

pub trait Transition<T, O> {
    fn sample_from<R: ?Sized>(&self, state: &T, rng: &mut R) -> O
    where
        R: Rng
; }

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

Loading content...

Implementors

impl<T, O, F, D> Transition<T, O> for F where
    F: Fn(&T) -> D,
    D: Distribution<O>, 
[src]

Loading content...