1function mmap = mamap22_fit_gamma_bs_trace(T, A)
2% Performs approximate fitting of a marked trace with two
classes, yielding
3% a second-order acyclic
MMAP[2] that fits the backward moments and the
4%
class transition probabilities.
7% - T: the inter-arrival times
8% - C: the
class marks of each job
10% - mmap: fitted MAMAP[m]
15GAMMA = trace_gamma(T);
18B = mtrace_backward_moment(T,A,1);
21mmap = mamap22_fit_gamma_bs(M1, M2, M3, GAMMA,
P, B, S);