public static class ExampleGridWorld.ExampleRF extends java.lang.Object implements RewardFunction
Constructor and Description |
---|
ExampleGridWorld.ExampleRF(int goalX,
int goalY) |
Modifier and Type | Method and Description |
---|---|
double |
reward(State s,
GroundedAction a,
State sprime)
Returns the reward received when action a is executed in state s and the agent transitions to state sprime.
|
public ExampleGridWorld.ExampleRF(int goalX, int goalY)
public double reward(State s, GroundedAction a, State sprime)
RewardFunction
reward
in interface RewardFunction
s
- the state in which the action was executeda
- the action executedsprime
- the state to which the agent transitioned