LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mamap22_fit_gamma_fs_trace.m
1function mmap = mamap22_fit_gamma_fs_trace(T, C)
2% Performs approximate fitting of a marked trace with two classes, yielding
3% a second-order acyclic MMAP[2] that fits the forward moments and the
4% class transition probabilities.
5%
6% Input
7% - T: the inter-arrival times
8% - C: the class marks of each job
9% Output
10% - mmap: fitted MAMAP[m]
11
12M1 = mean(T);
13M2 = mean(T.^2);
14M3 = mean(T.^3);
15GAMMA = trace_gamma(T);
16
17P = mtrace_pc(T,C);
18F = mtrace_forward_moment(T,C,1);
19S = mtrace_sigma(T,C);
20
21mmap = mamap22_fit_gamma_fs(M1, M2, M3, GAMMA, P, F, S);
22
23end