LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MarginalDistributionFromMRAP.m
1% [alpha, A] = MarginalDistributionFromMRAP(H, precision)
2%
3% Returns the phase type distributed marginal distribution
4% of a marked rational arrival process.
5%
6% Parameters
7% ----------
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
13%
14% Returns
15% -------
16% alpha : matrix, shape (1,M)
17% The initial vector of the matrix exponentially
18% distributed marginal
19% A : matrix, shape (M,M)
20% The matrix parameter of the matrix exponentially
21% distributed marginal
22
23function [alpha,A] = MarginalDistributionFromMRAP (H)
24
25 global BuToolsCheckInput;
26 if isempty(BuToolsCheckInput)
27 BuToolsCheckInput = true;
28 end
29
30 if BuToolsCheckInput && ~CheckMRAPRepresentation (H)
31 error('MarginalDistributionFromMRAP: Input isn''t a valid MRAP representation!');
32 end
33
34 alpha = DRPSolve(inv(-H{1})*SumMatrixList(H(2:end)));
35 A=H{1};
36end