Transition#
- class braincell.channel.Transition(src, dst, forward, backward=None)[source]#
One directed or reversible transition used by Markov channels.
A
Transitionnames two states and the rate method(s) that move probability between them; it does not itself hold rates or values.Markovconsumes a tuple of these underpairsand builds the generator matrix for the whole state graph from them.- Parameters:
src (
str) – Name of the source state.dst (
str) – Name of the destination state.forward (
str) – Name of the rate method that governs thesrc -> dstdirection. Looked up on the owning channel and called the same way as any other rate method.backward (
str|None) – Name of the rate method that governs thedst -> srcdirection. WhenNone, the transition is directed: probability only flowssrc -> dstand no reverse rate is looked up or evaluated, so the pair contributes nothing to thedst -> srcentry of the generator matrix. Supplying a name makes the transition reversible, with independent forward and backward rates.
See also
MarkovConsumes a tuple of
Transitionunderpairs.