1function vk = mmap_count_var(mmap,t)
2% Computes the variance of the counting process, at resolution t,
for the
5% - mmap: the Marked MAP
6% - t: the period considered
for each sample of the counting process
8% - vk: the vector with the variance
for each job
class
19 llk = sym(zeros(K,1));
32theta = map_prob(mmap);
33tmp = (e * theta - D)^(-1);
37 lk(k) = theta * mmap{2+k} * e;
38 ck(k,:) = theta * mmap{2+k} * tmp;
39 dk(:,k) = tmp * mmap{2+k} * e;
40 llk(k) = theta * mmap{2+k} * e;
44 vk(k) = (llk(k)-2*lk(k)^2 + 2*ck(k,:)*mmap{2+k}*e)*t - 2*ck(k,:)*(I-expm(D*t))*dk(:,k);