Package jline.api.mam

Class Map2_fit_idc

java.lang.Object
jline.api.mam.Map2_fit_idc

public final class Map2_fit_idc extends Object
Fits a second-order MAP matching the first three moments and the asymptotic index of dispersion. A MAP(2) has a geometrically decaying autocorrelation, so its index of dispersion obeys I = SCV + (SCV-1)*g2/(1-g2), as reported in Section 5.2.2 of Casale, Mi, Cherkasova and Smirni, IEEE Trans. Soft. Eng. 37(5), 2011. The relation is inverted in closed form as g2 = (I-SCV)/(I-1) and the decay rate is passed to map2_fit. Burstiness cannot be represented when SCV <= 1 or when I < SCV, and the paper falls back to an exponential in both cases. A third moment outside the feasible region is replaced by its lower limit (3/2)*e2^2/e1, the largest heavy-tail decay a MAP(2) admits. Copyright (c) 2012-2026, Imperial College London All rights reserved.
  • Field Details

    • STATUS_EXACT

      public static final int STATUS_EXACT
      Exact fit of the four descriptors.
      See Also:
    • STATUS_EXPONENTIAL

      public static final int STATUS_EXPONENTIAL
      Burstiness not representable, an exponential was returned.
      See Also:
    • STATUS_E3_CLAMPED

      public static final int STATUS_E3_CLAMPED
      Third moment clamped to its feasible lower limit.
      See Also:
    • STATUS_E3_AUTO

      public static final int STATUS_E3_AUTO
      Third moment selected automatically by map2_fit.
      See Also:
    • STATUS_FAILED

      public static final int STATUS_FAILED
      Fit failed, an exponential was returned.
      See Also:
  • Method Details

    • map2_fit_idc

      public static Ret.mamMAPFitIdcReturn map2_fit_idc(double e1, double e2, double e3, double idc)
      Fits a MAP(2) to three moments and an index of dispersion.
      Parameters:
      e1 - mean inter-arrival time
      e2 - second moment of the inter-arrival times
      e3 - third moment of the inter-arrival times
      idc - asymptotic index of dispersion
      Returns:
      the fitted MAP and the fallback taken, if any