ctmcfpt
Compute mean first passage times for an irreducible continuous-time Markov chain.
INPUTS
Q(i,j)
Infinitesimal generator matrix. Q is a
square matrix where Q(i,j)
is the transition rate from
state to state , for ,
. Transition rates must be nonnegative, and
i
Initial state.
j
Destination state.
OUTPUTS
M(i,j)
average time before state
j is visited for the first time, starting from state i.
We let M(i,i) = 0
.
m
m is the average time before state j is visited for the first time, starting from state i.
See also: ctmcmtta
Q = [ -1.0 0.9 0.1; ... 0.1 -1.0 0.9; ... 0.9 0.1 -1.0 ]; M = ctmcfpt(Q) m = ctmcfpt(Q,1,3) M = 0 1.2088 2.0879 2.0879 0 1.2088 1.2088 2.0879 0 m = 2.0879 |