Class Qsys_svclaw_coeffs

java.lang.Object
jline.api.qsys.Qsys_svclaw_coeffs

public final class Qsys_svclaw_coeffs extends Object
Uniformization coefficients of a service-time descriptor, shared by the qsys functions that take the law exactly rather than as a PH fit (Qsys_mapg1k, Qsys_mgck_sync).

Port of matlab/src/api/qsys/qsys_svclaw_coeffs.m. For any matrix M with I + M/theta nonnegative, E[exp(M*S)] = sum_n cn(n) (I + M/theta)^n. sum_n c_n = 1 exactly, which both sets the truncation order and certifies it; a residual above 1e-6 warns and the coefficients are returned anyway, as in the reference.

The coefficients are built by the recursions of Qsys_mapg1k.serviceCoefficients (negative binomial, Poisson and the PH running row) rather than from log-gamma; they agree with the reference to rounding. As in the reference, cn holds nmax+1 terms when the initial order guess reaches the cap nmax, and at most nmax otherwise.

  • Method Details

    • qsys_svclaw_coeffs

      public static QsysSvclawCoeffsResult qsys_svclaw_coeffs(QsysServiceLaw svc, double theta, double tol, int nmaxCap)
      Parameters:
      svc - service-time descriptor
      theta - uniformization rate
      tol - truncation tolerance on |1 - sum(cn)|
      nmaxCap - cap on the number of coefficients
      Returns:
      cn, the mean service time and the truncation residual