LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
DMAPFromDRAP.m
1% [D0, D1] = DMAPFromDRAP(H0, H1, precision)
2%
3% Obtains a Markovian representation of a discrete rational
4% arrival process of the same size, if possible, using the
5% procedure published in [1]_.
6%
7% Parameters
8% ----------
9% H0 : matrix, shape (M,M)
10% The H0 matrix of the discrete rational arrival process
11% H1 : matrix, shape (M,M)
12% The H1 matrix of the discrete rational arrival process
13% precision : double, optional
14% A representation is considered to be a Markovian one
15% if it is closer to it than this precision
16%
17% Returns
18% -------
19% D0 : matrix, shape (M,M)
20% The D0 matrix of the discrete Markovian arrival process
21% D1 : matrix, shape (M,M)
22% The D1 matrix of the discrete Markovian arrival process
23%
24% References
25% ----------
26% .. [1] G Horvath, M Telek, "A minimal representation of
27% Markov arrival processes and a moments matching
28% method," Performance Evaluation 64:(9-12) pp.
29% 1153-1168. (2007)
30
31function [D0, D1] = DMAPFromDRAP (H0, H1, prec)
32
33 if ~exist('prec','var')
34 prec = 1e-14;
35 end
36
37 global BuToolsCheckInput;
38
39 if isempty(BuToolsCheckInput)
40 BuToolsCheckInput = true;
41 end
42
43 if BuToolsCheckInput && ~CheckDRAPRepresentation(H0,H1)
44 error('DMAPFromDRAP: Input isn''t a valid DRAP representation!');
45 end
46
47 H{1}=H0;
48 H{2}=H1;
49 Y=DMMAPFromDMRAP(H, prec);
50 D0=Y{1};
51 D1=Y{2};
52end