public static class PotentialShapedRMax.RMaxPotential extends java.lang.Object implements PotentialFunction
Constructor and Description |
---|
RMaxPotential(double vMax)
Initializes using the given maximum value function value
|
RMaxPotential(double rMax,
double gamma)
Initializes for a given maximum reward and discount factor.
|
Modifier and Type | Method and Description |
---|---|
double |
potentialValue(State s)
Returns the reward potential from the given state.
|
public RMaxPotential(double rMax, double gamma)
rMax
- the maximum possible rewardgamma
- the discount factor.public RMaxPotential(double vMax)
vMax
- the maximum value function valuepublic double potentialValue(State s)
PotentialFunction
potentialValue
in interface PotentialFunction
s
- the input state for which to get the reward potential.