LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mmap_mark.m
1function mmap = mmap_mark(MMAP, prob)
2% MMAP_MARK. Marks arrivals from a MMAP according to give probabilities.
3% MMAP = MMAP_MARK(MMAP, PROB) takes a MMAP with K types and a probability
4% matrix with element PROB(k,s) giving the probability that a type-k
5% arrival should be marked as a class-s arrival and returns a new MMAP
6% that has R classes as output types.
7[K,R] = size(prob);
8mmap = cell(1,2+R);
9mmap{1} = MMAP{1};
10mmap{2} = MMAP{2};
11for r=1:R
12 mmap{2+r} = zeros(length(MMAP{1}));
13 for k=1:K
14 mmap{2+r} = mmap{2+r} + MMAP{2+k}*prob(k,r);
15 end
16end
17end