Package jline.api.qsys
Class QsysServiceLaw
java.lang.Object
jline.api.qsys.QsysServiceLaw
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich family the service law belongs to. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleDeterministic service time d.final QsysServiceLaw.Kindfinal org.apache.commons.math3.analysis.UnivariateFunctionDensity of the service time.final MatrixPH initial probability row, 1 x p.final MatrixPH subgenerator, p x p.final doubleGamma scale theta.final doubleGamma shape alpha.final doubleUpper support limit of the density, read only when tmaxFinite.final booleanWhether the density has bounded support. -
Method Summary
Modifier and TypeMethodDescriptionstatic QsysServiceLawdensity(org.apache.commons.math3.analysis.UnivariateFunction f) Arbitrary density on (0, inf).static QsysServiceLawdensity(org.apache.commons.math3.analysis.UnivariateFunction f, double tmax) Arbitrary density supported on (0, tmax].static QsysServiceLawdeterministic(double d) Constant service time d.static QsysServiceLawexponential(double rate) Exponential with the given RATE, i.e.static QsysServiceLawgamma(double shape, double scale) Gamma(shape, scale).static QsysServiceLawPhase type with initial row ALPHA and subgenerator T.
-
Field Details
-
kind
-
shape
public final double shapeGamma shape alpha. -
scale
public final double scaleGamma scale theta. -
det
public final double detDeterministic service time d. -
phAlpha
PH initial probability row, 1 x p. -
phT
PH subgenerator, p x p. -
pdf
public final org.apache.commons.math3.analysis.UnivariateFunction pdfDensity of the service time. -
tmax
public final double tmaxUpper support limit of the density, read only when tmaxFinite. -
tmaxFinite
public final boolean tmaxFiniteWhether the density has bounded support.
-
-
Method Details
-
gamma
Gamma(shape, scale). Mean is shape*scale, SCV is 1/shape. -
exponential
Exponential with the given RATE, i.e. Gamma(1, 1/rate). -
deterministic
Constant service time d. -
phaseType
Phase type with initial row ALPHA and subgenerator T. -
density
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].
-