1% [alpha, A] = MarginalDistributionFromMRAP(H, precision)
3% Returns the phase type distributed marginal distribution
4% of a marked rational arrival process.
8% H : list/cell of matrices of shape(M,M), length(N)
9% The H0...HN matrices of the MRAP
10% precision : double, optional
11% Numerical precision
for checking
if the input
is valid.
12% The
default value
is 1e-14
16% alpha : matrix, shape (1,M)
17% The initial vector of the matrix exponentially
19% A : matrix, shape (M,M)
20% The matrix parameter of the matrix exponentially
23function [alpha,A] = MarginalDistributionFromMRAP (H)
25 global BuToolsCheckInput;
26 if isempty(BuToolsCheckInput)
27 BuToolsCheckInput =
true;
30 if BuToolsCheckInput && ~CheckMRAPRepresentation (H)
31 error(
'MarginalDistributionFromMRAP: Input isn''t a valid MRAP representation!');
34 alpha = DRPSolve(inv(-H{1})*SumMatrixList(H(2:end)));