An interpolator of multi-dimensional data points. More...
#include <Interpolator.h>
Inherited by rl::LSInterpolator.
Public Member Functions | |
virtual bool | initFromStream (std::ifstream *in)=0 |
Initializes the parameters of an interpolator from a file. More... | |
virtual void | store (std::ofstream *out)=0 |
Stores the parameters of an interpolator in a file. More... | |
virtual double | getReward (const std::vector< Wire > &controlWires, const std::vector< double > &action)=0 |
Uses the interpolator function to compute the reward of an action vector given a set of control wires. More... | |
virtual double | rewardDerivative (const std::vector< double > &action, const Wire &wire, const std::vector< Wire > &controlWires)=0 |
The partial derivative of the interpolator function with respect to the reward of a control wire. More... | |
virtual double | actionTermDerivative (double actionTerm, double wireActionTerm, const std::vector< double > &action, const Wire &wire, const std::vector< Wire > &controlWires)=0 |
The partial derivative of the interpolator function with respect to the value of one term of the action vector of a control wire. More... | |
Static Public Member Functions | |
static Interpolator * | getAnyInterpolatorFromFile (std::ifstream *in) |
Gets an interpolator from a file. More... | |
An interpolator of multi-dimensional data points.
|
pure virtual |
The partial derivative of the interpolator function with respect to the value of one term of the action vector of a control wire.
Implemented in rl::LSInterpolator.
|
static |
Gets an interpolator from a file.
Tries out every interpolator and throws an error none of the interpolators successfully read from the file
|
pure virtual |
Uses the interpolator function to compute the reward of an action vector given a set of control wires.
Implemented in rl::LSInterpolator.
|
pure virtual |
Initializes the parameters of an interpolator from a file.
Returns false if the interpolator stored in the file is not the correct type
Implemented in rl::LSInterpolator.
|
pure virtual |
The partial derivative of the interpolator function with respect to the reward of a control wire.
Implemented in rl::LSInterpolator.
|
pure virtual |
Stores the parameters of an interpolator in a file.
Implemented in rl::LSInterpolator.