1% x = SamplesFromMAP(D0, D1, K, prec)
3% Generates random samples from a Markovian arrival
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
13% The number of samples to generate.
14% prec : double, optional
15% Numerical precision to check
if the input Markovian
16% arrival process
is valid. The
default value
is
21% x : vector, length(K)
22% The vector of random samples (inter-arrival times).
24function x = SamplesFromMAP(D0,D1,k,initial)
26 if ~exist(
'initial',
'var')
30 global BuToolsCheckInput;
32 if isempty(BuToolsCheckInput)
33 BuToolsCheckInput = true;
36 if BuToolsCheckInput && ~CheckMAPRepresentation(D0,D1)
37 error('SamplesFromMAP: input isn''t a valid MAP representation!');
40 x = SamplesFromMMAP({D0,D1},k,initial);