Data matrix from the records in a CSV file fname. The orientation can be of two types: 1. BY_COL which is default - the data are stored in columns; one column per time  , one row per data item. 2.
, one row per data item. 2. BY_ROW if the data are stored the classical CSV style. Then each column stores the values for data item, for ex. ![$[y_{t} y_{t-1} ...]$](form_55.png) , one row for each discrete time instant.  
More...
, one row for each discrete time instant.  
More...
#include <libDS.h>
| Public Member Functions | |
| CsvFileDS (const string &fname, const string &orientation="BY_COL") | |
| Constructor - create DS from a CSV file. | |
| void | getdata (vec &dt) | 
| Returns full vector of observed data=[output, input]. | |
| void | getdata (vec &dt, const ivec &indeces) | 
| Returns data records at indeces. | |
| int | ndat () | 
| returns number of data in the file; | |
| 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) | 
| virtual void | write (vec &ut, const ivec &indeces) | 
| Accepts action variables at specific indeces. | |
| void | step () | 
| Moves from  to  , i.e. perfroms the actions and reads response of the system. | |
| 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 | |
| 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 | 
Data matrix from the records in a CSV file fname. The orientation can be of two types: 1. BY_COL which is default - the data are stored in columns; one column per time  , one row per data item. 2.
, one row per data item. 2. BY_ROW if the data are stored the classical CSV style. Then each column stores the values for data item, for ex. ![$[y_{t} y_{t-1} ...]$](form_55.png) , one row for each discrete time instant.
, one row for each discrete time instant.  1.5.8
 1.5.8