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

#include <XFileDataSet.h>

Inheritance diagram for XFileDataSet:
Inheritance graph
[legend]
Collaboration diagram for XFileDataSet:
Collaboration graph
[legend]

Public Member Functions

 XFileDataSet (XFile *file)
 
virtual ~XFileDataSet ()
 
virtual void init ()
 
virtual void reset ()
 To be called before every episode. More...
 
virtual void setExample (int t)
 Sets this->example to given index t. More...
 
- Public Member Functions inherited from DataSet
 DataSet (int nExamples=0, int dim=0)
 Constructor. More...
 
virtual ~DataSet ()
 
int dim () const
 Returns the dimension of each example. More...
 
int nExamples () const
 Returns the number of examples. More...
 

Public Attributes

XFile_file
 The file (XFile) that stores the dataset. More...
 
int _currentExampleIndex
 The index of the current example (internal use). More...
 
- Public Attributes inherited from DataSet
int _nExamples
 Number of examples in the dataset. More...
 
int _dim
 Dimension of the example. More...
 
realexample
 Current example. More...
 

Detailed Description

A DataSet that reads data from an XFile.

Constructor & Destructor Documentation

XFileDataSet::XFileDataSet ( XFile file)
XFileDataSet::~XFileDataSet ( )
virtual

Member Function Documentation

void XFileDataSet::init ( )
virtual

To be called before training. Should allocate example, among other things. Default version allocates example to the size of dim.

Reimplemented from DataSet.

Reimplemented in DiskXFileDataSet.

void XFileDataSet::reset ( )
virtual

To be called before every episode.

Reimplemented from DataSet.

Reimplemented in DiskXFileDataSet.

void XFileDataSet::setExample ( int  t)
virtual

Sets this->example to given index t.

Implements DataSet.

Reimplemented in DiskXFileDataSet.

Member Data Documentation

int XFileDataSet::_currentExampleIndex

The index of the current example (internal use).

XFile* XFileDataSet::_file

The file (XFile) that stores the dataset.


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