Package jline.api.qsys
Class Patience
java.lang.Object
jline.api.qsys.Patience
The patience (time-to-abandon) law of a queue with customer abandonment,
in the three forms accepted by
Qsys_mgisrgi_whitt.
The engineering solution of W. Whitt (2005) needs the patience law only through its HAZARD RATE near the origin, so the three factories below carry exactly that: a constant hazard (exponential patience, for which the analysis becomes exact), an explicit hazard function, or the complementary cdf from which the hazard is recovered by integration.
- Since:
- LINE 3.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the abandonment rates are read off this law. -
Method Summary
Modifier and TypeMethodDescriptionstatic Patienceccdf(DoubleUnaryOperator ccdf) Patience given by its complementary cdf G(t) = 1-F(t).doubleccdfAt(double t) static Patienceexponential(double theta) Exponential patience of rate theta, so h(t) = theta for every t.getForm()doublegetTheta()static Patiencehazard(DoubleUnaryOperator hazard) Patience given by its hazard rate h = f/(1-F).doublehazardAt(double t)
-
Method Details
-
exponential
Exponential patience of rate theta, so h(t) = theta for every t.- Parameters:
theta- abandonment rate of a waiting customer, non-negative- Returns:
- the patience law
-
hazard
Patience given by its hazard rate h = f/(1-F).- Parameters:
hazard- the hazard rate function- Returns:
- the patience law
-
ccdf
Patience given by its complementary cdf G(t) = 1-F(t).- Parameters:
ccdf- the complementary cdf, positive on the range of interest- Returns:
- the patience law
-
getForm
- Returns:
- which of the three forms this law carries.
-
getTheta
public double getTheta()- Returns:
- the exponential rate, NaN unless the form is EXPONENTIAL.
-
hazardAt
public double hazardAt(double t) - Returns:
- the hazard rate at t; only meaningful for EXPONENTIAL and HAZARD.
-
ccdfAt
public double ccdfAt(double t) - Returns:
- the complementary cdf at t; only meaningful for CCDF.
-