Given a transition matrix Q
, a uniform value u
, and a previous
state k
, it returns the new state of a Markov jump process.
new_state(prev_state, cum_embedded_mc, u)
Next state of the Markov jump process.
Previous state of the Markov jump process.
Transition matrix.
Random value in (0,1).