Package jline.api.snc
Class Snc_env_tokenbucket
java.lang.Object
jline.api.snc.Snc_env_tokenbucket
Deterministic token-bucket arrival envelope.
A flow policed by a (b,r) token bucket satisfies A(s,t) <= b+r*(t-s)
with probability one, so the envelope is constant in theta. This is the
deterministic network calculus arrival curve read as a degenerate MGF
envelope, so it mixes freely with the stochastic ones.
Port of matlab/src/api/snc/snc_env_tokenbucket.m.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SncEnvelopeof(double b, double r) static double[]snc_env_tokenbucket(double b, double r) static double[]snc_env_tokenbucket(double b, double r, double theta)
-
Method Details
-
snc_env_tokenbucket
public static double[] snc_env_tokenbucket(double b, double r) - Parameters:
b- bucket depth, units of workr- token rate, work per slot- Returns:
- {b, r}
-
snc_env_tokenbucket
public static double[] snc_env_tokenbucket(double b, double r, double theta) - Parameters:
b- bucket depthr- token ratetheta- Chernoff parameter, accepted and ignored- Returns:
- {b, r}
-
of
- Parameters:
b- bucket depthr- token rate- Returns:
- the envelope as a function of theta
-