1function v = map_count_var(
map,t)
2% Computes the variance of the counting process, at resolution t,
for the
5% -
map: Markovian Arrival Process (symbolic or numeric)
6% - t: the period considered
for each sample of the counting process
8% - v: variance of arrivals in (0,t]
9% Reference: [He and Neuts, Markov chains with marked transitions, 1998]
10% Verified special case of MMPP(2) with [Andresen and Nielsen, 1998].
18 v = sym(zeros(length(t),1));
22 v = zeros(length(t),1);
25tmp = (e * theta - D)^(-1);
28l = theta *
map{2} * e;
29c = theta *
map{2} * tmp;
31ll = theta *
map{2} * e;
33 v(i) = (ll-2*l^2 + 2*c*
map{2}*e)*t(i) - 2*c*(I-expm(D*t(i)))*d;