1function SMMAP = npfqn_traffic_merge(
MMAP, config)
2%Given a cell array of n MMAPs with arrivals of R
classes, produces a
new
3%
MMAP after flow merging
4empty = cellfun(@isempty,
MMAP);
8if nargin<2%~exist(
'config',
'var')
9 config = struct('merge','default');
17 case {
'default',
'super'}
21 SMMAP = mmap_super(SMMAP,
MMAP{j},
'match');
28 SMMAP = mmap_super(SMMAP,
MMAP{j},
'match');
29 if mmap_isfeasible(SMMAP)
30 SMMAP = mmap_mixture_fit_mmap(SMMAP);
38 FLOW{end+1} = m3pp2m_fitc_theoretical(
MMAP{j},
'exact_delta', 1, 1e6);
41 SMMAP = m3pp2m_interleave(FLOW);
43 line_error(mfilename,
'Unsupported configuration for merge.');
46 switch config.compress
50 SMMAP = mmap_compress(SMMAP);
53SMMAP = mmap_normalize(SMMAP);