LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
maph2m_fit_trace.m
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.
4%
5% Input
6% - T: inter-arrival times
7% - C: class labels
8% - MAPH: fitted second-order MAPH[m]
9
10M1 = mean(T);
11M2 = mean(T.^2);
12M3 = mean(T.^3);
13
14P = mtrace_pc(T,C);
15B = mtrace_backward_moment(T,C,1);
16
17MAPH = maph2m_fit(M1, M2, M3, P, B);
18
19end