public static class TigerDomain.TigerRF extends java.lang.Object implements RewardFunction
Modifier and Type | Field and Description |
---|---|
double |
correctDoor
the reward for opening the correct door
|
double |
listen
The reward for listening
|
double |
nothing
The reward for do nothing.
|
double |
wrongDoor
The reward for opening the wrong door
|
Constructor and Description |
---|
TigerDomain.TigerRF() |
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 double correctDoor
public double wrongDoor
public double listen
public double nothing
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