public interface SampleModel
Modifier and Type | Method and Description |
---|---|
EnvironmentOutcome |
sample(State s,
Action a)
Samples a transition from the transition distribution and returns it.
|
boolean |
terminal(State s)
Indicates whether a state is a terminal state (i.e., no more action occurs and zero reward received from there on out)
|
EnvironmentOutcome sample(State s, Action a)
s
- the source statea
- the action taken in the source stateEnvironmentOutcome
describing the sampled transitionboolean terminal(State s)
s
- the input state to test