LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mmpp2_fitc_theoretical.m
1function [fit] = mmpp2_fitc_theoretical(map,t1,t2,tinf)
2% Fits the theoretical characteristics of a MAP(n) with a MMPP(2).
3if nargin<4
4t1 = 1;
5t2 = 10;
6tinf = 1e8;
7end
8
9% joint-process charactersitics
10a = map_count_mean(map,t1)/t1;
11bt1 = map_count_var(map,t1)/(a*t1);
12bt2 = map_count_var(map,t2)/(a*t2);
13binf = map_count_var(map,tinf)/(a*tinf);
14mt2 = map_count_moment(map,t2,1:3);
15m3t2 = mt2(3) - 3*mt2(2)*mt2(1) + 2*mt2(1)^3;
16
17fit = mmpp2_fitc(a, bt1, bt2, binf, m3t2, t1, t2);