LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
LagkJointMomentsFromMAP.m
1% Nm = LagkJointMomentsFromMAP(D0, D1, K, L, prec)
2%
3% Returns the lag-L joint moments of a Markovian arrival
4% process.
5%
6% Parameters
7% ----------
8% D0 : matrix, shape (M,M)
9% The D0 matrix of the Markovian arrival process
10% D1 : matrix, shape (M,M)
11% The D1 matrix of the Markovian arrival process
12% K : int, optional
13% The dimension of the matrix of joint moments to
14% compute. If K=0, the MxM joint moments will be
15% computed. The default value is 0
16% L : int, optional
17% The lag at which the joint moments are computed.
18% The default value is 1
19% prec : double, optional
20% Numerical precision to check if the input is valid.
21% The default value is 1e-14
22%
23% Returns
24% -------
25% Nm : matrix, shape(K+1,K+1)
26% The matrix containing the lag-L joint moments,
27% starting from moment 0.
28
29function Nm = LagkJointMomentsFromMAP (D0, D1, K, L)
30
31 global BuToolsCheckInput;
32 if isempty(BuToolsCheckInput)
33 BuToolsCheckInput = true;
34 end
35
36 if BuToolsCheckInput && ~CheckMAPRepresentation(D0,D1)
37 error('LagkJointMomentsFromMAP: Input isn''t a valid MAP representation!');
38 end
39
40 if ~exist('K','var')
41 K=size(D0,1)-1;
42 end
43
44 if ~exist('L','var')
45 L=1;
46 end
47
48 moms=LagkJointMomentsFromMRAP({D0,D1},K,L);
49 Nm=moms{1};
50end