Package jline.api.qsys
Class Qsys_gig1_approx_gelenbe
java.lang.Object
jline.api.qsys.Qsys_gig1_approx_gelenbe
-
Method Summary
Modifier and TypeMethodDescriptionqsys_gig1_approx_gelenbe(double lambda, double mu, double ca, double cs) G/G/1 queue approximation using Gelenbe's diffusion method with instantaneous-return boundary: p(0)=1-rho, p(n)=rho*(1-rhat)*rhat^(n-1) with rhat=exp(-2*(1-rho)/(rho*ca2+cs2)), hence E[N]=rho/(1-rhat) and the mean response time (time in system) is W=E[N]/lambda=1/(mu*(1-rhat)).
-
Method Details
-
qsys_gig1_approx_gelenbe
public static HashMap<String,Object> qsys_gig1_approx_gelenbe(double lambda, double mu, double ca, double cs) G/G/1 queue approximation using Gelenbe's diffusion method with instantaneous-return boundary: p(0)=1-rho, p(n)=rho*(1-rhat)*rhat^(n-1) with rhat=exp(-2*(1-rho)/(rho*ca2+cs2)), hence E[N]=rho/(1-rhat) and the mean response time (time in system) is W=E[N]/lambda=1/(mu*(1-rhat)).Reference: Gelenbe, E. (1975). On approximate computer system models. Journal of the ACM 22(2), 261-269.
- Parameters:
lambda- arrival ratemu- service rateca- squared coefficient of variation of inter-arrival timecs- squared coefficient of variation of service time- Returns:
- HashMap containing W (mean response time) and rhohat
-