1function d = map_geo_mul_sum(MAPA,MAPB,alA,alB)
2% d=map_geo_mul_sum(MAPA,MAPB,alA,alB) - Geometric sum
for
3% autocorrelation distance computation.
6% G. Horvath,
"Measuring the distance between MAPs and some
7% applications," in Proc. ASMTA 2015, LNCS 9081, pp. 95-109.
11% MAPA: first MAP in the form of {D0,D1}
12% MAPB: second MAP in the form of {D0,D1}
13% alA,alB: (optional) stationary vectors at arrival epochs
16% d: geometric sum value
18A0=MAPA{1}; A1=MAPA{2};
19B0=MAPB{1}; B1=MAPB{2};
20if nargin<4, alB=map_pie(MAPB); end
21if nargin<3, alA=map_pie(MAPA); end
28PAh = A0i*A1 - ones(NA,1)*alA;
29PBh = B0i*B1 - ones(NB,1)*alB;
31M = eye(NA*NB) - kron(PBh
', PAh);
35 X = dlyap(PAh, PBh, sum(A0i,2)*(alB*B0i));
36 d = sum(alA*A0i*X*B0i);