Qualia  0.2
Public Member Functions | Public Attributes | List of all members
Observation Class Reference

#include <Observation.h>

Inheritance diagram for Observation:
Inheritance graph
[legend]

Public Member Functions

 Observation (unsigned int dim)
 Constructor (dimension needs to be known at construction). More...
 
virtual ~Observation ()
 
observation_toperator[] (int i) const
 Access operator. More...
 
virtual ObservationcopyFrom (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_tobservations
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

Observation::Observation ( unsigned int  dim)

Constructor (dimension needs to be known at construction).

Observation::~Observation ( )
virtual

Member Function Documentation

Observation & Observation::copyFrom ( const Observation src)
virtual

Copies data from src.

Reimplemented in RLObservation.

unsigned int Observation::dim ( ) const
inline

Returns dimension of data.

void Observation::loadData ( XFile file)
virtual

Loads data from file (in binary format). Dimension needs to be known in advance.

Reimplemented in RLObservation.

observation_t& Observation::operator[] ( int  i) const
inline

Access operator.

void Observation::saveData ( XFile file) const
virtual

Save data to file (in binary format).

Reimplemented in RLObservation.

Member Data Documentation

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.


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