root/bdm/stat/libDS.h @ 254

Revision 254, 1.0 kB (checked in by smidl, 15 years ago)

create namespace bdm

  • Property svn:eol-style set to native
Line 
1/*!
2  \file
3  \brief Common DataSources.
4  \author Vaclav Smidl.
5
6  -----------------------------------
7  BDM++ - C++ library for Bayesian Decision Making under Uncertainty
8
9  Using IT++ for numerical operations
10  -----------------------------------
11*/
12
13#ifndef DS_H
14#define DS_H
15
16#include <itpp/itbase.h>
17#include "libBM.h"
18
19namespace bdm{
20/*!
21* \brief Class representing off-line data stored in memory
22
23The data are stored in an internal matrix \c Data . Each column of Data corresponds to one discrete time observation \f$t\f$. Access to this matrix is via indexes \c rowid and \c delays.
24
25The data can be loaded from a file.
26*/
27class MemDS : public DS {
28mat Data;
29int time;
30ivec rowid;
31ivec delays;
32
33public:
34        void getdata(vec &dt);
35        void getdata(vec &dt, ivec &indeces);
36        void linkrvs(RV &drv, RV &urv);
37        void write(vec &ut){it_error("MemDS::write is not supported");}
38        void write(vec &ut,ivec &indexes){it_error("MemDS::write is not supported");}
39        void step();
40        //!Default constructor
41        MemDS(mat &Dat, ivec &rowid, ivec &delays);
42};
43
44}; //namespace
45
46#endif // DS_H
Note: See TracBrowser for help on using the browser.