1function sigma = mtrace_sigma(T,L)
2% Computes the empirical probability of observing a specific 2-element
3% sequence of events, i.e. the one-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.
18 sigma(i,j) = sum(L(1:end-1)==marks(i) & L(2:end)==marks(j));
19 sigma(i,j) = sigma(i,j) / (length(L)-1);