verve::RBFInputData Struct Reference

A convenient data structure for passing around common sets of data. More...

#include <RBFInputData.h>

List of all members.

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
realcontInputData


Detailed Description

A convenient data structure for passing around common sets of data.

Definition at line 34 of file RBFInputData.h.


Constructor & Destructor Documentation

verve::RBFInputData::RBFInputData  ) 
 

Definition at line 29 of file RBFInputData.cpp.

References contCircularData, contInputData, contResolution, discInputData, discNumOptionsData, numContInputs, and numDiscInputs.

verve::RBFInputData::~RBFInputData  ) 
 

Definition at line 40 of file RBFInputData.cpp.

References contCircularData, contInputData, discInputData, and discNumOptionsData.


Member Function Documentation

unsigned int verve::RBFInputData::computeNumUniqueStates unsigned int  continuousResolution  )  const
 

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().

void verve::RBFInputData::copyInputData const unsigned int *  discreteInputData,
const real continuousInputData
[virtual]
 

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().

void verve::RBFInputData::init const Observation obs  ) 
 

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.

void verve::RBFInputData::init unsigned int  numDiscreteInputs,
const unsigned int *  discreteNumOptionsData,
const unsigned int *  discreteInputData,
unsigned int  numContinuousInputs,
unsigned int  continuousResolution,
const bool *  continuousCircularData,
const real continuousInputData
 

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().

void verve::RBFInputData::setToUniqueState unsigned int  index,
unsigned int  numStates,
unsigned int  continuousResolution
 

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().

void verve::RBFInputData::zeroInputData  )  [virtual]
 

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().


Member Data Documentation

bool* verve::RBFInputData::contCircularData
 

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().

real* verve::RBFInputData::contInputData
 

An array of actual continuous input data.

Definition at line 100 of file RBFInputData.h.

Referenced by verve::RBFPopulation::init(), init(), RBFInputData(), and ~RBFInputData().

unsigned int verve::RBFInputData::contResolution
 

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().

unsigned int* verve::RBFInputData::discInputData
 

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().

unsigned int* verve::RBFInputData::discNumOptionsData
 

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().

unsigned int verve::RBFInputData::numContInputs
 

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().

unsigned int verve::RBFInputData::numDiscInputs
 

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().


The documentation for this struct was generated from the following files:
Generated on Tue Jan 24 21:46:39 2006 for Verve by  doxygen 1.4.6-NO