LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MAPFromRAP.m
1% [D0, D1] = MAPFromRAP(H0, H1, precision)
2%
3% Obtains a Markovian representation of a 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 rational arrival process
11% H1 : matrix, shape (M,M)
12% The H1 matrix of the 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 Markovian arrival process
21% D1 : matrix, shape (M,M)
22% The D1 matrix of the 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] = MAPFromRAP (H0, H1, prec)
32
33 if ~exist('prec','var')
34 prec = 1e-14;
35 end
36
37 global BuToolsCheckInput;
38 if isempty(BuToolsCheckInput)
39 BuToolsCheckInput = true;
40 end
41
42 if BuToolsCheckInput && ~CheckRAPRepresentation(H0,H1)
43 error('MAPFromRAP: Input isn''t a valid RAP representation!');
44 end
45
46 H{1}=H0;
47 H{2}=H1;
48 Y=MMAPFromMRAP(H, prec);
49 D0=Y{1};
50 D1=Y{2};
51end