LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mmap_count_lambda.m
1function [lk] = mmap_count_lambda(mmap)
2% Computes the arrival rate of the counting process, for the
3% given Marked MAP.
4% Input:
5% - mmap: the Marked MAP
6% Output:
7% - lk: the vector with the rate for each job class
8
9n = size(mmap{1},1);
10K = size(mmap,2)-2;
11
12if (map_issym(mmap))
13 e = sym(ones(n,1));
14 lk = sym(zeros(K,1));
15else
16 e = ones(n,1);
17 lk = zeros(K,1);
18end
19
20theta = map_prob(mmap);
21
22for k=1:K
23 lk(k) = theta * mmap{2+k} * e;
24end
25lk=lk';
26end