Qualia
0.2
|
#include <Observation.h>
Public Member Functions | |
Observation (unsigned int dim) | |
Constructor (dimension needs to be known at construction). More... | |
virtual | ~Observation () |
observation_t & | operator[] (int i) const |
Access operator. More... | |
virtual Observation & | copyFrom (const Observation &src) |
Copies data from src. More... | |
unsigned int | dim () const |
Returns dimension of data. 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... | |
Public Attributes | |
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... | |
Represent observations returned by the environment to the agents. Observations in Qualia are continuous. A specific observation is represented by a multi-dimensional array of real numbers. Notice that discrete observation components can be represented as well since the underlying data is an array of real numbers, so you can put integers in there as long as you know what you're doing.
Observation::Observation | ( | unsigned int | dim | ) |
Constructor (dimension needs to be known at construction).
|
virtual |
|
virtual |
Copies data from src.
Reimplemented in RLObservation.
|
inline |
Returns dimension of data.
|
virtual |
Loads data from file (in binary format). Dimension needs to be known in advance.
Reimplemented in RLObservation.
|
inline |
Access operator.
|
virtual |
Save data to file (in binary format).
Reimplemented in RLObservation.
unsigned int Observation::_dim |
Dimension of data.
observation_t* Observation::observations |
The array containing the observations (of size dim()).
bool Observation::terminal |
True iff this observation is terminal.