1function sigma = mtrace_sigma2(T,L)
2% Computes the empirical probability of observing a specific 3-element
3% sequence of events, i.e. the two-step
class transition probabilities.
5% T: the inter-arrival times
8% sigma: the matrix whose (i,j) element
is the probability of observing
9% an
event of
class i followed by an event of class j.
19 sigma(i,j,h) = sum(L(1:end-2)==marks(i) & ...
20 L(2:end-1)==marks(j) & ...
22 sigma(i,j,h) = sigma(i,j,h) / (length(L)-2);