#include <RBFInputData.h>
Public Member Functions | |
VERVE_DECL | RBFInputData () |
VERVE_DECL | ~RBFInputData () |
VERVE_DECL void VERVE_CALL | init (unsigned int numDiscreteInputs, const unsigned int *discreteNumOptionsData, const unsigned int *discreteInputData, unsigned int numContinuousInputs, unsigned int continuousResolution, const bool *continuousCircularData, const real *continuousInputData) |
VERVE_DECL void VERVE_CALL | init (const Observation &obs) |
virtual VERVE_DECL void VERVE_CALL | zeroInputData () |
virtual VERVE_DECL void VERVE_CALL | copyInputData (const unsigned int *discreteInputData, const real *continuousInputData) |
VERVE_DECL unsigned int VERVE_CALL | computeNumUniqueStates (unsigned int continuousResolution) const |
VERVE_DECL void VERVE_CALL | setToUniqueState (unsigned int index, unsigned int numStates, unsigned int continuousResolution) |
Public Attributes | |
unsigned int | numDiscInputs |
unsigned int * | discNumOptionsData |
unsigned int * | discInputData |
unsigned int | numContInputs |
unsigned int | contResolution |
bool * | contCircularData |
real * | contInputData |
Definition at line 34 of file RBFInputData.h.
|
Definition at line 29 of file RBFInputData.cpp. References contCircularData, contInputData, contResolution, discInputData, discNumOptionsData, numContInputs, and numDiscInputs. |
|
Definition at line 40 of file RBFInputData.cpp. References contCircularData, contInputData, discInputData, and discNumOptionsData. |
|
Computes and returns the number of possible unique states given the data stored in the RBFInputData object. This number mainly depends on the given continuous resolution and the number of options for each discrete input. Definition at line 180 of file RBFInputData.cpp. References discNumOptionsData, numContInputs, numDiscInputs, and verve::globals::pow(). Referenced by verve::RBFPopulation::init(). |
|
Copies the given input data.
Definition at line 166 of file RBFInputData.cpp. References discInputData, and numDiscInputs. Referenced by verve::RLModule::resetState(), verve::RLModule::update(), and verve::RLModule::updatePolicyOnly(). |
|
Initializes the RBFInputData with data from the given Observation. Makes a deep copy of everything. Definition at line 111 of file RBFInputData.cpp. References contCircularData, contInputData, discInputData, discNumOptionsData, verve::Observation::getDiscreteInputNumOptions(), verve::Observation::getDiscreteValue(), verve::Observation::getNumDiscreteInputs(), and numDiscInputs. |
|
Initializes the RBFInputData with the given data. Makes a deep copy of everything. Definition at line 63 of file RBFInputData.cpp. References contCircularData, contInputData, discInputData, discNumOptionsData, and numDiscInputs. Referenced by verve::RLModule::computeValueEstimation(), verve::RBFPopulation::init(), and verve::RLModule::RLModule(). |
|
Sets the input data to that of the state at the given index from among all possible states. This should be used in conjunction with 'computeNumUniqueStates'. This does nothing if there are zero discrete and continuous input dimensions or if there are more than zero continuous inputs and the given continuous resolution is zero. Definition at line 202 of file RBFInputData.cpp. References discNumOptionsData, numContInputs, and numDiscInputs. Referenced by verve::RBFPopulation::init(). |
|
Zeroes all input data.
Definition at line 153 of file RBFInputData.cpp. References discInputData, and numDiscInputs. Referenced by verve::RLModule::resetShortTermMemory(), and verve::PredictiveModel::resetShortTermMemory(). |
|
An array of data encoding which continuous dimensions are circular.
Definition at line 97 of file RBFInputData.h. Referenced by verve::RBFPopulation::init(), init(), RBFInputData(), and ~RBFInputData(). |
|
An array of actual continuous input data.
Definition at line 100 of file RBFInputData.h. Referenced by verve::RBFPopulation::init(), init(), RBFInputData(), and ~RBFInputData(). |
|
The continuous resolution (i.e. the number of RBFs per continuous input). Definition at line 93 of file RBFInputData.h. Referenced by verve::RBFPopulation::init(), and RBFInputData(). |
|
An array of actual discrete input data.
Definition at line 86 of file RBFInputData.h. Referenced by copyInputData(), verve::RBFPopulation::init(), verve::RBFNeuron::init(), init(), verve::PredictiveModel::predict(), RBFInputData(), verve::RBFNeuron::updateFiringRate(), zeroInputData(), and ~RBFInputData(). |
|
An array of data encoding the number of options for each discrete input.
Definition at line 83 of file RBFInputData.h. Referenced by computeNumUniqueStates(), verve::RBFPopulation::init(), init(), RBFInputData(), setToUniqueState(), and ~RBFInputData(). |
|
The number of continuous inputs.
Definition at line 89 of file RBFInputData.h. Referenced by computeNumUniqueStates(), verve::RBFPopulation::init(), verve::RBFNeuron::init(), RBFInputData(), verve::RLModule::saveStateRBFData(), verve::RLModule::saveValueData(), and setToUniqueState(). |
|
The number of discrete inputs.
Definition at line 79 of file RBFInputData.h. Referenced by computeNumUniqueStates(), copyInputData(), verve::RBFPopulation::init(), verve::RBFNeuron::init(), init(), RBFInputData(), verve::RLModule::saveStateRBFData(), verve::RLModule::saveValueData(), setToUniqueState(), and zeroInputData(). |