LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
map_erlang.m
1function MAP=map_erlang(MEAN,k)
2% MAP=map_erlang(MEAN,k) - Fit an Erlang-k process as a MAP
3%
4% Input:
5% MEAN: mean inter-arrival time of the process
6% k: number of phases
7%
8% Output:
9% MAP: a MAP in the form of {D0,D1}
10%
11% Examples:
12% - MAP=map_erlang(2,3) an Erlang-3 process with mean 2
13%
14
15mu=k/MEAN;
16
17MAP={zeros(k),zeros(k)};
18% compute D0
19for i=1:k-1
20 MAP{1}(i,i+1)=mu;
21end
22% compute D1
23MAP{2}(k,1)=mu;
24% normalize D0 diagonal
25MAP=map_normalize(MAP);
26end