1function N = mtrace_count(T,A,t)
2% Computes the count process sample, at resolution,
for the marked trace
6periods = ceil(time / t);
9N = zeros(periods,length(C));
13 tstart = T(1) + (i-1) * t;
16 % A == C(c), not A == c: c
is the position in the
class list, so any
17 % label alphabet other than 1..length(C) was miscounted (all-zero
18 % columns
for labels outside that range).
19 N(i,c) = sum( Tcum > tstart & Tcum <= tend & A == C(c) );