mixpp: bdm::MemDS Class Reference

bdm::MemDS Class Reference

Memory storage of off-line data column-wise (used mostly in C++). More...

#include <datasources.h>

Inheritance diagram for bdm::MemDS:

bdm::DS bdm::root bdm::FileDS bdm::CsvFileDS bdm::ITppFileDS List of all members.

Public Member Functions

 MemDS ()
 Default constructor.
 MemDS (mat &Dat)
 Convenience constructor.
int max_length ()
 returns number of data in the file;
void getdata (vec &dt) const
void getdata (vec &dt, const ivec &indices)
void write (const vec &ut)
void write (const vec &ut, const ivec &indices)
void step ()
void from_setting (const Setting &set)
void validate ()

Protected Attributes

mat Data
 internal matrix of data
int time
 active column in the Data matrix

Detailed Description

Memory storage of off-line data column-wise (used mostly in C++).

The data are stored in an internal matrix Data . Each column of Data corresponds to one discrete time observation $t$.


Member Function Documentation

void MemDS::from_setting ( const Setting &  set  )  [virtual]

Create object from the following structure

    class = 'MemDS';
    Data = [...];               % Data matrix with records stored in columns
    --- optional fields ---
    time = 0;                   % Index of the first column in the matrix Data
    --- inherited fields ---
    bdm::DS::from_setting

If the optional fields are not given, they will be filled as follows:

    drv.names = { "" };                % empty name
    drv.sizes = { no_rows_Data };      % full size of the record
    time = 0;

Reimplemented from bdm::DS.

Reimplemented in bdm::FileDS, bdm::ITppFileDS, and bdm::CsvFileDS.


The documentation for this class was generated from the following files:
Generated on 2 Dec 2013 for mixpp by  doxygen 1.4.7