1% H = MRAPFromMoments(moms, Nm)
3% Creates a marked rational arrival process that has the same
4% marginal and lag-1 joint moments as given (see [1]_).
8% moms : vector of doubles
9% The list of marginal moments. To obtain a marked
10% rational process of order M, 2*M-1 marginal moments
12% Nm : list of matrices, shape (M,M)
13% The list of lag-1 joint moment matrices. The
14% length of the list determines K, the number of arrival
15% types of the rational process.
19% H : list of matrices, shape (M,M)
20% The H0, H1, ..., HK matrices of the marked rational
25% There
is no guarantee that the returned matrices define
26% a valid stochastic process. The joint densities may be
31% .. [1] Andras Horvath, Gabor Horvath, Miklos Telek,
"A
32% traffic based decomposition of two-class queueing
33% networks with priority service," Computer Networks
34% 53:(8) pp. 1235-1248. (2009)
36function H = MRAPFromMoments (moms, Nm)
38 [v, H0] = MEFromMoments (moms);
48 G1(:,i) = sum(H0ip, 2);
49 H0ip = H0ip * i * H0i;
55 H = cell(1,length(Nm)+1);
58 H{i} = -H0*Gei*Nm{i-1}*G1i;