Class QsysMg1PsResult

java.lang.Object
jline.api.qsys.QsysMg1PsResult

public class QsysMg1PsResult extends Object
Result of Qsys_mg1_ps.qsys_mg1_ps(double, double[], double[][], double[], double[], double[], int): the sojourn time distribution of the M/G/1 processor-sharing queue.

Besides the tabulated arrays, the object stays callable: lstCond(org.apache.commons.math3.complex.Complex, double), lstExcess(org.apache.commons.math3.complex.Complex, double), lstUncond(org.apache.commons.math3.complex.Complex) and dominantRoot(org.apache.commons.math3.complex.Complex) evaluate the transforms at any argument, which is what the MATLAB twin returns as function handles.

Port of MATLAB qsys_mg1_ps.m.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double[]
    Atom (1-rho)*exp(-lambda*x) of V(x) at t = x.
    double
    Mass (1-rho)*bhat(lambda) of the jobs that share the server with nobody.
    double[][]
    P(V(x) <= t), indexed [x][t].
    double[]
    P(V <= t).
    double[][]
    Values of the conditional LST, indexed [x][s].
    double[]
    Values of the unconditional LST.
    double
    Mean service requirement.
    double
    Second moment of the service requirement, NaN when only an LST is given.
    double[]
    Conditional second moment of V(x).
    double
    Unconditional second moment of the sojourn time.
    double[]
    Exact conditional mean x/(1-rho).
    double
    Exact unconditional mean sojourn time m1/(1-rho).
    double[][]
    Density of V(x), indexed [x][t], NaN on the lattice (k+1)*x.
    double[]
    Density of the unconditional sojourn time.
    double
    Utilization lambda*m1.
    double[]
    Requested transform arguments.
    double[]
    Requested times.
    double[]
    Conditional variance of V(x).
    double
    Unconditional variance of the sojourn time.
    double[]
    Requested service requirements.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.math3.complex.Complex
    dominantRoot(org.apache.commons.math3.complex.Complex s)
    Dominant singularity tau*(s), the right half plane root of tau = s + lambda*(1-bhat(tau)).
    org.apache.commons.math3.complex.Complex
    lstCond(org.apache.commons.math3.complex.Complex s, double x)
    Conditional transform E[exp(-s V(x))].
    org.apache.commons.math3.complex.Complex
    lstExcess(org.apache.commons.math3.complex.Complex s, double x)
    Transform E[exp(-s (V(x)-x))] of the excess, bounded as s grows.
    org.apache.commons.math3.complex.Complex
    lstUncond(org.apache.commons.math3.complex.Complex s)
    Unconditional transform E[exp(-s V)].

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • rho

      public double rho
      Utilization lambda*m1.
    • m1

      public double m1
      Mean service requirement.
    • m2

      public double m2
      Second moment of the service requirement, NaN when only an LST is given.
    • meanUncond

      public double meanUncond
      Exact unconditional mean sojourn time m1/(1-rho).
    • m2Uncond

      public double m2Uncond
      Unconditional second moment of the sojourn time.
    • varUncond

      public double varUncond
      Unconditional variance of the sojourn time.
    • atomUncond

      public double atomUncond
      Mass (1-rho)*bhat(lambda) of the jobs that share the server with nobody.
    • x

      public double[] x
      Requested service requirements.
    • s

      public double[] s
      Requested transform arguments.
    • t

      public double[] t
      Requested times.
    • atomCond

      public double[] atomCond
      Atom (1-rho)*exp(-lambda*x) of V(x) at t = x.
    • meanCond

      public double[] meanCond
      Exact conditional mean x/(1-rho).
    • m2Cond

      public double[] m2Cond
      Conditional second moment of V(x).
    • varCond

      public double[] varCond
      Conditional variance of V(x).
    • lstCondVal

      public double[][] lstCondVal
      Values of the conditional LST, indexed [x][s].
    • lstUncondVal

      public double[] lstUncondVal
      Values of the unconditional LST.
    • pdfCond

      public double[][] pdfCond
      Density of V(x), indexed [x][t], NaN on the lattice (k+1)*x.
    • cdfCond

      public double[][] cdfCond
      P(V(x) <= t), indexed [x][t].
    • pdfUncond

      public double[] pdfUncond
      Density of the unconditional sojourn time.
    • cdfUncond

      public double[] cdfUncond
      P(V <= t).
  • Constructor Details

    • QsysMg1PsResult

      public QsysMg1PsResult()
  • Method Details

    • lstCond

      public org.apache.commons.math3.complex.Complex lstCond(org.apache.commons.math3.complex.Complex s, double x)
      Conditional transform E[exp(-s V(x))].
    • lstExcess

      public org.apache.commons.math3.complex.Complex lstExcess(org.apache.commons.math3.complex.Complex s, double x)
      Transform E[exp(-s (V(x)-x))] of the excess, bounded as s grows.
    • lstUncond

      public org.apache.commons.math3.complex.Complex lstUncond(org.apache.commons.math3.complex.Complex s)
      Unconditional transform E[exp(-s V)].
    • dominantRoot

      public org.apache.commons.math3.complex.Complex dominantRoot(org.apache.commons.math3.complex.Complex s)
      Dominant singularity tau*(s), the right half plane root of tau = s + lambda*(1-bhat(tau)).