LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
ImageFromDMAP.m
1% ImageFromDMAP(D0, D1, outFileName, prec)
2%
3% Depicts the given discrete Markovian arrival process,
4% and either displays it or saves it to file.
5%
6% Parameters
7% ----------
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
16% from the file name.
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.
21%
22% Notes
23% -----
24% The 'graphviz' software must be installed and available
25% in the path to use this feature.
26
27function ImageFromDMAP(D0,D1,outFileName,prec)
28
29 if ~exist('prec','var')
30 prec = 1e-13;
31 end
32
33 if ~exist('outFileName','var')
34 outFileName = 'display';
35 end
36
37 global BuToolsCheckInput;
38 if isempty(BuToolsCheckInput)
39 BuToolsCheckInput = true;
40 end
41
42 if BuToolsCheckInput && ~CheckDMAPRepresentation(D0,D1)
43 error('ImageFromDMAP: Input isn''t a valid DMAP representation!');
44 end
45
46 ImageFromDMMAP({D0,D1},outFileName,prec);
47end
48