Class Patience

java.lang.Object
jline.api.qsys.Patience

public final class Patience extends Object
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
  • Method Details

    • exponential

      public static Patience exponential(double theta)
      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

      public static Patience hazard(DoubleUnaryOperator hazard)
      Patience given by its hazard rate h = f/(1-F).
      Parameters:
      hazard - the hazard rate function
      Returns:
      the patience law
    • ccdf

      public static Patience ccdf(DoubleUnaryOperator 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

      public Patience.Form 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.