LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
m3pp_superpos_fitc.m
1function [fit,m3pps] = m3pp_superpos_fitc(av, btv, binfv, ...
2 m3tv, t, tinf)
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.
5%
6% INPUT
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
11% t: finite time scale
12% tinf: near-infinite time scale
13%
14% OUTPUT
15% fit: result of the superposition, M3PP[m] of order k+1
16% m3pps: cell-array with the fitted and superposed second-order
17% M3PP[m_j]
18
19% number of classes
20m = length(av);
21
22% total rate
23a = sum(av);
24
25% fit m3pp[2] processes
26m3pps = cell(m,1);
27for i = 1:m
28 mmpp = mmpp2_fitc(av(i), ...
29 btv(i), btv(i), binfv(i), ...
30 m3tv(i), t, tinf);
31 m3pps{i} = {mmpp{1},mmpp{2},mmpp{2}};
32end
33
34% perform superposition
35fit = mmap_super(m3pps);
36
37end
Definition Station.m:245