1% Nm = LagkJointMomentsFromRAP(H0, H1, K, L, prec)
3% Returns the lag-L joint moments of a rational arrival
8% H0 : matrix, shape (M,M)
9% The H0 matrix of the rational arrival process
10% H1 : matrix, shape (M,M)
11% The H1 matrix of the rational 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 = LagkJointMomentsFromRAP (H0, H1, K, L)
31 global BuToolsCheckInput;
32 if isempty(BuToolsCheckInput)
33 BuToolsCheckInput =
true;
36 if BuToolsCheckInput && ~CheckRAPRepresentation(H0,H1)
37 error(
'LagkJointMomentsFromRAP: Input isn''t a valid RAP representation!');
48 mom=LagkJointMomentsFromMRAP({H0, H1},K,L);