1% [alpha, A] = MarginalDistributionFromRAP(H0, H1, precision)
3% Returns the phase type distributed marginal distribution
4% of a rational arrival process.
8% H0 : matrix, shape (M,M)
9% The H0 matrix of the rational arrival process
10% H1 : matrix, shape (M,M)
11% The H1 matrix of the rational arrival process
12% precision : double, optional
13% Numerical precision
for checking
if the input
is valid.
14% The
default value
is 1e-14
18% alpha : matrix, shape (1,M)
19% The initial vector of the matrix exponentially
21% A : matrix, shape (M,M)
22% The matrix parameter of the matrix exponentially
25function [alpha,A] = MarginalDistributionFromRAP (H0, H1)
27 global BuToolsCheckInput;
28 if isempty(BuToolsCheckInput)
29 BuToolsCheckInput =
true;
32 if BuToolsCheckInput && ~CheckRAPRepresentation(H0,H1)
33 error(
'MarginalDistributionFromRAP: Input isn''t a valid RAP representation!');
36 alpha = DRPSolve(inv(-H0)*H1);