LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
m3pp2m_fitc_approx_ag.m
1function [FIT] = m3pp2m_fitc_approx_ag(a, bt1, bt2, binf, m3t2, ...
2 t1, t2, ...
3 ai, gt3, t3)
4% Fits a second-order Marked MMPP.
5% a: arrival rate
6% bt1: IDC at scale t1
7% bt2: IDC at scale t2
8% binf: IDC for t->inf
9% m3t2: third central moment
10% t1: first time scale
11% t2: second time scale
12% ai: i-th element is the rate of class i
13% gt3: i-th element is the sum of the variance of class i and its
14% covariance with all the other classes combined.
15% t3: third time scale
16
17if abs(a - sum(ai)) > 1e-8
18 error('Inconsistent per-class arrival rates.');
19end
20
21% fit underlying MMPP(2)
22FIT = mmpp2_fitc_approx(a, bt1, bt2, binf, m3t2, t1, t2);
23
24% fit M3PP(2,m)
25FIT = m3pp2m_fitc_approx_ag_multiclass(FIT, ai, gt3, t3);
26
27end