1% [D0, D1] = MAPFromRAP(H0, H1, precision)
3% Obtains a Markovian representation of a rational
4% arrival process of the same size,
if possible,
using the
5% procedure published in [1]_.
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
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
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.
31function [D0, D1] = MAPFromRAP (H0, H1, prec)
33 if ~exist(
'prec',
'var')
37 global BuToolsCheckInput;
38 if isempty(BuToolsCheckInput)
39 BuToolsCheckInput = true;
42 if BuToolsCheckInput && ~CheckRAPRepresentation(H0,H1)
43 error('MAPFromRAP: Input isn''t a valid RAP representation!');
48 Y=MMAPFromMRAP(H, prec);