Class markov::SimpleTransition
Predefined simple markov transition.
This is a transition class which works for any State
it simply keeps track of the state before and after the transition. This is convenient for initial testing but not efficient because:
- New states are repeatedly created for each (potential transition)
calculate_cost_difference()
cannot exploit knowledge about what changed to partially recalculate thecalculate_cost
(apart from calculating the diff fromstate
andtarget
).
Constructors
SimpleTransition()
Create a simple transition to an explicit target state.
Declaration
markov::SimpleTransition<State>::SimpleTransition(State target)
Methods
target()
Accessor for the target
state.
Declaration
const State&markov::SimpleTransition<State>::target() const