1function C=trace_iat2counts(S,scale)
2% computes
the counting process of S, i.e.,
the counts after
"scale" units
3% of time from an arrival
9 while CS(cur + 1) - CS(i) <= scale
11 if cur == n % when
the window first hits
the end of
the trace we
return