public static class PotentialShapedRMax.RMaxPotential extends java.lang.Object implements PotentialFunction
| Constructor and Description |
|---|
PotentialShapedRMax.RMaxPotential(double vMax)
Initializes using the given maximum value function value
|
PotentialShapedRMax.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 PotentialShapedRMax.RMaxPotential(double rMax,
double gamma)
rMax - the maximum possible rewardgamma - the discount factor.public PotentialShapedRMax.RMaxPotential(double vMax)
vMax - the maximum value function valuepublic double potentialValue(State s)
PotentialFunctionpotentialValue in interface PotentialFunctions - the input state for which to get the reward potential.