1function [ S0, S1, sigma ] = get_distribution( mean, choice, CX2, decay )
3%
return the MAP representation (S0,S1) of the required distribution
4% mean: mean rate of the distribution
5% choice: the targeted distribution, where 1 = Exp, 2 = HE2,
10 % 2-phase MAP arrivals: MAP2
11 [ lambda1,lambda2,a ] = estimateH2( mean, CX2 );
12 [ S0, S1, p ] = map2( lambda1, lambda2, a, decay);
17 % Exponential distribution:Exp
23 % 2-phase Hyper-exponential distribution: HE2
24 [ lambda1,lambda2,a ] = estimateH2( mean, CX2 );
25 S = [-lambda1,0; 0,-lambda2];
26 s = [lambda1; lambda2];
30 % 2-phase Erlang distribution: ER2