LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
map_exp_mul_int.m
1function d = map_exp_mul_int(MAPA,MAPB,L,alA,alB)
2% d=map_exp_mul_int(MAPA,MAPB,L,alA,alB) - Joint density inner product
3% of two MAPs via recursive Sylvester (Lyapunov) equations.
4%
5% Reference:
6% G. Horvath, "Measuring the distance between MAPs and some
7% applications," in Proc. ASMTA 2015, LNCS 9081, pp. 95-109.
8% https://link.springer.com/chapter/10.1007/978-3-319-18579-8_8
9%
10% Input:
11% MAPA: first MAP in the form of {D0,D1}
12% MAPB: second MAP in the form of {D0,D1}
13% L: number of inter-arrival times in the joint density
14% alA,alB: (optional) stationary vectors at arrival epochs
15%
16% Output:
17% d: inner product of joint densities
18
19A0=MAPA{1}; A1=MAPA{2};
20B0=MAPB{1}; B1=MAPB{2};
21if nargin<5
22 alB=map_pie(MAPB);
23end
24if nargin<4
25 alA=map_pie(MAPA);
26end
27Z = lyap(B0', A0, alB'*alA);
28for i=1:L-1
29 Z = lyap(B0', A0, B1'*Z*A1);
30end
31d = sum(-B0,2)' * Z * sum(-A0,2);
32end