1function [FIT] = m3pp22_fitc_approx_cov(a, bt1, bt2, binf, m3t2, ...
4% Fits a second-order Marked MMPP.
7% - bt1: IDC at scale t1
8% - bt2: IDC at scale t2
9% - binf: IDC
for t->inf
10% - m3t2: third central moment
11% - t1: first time scale
12% - t2: second time scale
14% - st3: count covariance between the two
classes at scale t3
15% - t3: third time scale
17if abs(a - sum(ai)) > 1e-8
18 error(
'Inconsistent per-class arrival rates.');
21% fit underlying MMPP(2)
22FIT = mmpp2_fitc_approx(a, bt1, bt2, binf, m3t2, t1, t2);
25FIT = m3pp22_fitc_approx_cov_multiclass(FIT, ai, st3, t3);