Package jline.api.qsys
Class Qsys_mmk
java.lang.Object
jline.api.qsys.Qsys_mmk
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleErlangC(double nu, int C) Calculates the probability that an arriving customer is forced to join the queue (i.e., all servers are occupied) in an M/M/k system.static Ret.qsysqsys_mmk(double lambda, double mu, int k) Analyzes an M/M/k queueing system.Full M/M/k measures (the MATLAB third output res of qsys_mmk).
-
Method Details
-
qsys_mmk
Analyzes an M/M/k queueing system.- Parameters:
lambda- Arrival rate.mu- Service rate.k- Number of servers.- Returns:
- qsysReturn containing average waiting time (W) and utilization (rho).
-
qsys_mmk
public static Map<String,Object> qsys_mmk(double lambda, double mu, int k, double[] tPoints, double[] percentiles, Integer nmax) Full M/M/k measures (the MATLAB third output res of qsys_mmk).- Parameters:
tPoints- time points of the waiting/sojourn cdfs, or nullpercentiles- percentiles of the waiting/sojourn time, or nullnmax- last level of queueLengthDist, or null (tail below 1e-14)- Returns:
- the res struct, with the MATLAB field names
-
ErlangC
public static double ErlangC(double nu, int C) Calculates the probability that an arriving customer is forced to join the queue (i.e., all servers are occupied) in an M/M/k system.- Parameters:
nu- Utilization.C- The number of servers.- Returns:
- Probability that an arriving customer is forced to join the queue.
-