1function MC = mtrace_cross_moment(T,L,k)
2% Computes
the k-th order moment of
the inter-arrival time between an
event
3% of
class i and an event of class j, for all possible pairs of classes.
5% T: inter-arrival times
7% k: order of
the moment
9% MC:
the element in (i,j)
is the k-th order moment of
the inter-arrival
10% time between an
event of
class i and an event of class j
21 if L(t-1) == marks(i) && L(t) == marks(j)
22 MC(i,j) = MC(i,j) + T(t)^k;