1function [ S, s, sigma ] = get_serviceDis( mean, choice, CX2 )
3%
return the PH representation (s,S) of the required distribution
4% mean: mean rate of the distribution
5% choice: the targeted distribution, where 1 = Exp, 2 = HE2, 3 = ER2
8 % Exponential distribution:Exp
14 % 2-phase Hyper-exponential distribution: HE2
15 [ lambda1,lambda2,a ] = estimateH2( mean,CX2 );
16 S = [-lambda1,0; 0,-lambda2];
17 s = [lambda1; lambda2];
21 % 2-phase Erlang distribution: ER2