25 | | <a name="l00019"></a>00019 <span class="keyword">using namespace </span>itpp; |
26 | | <a name="l00020"></a>00020 |
27 | | <a name="l00028"></a><a class="code" href="classMemDS.html">00028</a> <span class="keyword">class </span><a class="code" href="classMemDS.html" title="Class representing off-line data stored in memory.">MemDS</a> : <span class="keyword">public</span> <a class="code" href="classDS.html" title="Abstract class for discrete-time sources of data.">DS</a> { |
28 | | <a name="l00029"></a>00029 mat Data; |
29 | | <a name="l00030"></a>00030 <span class="keywordtype">int</span> time; |
30 | | <a name="l00031"></a>00031 ivec rowid; |
31 | | <a name="l00032"></a>00032 ivec delays; |
32 | | <a name="l00033"></a>00033 |
33 | | <a name="l00034"></a>00034 <span class="keyword">public</span>: |
34 | | <a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classMemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data.">getdata</a>(vec &dt); |
35 | | <a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="classMemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data.">getdata</a>(vec &dt, ivec &indeces); |
36 | | <a name="l00037"></a>00037 <span class="keywordtype">void</span> <a class="code" href="classMemDS.html#5f72b555e0e4a61de1440c457cf57007" title="Method that assigns random variables to the datasource. Typically, the datasource...">linkrvs</a>(<a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &drv, <a class="code" href="classRV.html" title="Class representing variables, most often random variables.">RV</a> &urv); |
37 | | <a name="l00038"></a><a class="code" href="classMemDS.html#b120ed178f7c848f1227c928d8a79be8">00038</a> <span class="keywordtype">void</span> <a class="code" href="classMemDS.html#b120ed178f7c848f1227c928d8a79be8" title="Accepts action variable and schedule it for application.">write</a>(vec &ut){it_error(<span class="stringliteral">"MemDS::write is not supported"</span>);} |
38 | | <a name="l00039"></a><a class="code" href="classMemDS.html#6279bf18d44343750747ecc12e050f09">00039</a> <span class="keywordtype">void</span> <a class="code" href="classMemDS.html#b120ed178f7c848f1227c928d8a79be8" title="Accepts action variable and schedule it for application.">write</a>(vec &ut,ivec &indexes){it_error(<span class="stringliteral">"MemDS::write is not supported"</span>);} |
39 | | <a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="classMemDS.html#21916feb3e5ff960855c09b06a0d279b" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>(); |
40 | | <a name="l00042"></a>00042 <a class="code" href="classMemDS.html#84cfba80cb32d07be94690658175e9c4" title="Default constructor.">MemDS</a>(mat &Dat, ivec &rowid, ivec &delays); |
41 | | <a name="l00043"></a>00043 }; |
42 | | <a name="l00044"></a>00044 |
| 25 | <a name="l00019"></a>00019 <span class="keyword">namespace </span>bdm{ |
| 26 | <a name="l00027"></a><a class="code" href="classbdm_1_1MemDS.html">00027</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1MemDS.html" title="Class representing off-line data stored in memory.">MemDS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> { |
| 27 | <a name="l00028"></a>00028 mat Data; |
| 28 | <a name="l00029"></a>00029 <span class="keywordtype">int</span> time; |
| 29 | <a name="l00030"></a>00030 ivec rowid; |
| 30 | <a name="l00031"></a>00031 ivec delays; |
| 31 | <a name="l00032"></a>00032 |
| 32 | <a name="l00033"></a>00033 <span class="keyword">public</span>: |
| 33 | <a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data.">getdata</a>(vec &dt); |
| 34 | <a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data.">getdata</a>(vec &dt, ivec &indeces); |
| 35 | <a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#5f72b555e0e4a61de1440c457cf57007" title="Method that assigns random variables to the datasource. Typically, the datasource...">linkrvs</a>(<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &drv, <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &urv); |
| 36 | <a name="l00037"></a><a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5">00037</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a>(vec &ut){it_error(<span class="stringliteral">"MemDS::write is not supported"</span>);} |
| 37 | <a name="l00038"></a><a class="code" href="classbdm_1_1MemDS.html#d9af4563d430d8a3f15aa03581e52ef0">00038</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a>(vec &ut,ivec &indexes){it_error(<span class="stringliteral">"MemDS::write is not supported"</span>);} |
| 38 | <a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#21916feb3e5ff960855c09b06a0d279b" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>(); |
| 39 | <a name="l00041"></a>00041 <a class="code" href="classbdm_1_1MemDS.html#84cfba80cb32d07be94690658175e9c4" title="Default constructor.">MemDS</a>(mat &Dat, ivec &rowid, ivec &delays); |
| 40 | <a name="l00042"></a>00042 }; |
| 41 | <a name="l00043"></a>00043 |
| 42 | <a name="l00044"></a>00044 }; <span class="comment">//namespace</span> |