LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
LagCorrelationsFromDMAP.m
1% acf = LagCorrelationsFromDMAP(D0, D1, L, prec)
2%
3% Returns the lag autocorrelations of a discrete Markovian
4% arrival process.
5%
6% Parameters
7% ----------
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
12% L : double, optional
13% The number of lags to compute. The default value is 1
14% prec : double, optional
15% Numerical precision to check if the input is valid.
16% The default value is 1e-14
17%
18% Returns
19% -------
20% acf : column vector of doubles, length (L)
21% The lag autocorrelation function up to lag L
22%
23
24function [lagcorrs] = LagCorrelationsFromDMAP (d0, d1, L)
25
26 global BuToolsCheckInput;
27 if isempty(BuToolsCheckInput)
28 BuToolsCheckInput = true;
29 end
30
31 if BuToolsCheckInput && ~CheckDMAPRepresentation(d0,d1)
32 error('LagCorrelationsFromDMAP: input isn''t a valid DMAP representation!');
33 end
34
35 if ~exist('L','var')
36 L=1;
37 end
38
39 lagcorrs = LagCorrelationsFromDRAP(d0, d1, L);
40end