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