Package jline.api.mam
Class Map2_fit_idc
java.lang.Object
jline.api.mam.Map2_fit_idc
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThird moment selected automatically by map2_fit.static final intThird moment clamped to its feasible lower limit.static final intExact fit of the four descriptors.static final intBurstiness not representable, an exponential was returned.static final intFit failed, an exponential was returned. -
Method Summary
Modifier and TypeMethodDescriptionstatic Ret.mamMAPFitIdcReturnmap2_fit_idc(double e1, double e2, double e3, double idc) Fits a MAP(2) to three moments and an index of dispersion.
-
Field Details
-
STATUS_EXACT
public static final int STATUS_EXACTExact fit of the four descriptors.- See Also:
-
STATUS_EXPONENTIAL
public static final int STATUS_EXPONENTIALBurstiness not representable, an exponential was returned.- See Also:
-
STATUS_E3_CLAMPED
public static final int STATUS_E3_CLAMPEDThird moment clamped to its feasible lower limit.- See Also:
-
STATUS_E3_AUTO
public static final int STATUS_E3_AUTOThird moment selected automatically by map2_fit.- See Also:
-
STATUS_FAILED
public static final int STATUS_FAILEDFit failed, an exponential was returned.- See Also:
-
-
Method Details
-
map2_fit_idc
Fits a MAP(2) to three moments and an index of dispersion.- Parameters:
e1- mean inter-arrival timee2- second moment of the inter-arrival timese3- third moment of the inter-arrival timesidc- asymptotic index of dispersion- Returns:
- the fitted MAP and the fallback taken, if any
-