LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MarginalDistributionFromDRAP.m
1% [alpha, A] = MarginalDistributionFromDRAP(H0, H1, precision)
2%
3% Returns the matrix geometrically distributed marginal
4% distribution of a discrete rational arrival process.
5%
6% Parameters
7% ----------
8% H0 : matrix, shape (M,M)
9% The H0 matrix of the discrete rational arrival process
10% H1 : matrix, shape (M,M)
11% The H1 matrix of the discrete rational arrival process
12% precision : double, optional
13% Numerical precision for checking if the input is valid.
14% The default value is 1e-14
15%
16% Returns
17% -------
18% alpha : matrix, shape (1,M)
19% The initial vector of the matrix geometrically
20% distributed marginal distribution
21% A : matrix, shape (M,M)
22% The matrix parameter of the matrix geometrically
23% distributed marginal distribution
24
25function [alpha,A] = MarginalDistributionFromDRAP( H0, H1)
26
27 global BuToolsCheckInput;
28 if isempty(BuToolsCheckInput)
29 BuToolsCheckInput = true;
30 end
31
32 if BuToolsCheckInput && ~CheckDRAPRepresentation(H0,H1)
33 error('MarginalDistributionFromDRAP: Input isn''t a valid DRAP representation!');
34 end
35
36 alpha = DRPSolve(inv(eye(size(H0,1))-H0)*H1);
37 A=H0;
38end