Class QsysServiceLaw

java.lang.Object
jline.api.qsys.QsysServiceLaw
All Implemented Interfaces:
Serializable

public final class QsysServiceLaw extends Object implements Serializable
Service-time descriptor of the MAP/G/1/K family, the JAR form of the MATLAB svc struct of qsys_mapg1k.m and of the C++ line::qsys::ServiceLaw.

The law is NOT fitted to a phase-type distribution before use: it enters the analysis exactly, through the uniformization coefficients c_n = E[e^{-theta S} (theta S)^n / n!]. That is why the descriptor keeps the family rather than a moment vector.

Build one with the static factories; the fields a given kind does not use are never read.

See Also:
  • Field Details

    • kind

      public final QsysServiceLaw.Kind kind
    • shape

      public final double shape
      Gamma shape alpha.
    • scale

      public final double scale
      Gamma scale theta.
    • det

      public final double det
      Deterministic service time d.
    • phAlpha

      public final Matrix phAlpha
      PH initial probability row, 1 x p.
    • phT

      public final Matrix phT
      PH subgenerator, p x p.
    • pdf

      public final org.apache.commons.math3.analysis.UnivariateFunction pdf
      Density of the service time.
    • tmax

      public final double tmax
      Upper support limit of the density, read only when tmaxFinite.
    • tmaxFinite

      public final boolean tmaxFinite
      Whether the density has bounded support.
  • Method Details

    • gamma

      public static QsysServiceLaw gamma(double shape, double scale)
      Gamma(shape, scale). Mean is shape*scale, SCV is 1/shape.
    • exponential

      public static QsysServiceLaw exponential(double rate)
      Exponential with the given RATE, i.e. Gamma(1, 1/rate).
    • deterministic

      public static QsysServiceLaw deterministic(double d)
      Constant service time d.
    • phaseType

      public static QsysServiceLaw phaseType(Matrix alpha, Matrix T)
      Phase type with initial row ALPHA and subgenerator T.
    • density

      public static QsysServiceLaw density(org.apache.commons.math3.analysis.UnivariateFunction f)
      Arbitrary density on (0, inf).
    • density

      public static QsysServiceLaw density(org.apache.commons.math3.analysis.UnivariateFunction f, double tmax)
      Arbitrary density supported on (0, tmax].