public static final class HillClimber.Adaptation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HillClimber.Adaptation.Type |
| Modifier and Type | Field and Description |
|---|---|
double |
amount |
HillClimber.Adaptation.Type |
type |
| Modifier and Type | Method and Description |
|---|---|
static HillClimber.Adaptation |
adaptBy(double amount)
Returns the adaption based on the amount, where a negative value decreases the window.
|
static HillClimber.Adaptation |
decreaseWindow(double amount) |
static HillClimber.Adaptation |
hold() |
static HillClimber.Adaptation |
increaseWindow(double amount) |
static int |
roundToInt(double amount) |
String |
toString() |
public final double amount
public final HillClimber.Adaptation.Type type
public static HillClimber.Adaptation adaptBy(double amount)
public static int roundToInt(double amount)
public static HillClimber.Adaptation hold()
public static HillClimber.Adaptation increaseWindow(double amount)
public static HillClimber.Adaptation decreaseWindow(double amount)