root/doc/html/classMemDS.html @ 255

Revision 234, 10.1 kB (checked in by smidl, 15 years ago)

doc

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>mixpp: MemDS Class Reference</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.6 -->
8<div class="navigation" id="top">
9  <div class="tabs">
10    <ul>
11      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13      <li><a href="modules.html"><span>Modules</span></a></li>
14      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
15      <li><a href="files.html"><span>Files</span></a></li>
16    </ul>
17  </div>
18  <div class="tabs">
19    <ul>
20      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
21      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
22      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
23    </ul>
24  </div>
25</div>
26<div class="contents">
27<h1>MemDS Class Reference</h1><!-- doxytag: class="MemDS" --><!-- doxytag: inherits="DS" -->Class representing off-line data stored in memory. 
28<a href="#_details">More...</a>
29<p>
30<code>#include &lt;<a class="el" href="libDS_8h-source.html">libDS.h</a>&gt;</code>
31<p>
32<div class="dynheader">
33Inheritance diagram for MemDS:</div>
34<div class="dynsection">
35<p><center><img src="classMemDS__inherit__graph.png" border="0" usemap="#MemDS__inherit__map" alt="Inheritance graph"></center>
36<map name="MemDS__inherit__map">
37<area shape="rect" href="classDS.html" title="Abstract class for discrete&#45;time sources of data." alt="" coords="19,7,59,31"></map>
38<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
39<div class="dynheader">
40Collaboration diagram for MemDS:</div>
41<div class="dynsection">
42<p><center><img src="classMemDS__coll__graph.png" border="0" usemap="#MemDS__coll__map" alt="Collaboration graph"></center>
43<map name="MemDS__coll__map">
44<area shape="rect" href="classDS.html" title="Abstract class for discrete&#45;time sources of data." alt="" coords="19,111,59,135"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="20,7,57,31"></map>
45<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
46
47<p>
48<a href="classMemDS-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
49<tr><td></td></tr>
50<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
51<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23522b9e7dd0bb0c365cc9cde4c05449"></a><!-- doxytag: member="MemDS::getdata" ref="23522b9e7dd0bb0c365cc9cde4c05449" args="(vec &amp;dt)" -->
52void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#23522b9e7dd0bb0c365cc9cde4c05449">getdata</a> (vec &amp;dt)</td></tr>
53
54<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns full vector of observed data. <br></td></tr>
55<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="900f1e1c9eb950f87e557c068628e60e"></a><!-- doxytag: member="MemDS::getdata" ref="900f1e1c9eb950f87e557c068628e60e" args="(vec &amp;dt, ivec &amp;indeces)" -->
56void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#900f1e1c9eb950f87e557c068628e60e">getdata</a> (vec &amp;dt, ivec &amp;indeces)</td></tr>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns data records at indeces. <br></td></tr>
59<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#5f72b555e0e4a61de1440c457cf57007">linkrvs</a> (<a class="el" href="classRV.html">RV</a> &amp;drv, <a class="el" href="classRV.html">RV</a> &amp;urv)</td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">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.  <a href="#5f72b555e0e4a61de1440c457cf57007"></a><br></td></tr>
62<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b120ed178f7c848f1227c928d8a79be8"></a><!-- doxytag: member="MemDS::write" ref="b120ed178f7c848f1227c928d8a79be8" args="(vec &amp;ut)" -->
63void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#b120ed178f7c848f1227c928d8a79be8">write</a> (vec &amp;ut)</td></tr>
64
65<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accepts action variable and schedule it for application. <br></td></tr>
66<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6279bf18d44343750747ecc12e050f09"></a><!-- doxytag: member="MemDS::write" ref="6279bf18d44343750747ecc12e050f09" args="(vec &amp;ut, ivec &amp;indexes)" -->
67void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#6279bf18d44343750747ecc12e050f09">write</a> (vec &amp;ut, ivec &amp;indexes)</td></tr>
68
69<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Accepts action variables at specific indeces. <br></td></tr>
70<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21916feb3e5ff960855c09b06a0d279b"></a><!-- doxytag: member="MemDS::step" ref="21916feb3e5ff960855c09b06a0d279b" args="()" -->
71void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#21916feb3e5ff960855c09b06a0d279b">step</a> ()</td></tr>
72
73<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Moves from <img class="formulaInl" alt="$t$" src="form_38.png"> to <img class="formulaInl" alt="$t+1$" src="form_39.png">, i.e. perfroms the actions and reads response of the system. <br></td></tr>
74<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="84cfba80cb32d07be94690658175e9c4"></a><!-- doxytag: member="MemDS::MemDS" ref="84cfba80cb32d07be94690658175e9c4" args="(mat &amp;Dat, ivec &amp;rowid, ivec &amp;delays)" -->
75&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemDS.html#84cfba80cb32d07be94690658175e9c4">MemDS</a> (mat &amp;Dat, ivec &amp;rowid, ivec &amp;delays)</td></tr>
76
77<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
78<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
79<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1012025a1a3a1fdd24aa48698a3d3454"></a><!-- doxytag: member="MemDS::Drv" ref="1012025a1a3a1fdd24aa48698a3d3454" args="" -->
80<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDS.html#1012025a1a3a1fdd24aa48698a3d3454">Drv</a></td></tr>
81
82<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Observed variables, returned by <code><a class="el" href="classDS.html#db2dacc9e71a36eeb9c5c2ee402eeeb1" title="Returns full vector of observed data.">getdata()</a></code>. <br></td></tr>
83<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a88ffaeb3c7c2cf30c69bc41a000629"></a><!-- doxytag: member="MemDS::Urv" ref="0a88ffaeb3c7c2cf30c69bc41a000629" args="" -->
84<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDS.html#0a88ffaeb3c7c2cf30c69bc41a000629">Urv</a></td></tr>
85
86<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Action variables, accepted by <code><a class="el" href="classDS.html#0dfb6788b70c0d48a1f5276ed6c93039" title="Accepts action variable and schedule it for application.">write()</a></code>. <br></td></tr>
87</table>
88<hr><a name="_details"></a><h2>Detailed Description</h2>
89Class representing off-line data stored in memory.
90<p>
91The data are stored in an internal matrix <code>Data</code> . Each column of Data corresponds to one discrete time observation <img class="formulaInl" alt="$t$" src="form_38.png">. Access to this matrix is via indexes <code>rowid</code> and <code>delays</code>.<p>
92The data can be loaded from a file. <hr><h2>Member Function Documentation</h2>
93<a class="anchor" name="5f72b555e0e4a61de1440c457cf57007"></a><!-- doxytag: member="MemDS::linkrvs" ref="5f72b555e0e4a61de1440c457cf57007" args="(RV &amp;drv, RV &amp;urv)" -->
94<div class="memitem">
95<div class="memproto">
96      <table class="memname">
97        <tr>
98          <td class="memname">void MemDS::linkrvs           </td>
99          <td>(</td>
100          <td class="paramtype"><a class="el" href="classRV.html">RV</a> &amp;&nbsp;</td>
101          <td class="paramname"> <em>drv</em>, </td>
102        </tr>
103        <tr>
104          <td class="paramkey"></td>
105          <td></td>
106          <td class="paramtype"><a class="el" href="classRV.html">RV</a> &amp;&nbsp;</td>
107          <td class="paramname"> <em>urv</em></td><td>&nbsp;</td>
108        </tr>
109        <tr>
110          <td></td>
111          <td>)</td>
112          <td></td><td></td><td></td>
113        </tr>
114      </table>
115</div>
116<div class="memdoc">
117
118<p>
119Method 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.
120<p>
121(Inherited from m3k, may be deprecated soon).
122<p>Reimplemented from <a class="el" href="classDS.html#9a35ca9c9321dce2bf63bf668f785b75">DS</a>.</p>
123
124<p>References <a class="el" href="libBM_8h-source.html#l00077">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00382">DS::Drv</a>, and <a class="el" href="libBM_8h-source.html#l00384">DS::Urv</a>.</p>
125
126</div>
127</div><p>
128<hr>The documentation for this class was generated from the following files:<ul>
129<li>work/git/mixpp/bdm/stat/<a class="el" href="libDS_8h-source.html">libDS.h</a><li>work/git/mixpp/bdm/stat/libDS.cpp</ul>
130</div>
131<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 15 10:51:19 2009 for mixpp by&nbsp;
132<a href="http://www.doxygen.org/index.html">
133<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
134</body>
135</html>
Note: See TracBrowser for help on using the browser.