Qualia
0.2
|
#include <RLObservation.h>
Public Member Functions | |
RLObservation (unsigned int dim) | |
Observation & | copyFrom (const Observation &src) |
Copies data from src. More... | |
virtual void | saveData (XFile *file) const |
Save data to file (in binary format). More... | |
virtual void | loadData (XFile *file) |
Loads data from file (in binary format). Dimension needs to be known in advance. More... | |
![]() | |
Observation (unsigned int dim) | |
Constructor (dimension needs to be known at construction). More... | |
virtual | ~Observation () |
observation_t & | operator[] (int i) const |
Access operator. More... | |
unsigned int | dim () const |
Returns dimension of data. More... | |
Public Attributes | |
real | reward |
The reward component. More... | |
![]() | |
observation_t * | observations |
The array containing the observations (of size dim()). More... | |
unsigned int | _dim |
Dimension of data. More... | |
bool | terminal |
True iff this observation is terminal. More... | |
An observation that contains a reward, for use in Reinforcement Learning (RL).
RLObservation::RLObservation | ( | unsigned int | dim | ) |
|
virtual |
Copies data from src.
Reimplemented from Observation.
|
virtual |
Loads data from file (in binary format). Dimension needs to be known in advance.
Reimplemented from Observation.
|
virtual |
Save data to file (in binary format).
Reimplemented from Observation.
real RLObservation::reward |
The reward component.