public static class MountainCar.ClassicMCTF extends java.lang.Object implements TerminalFunction
| Modifier and Type | Field and Description |
|---|---|
double |
threshold |
protected boolean |
useThreshold |
| Constructor and Description |
|---|
MountainCar.ClassicMCTF()
Sets terminal states to be those that are >= the maximum position in the world.
|
MountainCar.ClassicMCTF(double threshold)
Sets terminal states to be those >= the given threshold.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTerminal(State s) |
public MountainCar.ClassicMCTF()
public MountainCar.ClassicMCTF(double threshold)
threshold - position >= this will be terminal statespublic boolean isTerminal(State s)
isTerminal in interface TerminalFunction