public abstract static class DifferentiableVInit.ParamedDiffVInit extends java.lang.Object implements DifferentiableVInit
DifferentiableVInit
that includes a double array of parameters and methods to modify them.DifferentiableVInit.ParamedDiffVInitValueFunctionInitialization.ConstantValueFunctionInitialization| Modifier and Type | Field and Description |
|---|---|
protected int |
dim
The parameter dimensionality
|
protected double[] |
parameters
The parameters of the reward functions.
|
| Constructor and Description |
|---|
DifferentiableVInit.ParamedDiffVInit() |
| Modifier and Type | Method and Description |
|---|---|
int |
getParameterDimension()
Returns the parameter dimensionality
|
double[] |
getParameters()
Returns the parameters of this reward function.
|
void |
randomizeParameters(double lowerVal,
double upperVal,
java.util.Random rand)
Randomizes the parameter values using the given random number generator.
|
void |
setParameter(int i,
double p)
Sets the value of a given parameter.
|
void |
setParameters(double[] parameters)
Sets the parameters of this differentiable value function initialization
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQGradient, getVGradientqValuevalueprotected double[] parameters
protected int dim
public DifferentiableVInit.ParamedDiffVInit()
public void setParameters(double[] parameters)
parameters - the parameter values of this functionpublic void setParameter(int i,
double p)
i - which parameter to setp - the value of the parameterpublic int getParameterDimension()
public double[] getParameters()
public void randomizeParameters(double lowerVal,
double upperVal,
java.util.Random rand)
lowerVal - the lower parameter range valueupperVal - the upper parameter range valuerand - the random number generator to use