LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mamap2m_fit_gamma_fb_trace.m
1function MMAP = mamap2m_fit_gamma_fb_trace(T, A)
2% Performs approximate fitting of a marked trace, yielding a second-order
3% acyclic MMAP that matches the class probabilities, the forward and
4% backward moments.
5%
6% Input
7% - T: the inter-arrival times
8% - A: 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,A);
18F = mtrace_forward_moment(T,A,1);
19B = mtrace_backward_moment(T,A,1);
20
21MMAP = mamap2m_fit_gamma_fb(M1, M2, M3, GAMMA, P, F, B);
22
23end