Compute the expected number of visits to each state during the first n transitions, or until abrosption.
INPUTS
P(i,j)N \times N transition matrix. P(i,j) is the
transition probability from state i to state j.
nNumber of steps during which the expected number of visits are
computed (n ≥ 0). If n=0, returns
p0. If n > 0, returns the expected number of
visits after exactly n transitions.
p0(i)Initial state occupancy probabilities; p0(i) is
the probability that the system is in state i at step 0.
OUTPUTS
L(i)When called with two arguments, L(i) is the expected
number of visits to state i before absorption. When
called with three arguments, L(i) is the expected number
of visits to state i during the first n transitions.
REFERENCES
See also: ctmcexps.
Package: queueing