1function d = dmap_exp_mul_int(DMAPA,DMAPB,L,alA,alB)
2% d=dmap_exp_mul_int(DMAPA,DMAPB,L,alA,alB) - Joint PMF inner product
3% of two discrete-time MAPs via recursive discrete Lyapunov equations.
5% Reference (continuous-time formulation):
6% G. Horvath,
"Measuring the distance between MAPs and some
7% applications," in Proc. ASMTA 2015, LNCS 9081, pp. 95-109.
10% Discrete-time extension by QORE Lab (https:
13% DMAPA: first D-MAP in the form of {D0,D1}
14% DMAPB: second D-MAP in the form of {D0,D1}
15% L: number of inter-arrival times in the joint PMF
16% alA,alB: (optional) stationary vectors at arrival epochs
19% d: inner product of joint PMFs
21D0A=DMAPA{1}; D1A=DMAPA{2};
22D0B=DMAPB{1}; D1B=DMAPB{2};
23NA = size(D0A,1); NB = size(D0B,1);
25 alB = dtmc_solve(inv(eye(NB)-D0B)*D1B);
28 alA = dtmc_solve(inv(eye(NA)-D0A)*D1A);
30Z = dlyap(D0B
', D0A, alB'*alA);
32 Z = dlyap(D0B
', D0A, D1B'*Z*D1A);
34dA = sum(eye(NA)-D0A, 2);
35dB = sum(eye(NB)-D0B, 2);