Fido
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
rl::Interpolator Class Referenceabstract

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 InterpolatorgetAnyInterpolatorFromFile (std::ifstream *in)
 Gets an interpolator from a file. More...
 

Detailed Description

An interpolator of multi-dimensional data points.

Member Function Documentation

virtual double rl::Interpolator::actionTermDerivative ( double  actionTerm,
double  wireActionTerm,
const std::vector< double > &  action,
const Wire wire,
const std::vector< Wire > &  controlWires 
)
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.

Interpolator * Interpolator::getAnyInterpolatorFromFile ( std::ifstream *  in)
static

Gets an interpolator from a file.

Tries out every interpolator and throws an error none of the interpolators successfully read from the file

virtual double rl::Interpolator::getReward ( const std::vector< Wire > &  controlWires,
const std::vector< double > &  action 
)
pure virtual

Uses the interpolator function to compute the reward of an action vector given a set of control wires.

Implemented in rl::LSInterpolator.

virtual bool rl::Interpolator::initFromStream ( std::ifstream *  in)
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.

virtual double rl::Interpolator::rewardDerivative ( const std::vector< double > &  action,
const Wire wire,
const std::vector< Wire > &  controlWires 
)
pure virtual

The partial derivative of the interpolator function with respect to the reward of a control wire.

Implemented in rl::LSInterpolator.

virtual void rl::Interpolator::store ( std::ofstream *  out)
pure virtual

Stores the parameters of an interpolator in a file.

Implemented in rl::LSInterpolator.


The documentation for this class was generated from the following files: