1function [TL] = mtrace_split(T, L)
2% Given a multi-
class trace with inter-arrivals T and labels L,
3% creates the separate per-
class traces. In each per-class trace
4% the inter-arrivals are inter-arrivals between events of the same
class.
5% The result
is a cell array and the c-th element of the cell array
6% contains the vector of inter-arrival times
for class c.
15 TL{c} = diff([0; TCUM(L == labels(c))]);