1function [fit] = maph2m_fitc_theoretical(mmap, method)
2% Fits the theoretical characteristics of a
MMAP(n,m) with a M3PP(2,m).
4% - mmap: the
MMAP(n,m) to fit with a M3PP(2,m)
5% - method: either
'exact' or
'approx'
18% joint-process charactersitics
19a = map_count_mean(mmap,t1)/t1;
20bt1 = map_count_var(mmap,t1)/(a*t1);
21binf = map_count_var(mmap,tinf)/(a*tinf);
24ai = mmap_count_mean(mmap,1);
26% per-
class variance differential
29 mmap2 = {mmap{1},mmap{2},mmap{2+i},mmap{2}-mmap{2+i}};
30 Vt3 = mmap_count_var(mmap2,t3);
31 dvt3(i) = Vt3(1)-Vt3(2);
34if strcmp(method,
'exact') == 1
35 fit = maph2m_fitc(a, bt1, binf, t1, ai, dvt3, t3);
36elseif strcmp(method,
'approx') == 1
37 fit = maph2m_fitc_approx(a, bt1, binf, t1, ai, dvt3, t3);
39 error(
'Invalid method ''%s\''', method);