1function MAPH = maph2m_fit_trace(T,C)
2% Fits a marked trace with a second-order MAPH[m] that matches the
class
3% probabilities (always fitted exactly) and the backward moments.
6% - T: inter-arrival times
8% - MAPH: fitted second-order MAPH[m]
15B = mtrace_backward_moment(T,C,1);
17MAPH = maph2m_fit(M1, M2, M3,
P, B);