# DS Class Reference

Abstract class for discrete-time sources of data. More...

`#include <libBM.h>`

Inheritance diagram for DS:

[legend]
Collaboration diagram for DS:

[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 | write (vec &ut)
| Accepts action variable and schedule it for application.
void | write (vec &ut, ivec &indeces)
| Accepts action variables at specific 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 | step ()
| Moves from to , i.e. perfroms the actions and reads response of the system.
## Protected Attributes
RV | Drv
| Observed variables, returned by `getdata()`.
RV | Urv
| Action variables, accepted by `write()`.

## Detailed Description

Abstract class for discrete-time sources of data.

The class abstracts operations of: (i) data aquisition, (ii) data-preprocessing, (iii) scaling of data, and (iv) data resampling from the task of estimation and control. Moreover, for controlled systems, it is able to receive the desired control action and perform it in the next step. (Or as soon as possible).

## Member Function Documentation

void DS::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 in MemDS.

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

- work/mixpp/bdm/stat/libBM.h