MemDS Class Reference

Class representing off-line data stored in memory. More...

#include <libDS.h>

Inheritance diagram for MemDS:

Inheritance graph
[legend]
Collaboration diagram for MemDS:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void getdata (vec &dt)
 Returns full vector of observed data.
void getdata (vec &dt, ivec &indeces)
 Returns data records at indeces.
void linkrvs (RV &drv, RV &urv)
 Method that assigns random variables to the datasource. Typically, the datasource will be constructed without knowledge of random variables. This method will associate existing variables with RVs.
void write (vec &ut)
 Accepts action variable and schedule it for application.
void write (vec &ut, ivec &indexes)
 Accepts action variables at specific indeces.
void step ()
 Moves from $t$ to $t+1$, i.e. perfroms the actions and reads response of the system.
 MemDS (mat &Dat, ivec &rowid, ivec &delays)
 Default constructor.

Protected Attributes

RV Drv
 Observed variables, returned by getdata().
RV Urv
 Action variables, accepted by write().


Detailed Description

Class representing off-line data stored in memory.

The data are stored in an internal matrix Data . Each column of Data corresponds to one discrete time observation $t$. Access to this matrix is via indexes rowid and delays.

The data can be loaded from a file.


Member Function Documentation

void MemDS::linkrvs ( RV drv,
RV urv 
)

Method that assigns random variables to the datasource. Typically, the datasource will be constructed without knowledge of random variables. This method will associate existing variables with RVs.

(Inherited from m3k, may be deprecated soon).

Reimplemented from DS.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 11:15:21 2008 for mixpp by  doxygen 1.5.3