Package jdistlib
Class DiscreteTailBounds
java.lang.Object
jdistlib.DiscreteTailBounds
Factory methods for common caller-certified infinite-series tail bounds.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiscreteTailBoundafterFinitePrefix(long firstRemainder, DiscreteTailBound remainder) Activates a remainder certificate only after a caller-verified finite prefix has been included.static DiscreteTailBoundbeforeFinitePrefix(long firstRemainder, DiscreteTailBound remainder) Left-moving counterpart ofafterFinitePrefix(long, DiscreteTailBound).static DiscreteTailBoundconstant(double upperBound) Uses a fixed finite upper bound, which must include the first term.static DiscreteTailBoundgeometricRatio(double maximumRatio) Geometric/ratio-test bound.static DiscreteTailBoundleftPowerLaw(double exponent, double offset) Left-tail integral-test bound for weights proportional to(-k + offset)^(-exponent).static DiscreteTailBoundrightPowerLaw(double exponent, double offset) Right-tail integral-test bound for weights proportional to(k + offset)^(-exponent).static DiscreteTailBoundsymmetricPowerLaw(double exponent, double offset) Power-law bound suitable for either outward tail around zero.
-
Method Details
-
geometricRatio
Geometric/ratio-test bound. The caller promises every successive omitted weight is at mostmaximumRatiotimes its predecessor. -
rightPowerLaw
Right-tail integral-test bound for weights proportional to(k + offset)^(-exponent). -
leftPowerLaw
Left-tail integral-test bound for weights proportional to(-k + offset)^(-exponent). -
symmetricPowerLaw
Power-law bound suitable for either outward tail around zero. -
constant
Uses a fixed finite upper bound, which must include the first term. -
afterFinitePrefix
Activates a remainder certificate only after a caller-verified finite prefix has been included. -
beforeFinitePrefix
public static DiscreteTailBound beforeFinitePrefix(long firstRemainder, DiscreteTailBound remainder) Left-moving counterpart ofafterFinitePrefix(long, DiscreteTailBound).
-