1% pi = GM1StationaryDistr (B, R, K)
3% Returns the stationary distribution of the G/M/1 type
4% Markov chain up to a given level K.
8% A : length(M) list of matrices of shape (N,N)
9% Matrix blocks of the G/M/1 type generator in the
10% regular part, from 0 to M-1.
11% B : length(M) list of matrices of shape (N,N)
12% Matrix blocks of the G/M/1 type generator at the
13% R : matrix, shape (N,N)
14% Matrix R of the G/M/1 type Markov chain
16% The stationary distribution
is returned up to
21% pi : array, shape (1,(K+1)*N)
22% The stationary probability vector up to level K
24function pi = GM1StationaryDistr (B, R, K)
26 global BuToolsVerbose;
30 Bm = zeros(M+(N-1)*length(B),M);
33 Bm(M+(i-2)*N+1:M+(i-1)*N,:) = B{i};
36 pi = GIM1_pi(Bm,R,
'MaxNumComp', K+1,
'Verbose', BuToolsVerbose);