1% Nm = LagkJointMomentsFromDMAP(D0, D1, K, L, prec)
3% Returns the lag-L joint moments of a discrete Markovian
8% D0 : matrix, shape (M,M)
9% The D0 matrix of the discrete Markovian arrival process
10% D1 : matrix, shape (M,M)
11% The D1 matrix of the discrete Markovian arrival process
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
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
25% Nm : matrix, shape(K+1,K+1)
26% The matrix containing the lag-L joint moments,
27% starting from moment 0.
29function [Nm] = LagkJointMomentsFromDMAP (d0, d1, K, L)
31 global BuToolsCheckInput;
32 if isempty(BuToolsCheckInput)
33 BuToolsCheckInput =
true;
36 if BuToolsCheckInput && ~CheckDMAPRepresentation(d0,d1)
37 error(
'LagkJointMomentsFromDMAP: Input isn''t a valid DMAP representation!');
50 mom=LagkJointMomentsFromDMRAP(h,K,L);