1function [fit,m3pps] = m3pp_superpos_fitc(av, btv, binfv, ...
3% Fits k second-order M3PP[m_j] and superposes them into a
4% M3PP[m] of order k+1, with m = \sum_j=1^k m_j.
7% av: vector of length m with
the per-process rates
8% btv: vector of length k with
the per-process IDC(t)
9% binfv: vector of length k with
the per-process IDC(inf)
10% m3tv: third moment of counts
12% tinf: near-infinite time scale
15% fit: result of
the superposition, M3PP[m] of order k+1
16% m3pps: cell-array with
the fitted and superposed second-order
25% fit m3pp[2] processes
28 mmpp = mmpp2_fitc(av(i), ...
29 btv(i), btv(i), binfv(i), ...
31 m3pps{i} = {mmpp{1},mmpp{2},mmpp{2}};
34% perform superposition
35fit = mmap_super(m3pps);