Class SimulatedAnnealingClimber
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.AbstractClimber
-
- com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.hill.SimulatedAnnealingClimber
-
- All Implemented Interfaces:
HillClimber
public final class SimulatedAnnealingClimber extends AbstractClimber
A simulated annealing hill climber.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.HillClimber
HillClimber.Adaptation, HillClimber.QueueType
-
-
Field Summary
-
Fields inherited from class com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.AbstractClimber
hitsInMain, hitsInSample, hitsInWindow, missesInSample, previousHitRate, sampleSize
-
-
Constructor Summary
Constructors Constructor Description SimulatedAnnealingClimber(Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubleadjust(double hitRate)Returns the amount to adapt by.-
Methods inherited from class com.github.benmanes.caffeine.cache.simulator.policy.sketch.climbing.AbstractClimber
adapt, onHit, onMiss, resetSample
-
-
-
-
Constructor Detail
-
SimulatedAnnealingClimber
public SimulatedAnnealingClimber(Config config)
-
-
Method Detail
-
adjust
protected double adjust(double hitRate)
Description copied from class:AbstractClimberReturns the amount to adapt by.- Specified by:
adjustin classAbstractClimber
-
-