1% [B, n] = MStaircase(X, Z, precision)
3% Computes a smaller representation
using the staircase
8% This function should not be called directly.
9% It
is used by
'MinimalRepFromME' and
'MinimalRepFromRAP'.
13% .. [1]
P. Buchholz, M. Telek,
"On minimal representation
14% of rational arrival processes." Madrid Conference
15% on Qeueuing theory (MCQT), June 2010.
17function [B,n] = MStaircase (X,Z, precision)
28 ranksum=0; %The sum of the ranks calculated in every loop
29 crit=1; %The stopping criteria
35 %Calculation of the
new U,X,Z matrices
36 Transf=eye(ranksum-r+size(Ui,1));
37 Transf(end-size(Ui,1)+1:end,end-size(Ui,1)+1:end)=Ui
';
42 X{ii} = TEMP(r+1:end,r+1:end);
44 Z = TEMP(r+1:end,1:r);
46 Z = horzcat(Z,TEMP(r+1:end,1:r));
50 if norm(Z)<precision || rank(Z,precision)==m-ranksum
62 %does x have a 0 value somewhere
65 nonzero=0; %this will indicate a row of x for which x's value
is non-zero
67 if abs(x(l))<precision
87 TEMP1(1:n,1:n)=inv(Gamma);
90 B=inv(TEMP1*TEMP2*U
');
91 elseif rank(Z,precision)==m-ranksum