LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
GM1StationaryDistr.m
1% pi = GM1StationaryDistr (B, R, K)
2%
3% Returns the stationary distribution of the G/M/1 type
4% Markov chain up to a given level K.
5%
6% Parameters
7% ----------
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
15% K : integer
16% The stationary distribution is returned up to
17% this level.
18%
19% Returns
20% -------
21% pi : array, shape (1,(K+1)*N)
22% The stationary probability vector up to level K
23
24function pi = GM1StationaryDistr (B, R, K)
25
26 global BuToolsVerbose;
27
28 M = size(B{1},2);
29 N = size(B{2},1);
30 Bm = zeros(M+(N-1)*length(B),M);
31 Bm(1:M,1:M) = B{1};
32 for i=2:length(B)
33 Bm(M+(i-2)*N+1:M+(i-1)*N,:) = B{i};
34 end
35
36 pi = GIM1_pi(Bm,R,'MaxNumComp', K+1, 'Verbose', BuToolsVerbose);
37end