LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mmap_count_mean.m
1function [mk] = mmap_count_mean(mmap,t)
2% Computes the mean of the counting process, at resolution t, for the
3% given Marked MAP.
4% Input:
5% - mmap: the Marked MAP
6% - t: the period considered for each sample of the counting process
7% Output:
8% - mk: the vector with the mean for each job class
9
10if isempty(mmap)
11 mk=[];
12 return
13end
14n = size(mmap{1},1);
15K = size(mmap,2)-2;
16
17if (map_issym(mmap))
18 e = sym(ones(n,1));
19 lk = sym(zeros(K,1));
20else
21 e = ones(n,1);
22 lk = zeros(K,1);
23end
24
25theta = map_prob(mmap);
26
27for k=1:K
28 lk(k) = theta * mmap{2+k} * e;
29end
30
31% mean
32mk = lk * t;
33
34end