bdm::MemDS Class Reference

Memory storage of off-line data column-wise. More...

#include <datasources.h>

List of all members.

Public Member Functions

void getdata (vec &dt)
 Returns full vector of observed data=[output, input].
void getdata (vec &dt, const ivec &indeces)
 Returns data records at indeces.
void set_rvs (RV &drv, RV &urv)
void write (vec &ut)
 Accepts action variable and schedule it for application.
void write (vec &ut, ivec &indices)
void step ()
 Moves from $ t $ to $ t+1 $, i.e. perfroms the actions and reads response of the system.
 MemDS ()
 Default constructor.
 MemDS (mat &Dat, ivec &rowid0, ivec &delays0)
virtual void write (vec &ut, const ivec &indeces)
 Accepts action variables at specific indeces.
virtual void log_add (logger &L)
 Register DS for logging into logger L.
virtual void logit (logger &L)
 Register DS for logging into logger L.
virtual RV _drv () const
 access function
const RV_urv () const
 access function
virtual void set_drv (const RV &drv, const RV &urv)
 set random rvariables
virtual string to_string ()
 This method returns a basic info about the current instance.
virtual void from_setting (const Setting &set)
 This method arrange instance properties according the data stored in the Setting structure.
virtual void to_setting (Setting &set) const
 This method save all the instance properties into the Setting structure.
virtual void validate ()
 This method TODO.

Protected Attributes

mat Data
 internal matrix of data
int time
 active column in the Data matrix
ivec rowid
 vector of rows that are presented in Dt
ivec delays
 vector of delays that are presented in Dt
int dtsize
int utsize
RV Drv
 Description of data returned by getdata().
RV Urv
 Description of data witten by by write().
int L_dt
 Remember its own index in Logger L.
int L_ut


Detailed Description

Memory storage of off-line data column-wise.

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 indices rowid and delays.

The data can be loaded from a file.


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

Generated on Wed Aug 5 00:06:56 2009 for mixpp by  doxygen 1.5.9