protected class PotentialShapedRMax.PotentialShapedRMaxRF extends java.lang.Object implements RewardFunction
| Modifier and Type | Field and Description |
|---|---|
protected PotentialFunction |
potential
The state potential function
|
protected RewardFunction |
sourceRF
The source reward function
|
| Constructor and Description |
|---|
PotentialShapedRMax.PotentialShapedRMaxRF(RewardFunction sourceRF,
PotentialFunction potential)
Initializes.
|
| 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.
|
protected RewardFunction sourceRF
protected PotentialFunction potential
public PotentialShapedRMax.PotentialShapedRMaxRF(RewardFunction sourceRF, PotentialFunction potential)
sourceRF - the source reward function to which the potential is added.potential - the state potential functionpublic double reward(State s, GroundedAction a, State sprime)
RewardFunctionreward in interface RewardFunctions - the state in which the action was executeda - the action executedsprime - the state to which the agent transitioned