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