1function W=qsys_gig1_approx_myskja2(lambda,mu,ca,cs,q0,qa)
2% W=QSYS_GIG1_APPROX_MYSKJA2(LAMBDA,MU,CA,CS,Q0,QA)
4% qa = third relative moment E[X^3]/6/E[X]^3, X=inter-arrival time r.v.
5% q0 = lowest value of the relative third moment
for a given mean and SCV
9theta=(rho*(qa-ra)-(qa-ra^2))/(2*rho*(ra-1));
10d=(1+1/ra)*(1-rs)*(1-(q0/qa)^3)*(1-rho^3);
11D = (rs-theta)^2+(2*rs-1+d)*(ra-1);
12W=(rho/(1-rho))/lambda*(rs+(1/rho)*(sqrt(D)-(rs-theta)));