LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mamap22_fit_gamma_fs_mmap.m
1function MMAP = mamap22_fit_gamma_fs_mmap(mmap)
2% Performs approximate fitting of an MMAP[2], yielding a second-order
3% acyclic MMAP[2] fitting the forward moments and the class transition
4% probabilities.
5%
6% Input
7% - mmap: the MMAP[2] to fit (arbitrary order)
8% Output
9% - MMAP: fitted second-order MAMAP[2]
10
11M1 = map_moment(mmap,1);
12M2 = map_moment(mmap,2);
13M3 = map_moment(mmap,3);
14GAMMA = map_gamma(mmap);
15
16P = mmap_pc(mmap);
17F = mmap_forward_moment(mmap,1);
18S = mmap_sigma(mmap);
19
20MMAP = mamap22_fit_gamma_fs(M1, M2, M3, GAMMA, P, F, S);
21
22end