1% ImageFromDMAP(D0, D1, outFileName, prec)
3% Depicts
the given discrete Markovian arrival process,
4% and either displays it or saves it to file.
8% D0 : matrix, shape (M,M)
9% The D0 matrix of
the discrete MAP.
10% D1 : matrix, shape (M,M)
11% The D1 matrix of
the discrete MAP.
12% outFileName : string, optional
13% If it
is not provided, or equals to
'display',
the
14% image
is displayed on
the screen, otherwise it
is
15% written to
the file. The file format
is deduced
17% prec : double, optional
18% Transition probabilities less then prec are
19% considered to be zero and are left out from
the
20% image. The
default value
is 1e-13.
24% The
'graphviz' software must be installed and available
25% in
the path to use
this feature.
27function ImageFromDMAP(D0,D1,outFileName,prec)
29 if ~exist(
'prec',
'var')
33 if ~exist('outFileName','var')
34 outFileName = 'display';
37 global BuToolsCheckInput;
38 if isempty(BuToolsCheckInput)
39 BuToolsCheckInput = true;
42 if BuToolsCheckInput && ~CheckDMAPRepresentation(D0,D1)
43 error('ImageFromDMAP: Input isn''t a valid DMAP representation!');
46 ImageFromDMMAP({D0,D1},outFileName,prec);