[259] | 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"> |
---|
[397] | 3 | <title>mixpp: bdm::MexDS Class Reference</title> |
---|
[259] | 4 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
[290] | 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
[259] | 6 | </head><body> |
---|
[472] | 7 | <!-- Generated by Doxygen 1.5.9 --> |
---|
[271] | 8 | <script type="text/javascript"> |
---|
| 9 | <!-- |
---|
| 10 | function changeDisplayState (e){ |
---|
| 11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
| 12 | var button=this.firstChild; |
---|
| 13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
| 14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
| 15 | sectionDiv.style.display='block'; |
---|
| 16 | button.src='open.gif'; |
---|
| 17 | }else{ |
---|
| 18 | sectionDiv.style.display='none'; |
---|
| 19 | button.src='closed.gif'; |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | function initDynSections(){ |
---|
| 23 | var divs=document.getElementsByTagName('div'); |
---|
| 24 | var sectionCounter=1; |
---|
| 25 | for(var i=0;i<divs.length-1;i++){ |
---|
| 26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
| 27 | var header=divs[i]; |
---|
| 28 | var section=divs[i+1]; |
---|
| 29 | var button=header.firstChild; |
---|
| 30 | if (button!='IMG'){ |
---|
| 31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
| 32 | button=document.createElement('img'); |
---|
| 33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
| 34 | } |
---|
| 35 | header.style.cursor='pointer'; |
---|
| 36 | header.onclick=changeDisplayState; |
---|
| 37 | header.id='dynheader'+sectionCounter; |
---|
| 38 | button.src='closed.gif'; |
---|
| 39 | section.id='dynsection'+sectionCounter; |
---|
| 40 | section.style.display='none'; |
---|
| 41 | section.style.marginLeft='14px'; |
---|
| 42 | sectionCounter++; |
---|
| 43 | } |
---|
| 44 | } |
---|
| 45 | } |
---|
| 46 | window.onload = initDynSections; |
---|
| 47 | --> |
---|
| 48 | </script> |
---|
[259] | 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
[271] | 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[290] | 54 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 55 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 56 | </ul> |
---|
| 57 | </div> |
---|
| 58 | <div class="tabs"> |
---|
| 59 | <ul> |
---|
| 60 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 61 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 62 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 63 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 64 | </ul> |
---|
| 65 | </div> |
---|
[397] | 66 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1MexDS.html">MexDS</a> |
---|
[259] | 67 | </div> |
---|
| 68 | </div> |
---|
| 69 | <div class="contents"> |
---|
[397] | 70 | <h1>bdm::MexDS Class Reference</h1><!-- doxytag: class="bdm::MexDS" --><!-- doxytag: inherits="bdm::MemDS" -->Memory storage of off-line data column-wise. |
---|
[290] | 71 | <a href="#_details">More...</a> |
---|
[259] | 72 | <p> |
---|
[472] | 73 | <code>#include <<a class="el" href="mex__datasource_8h_source.html">mex_datasource.h</a>></code> |
---|
[290] | 74 | <p> |
---|
[259] | 75 | |
---|
| 76 | <p> |
---|
[397] | 77 | <a href="classbdm_1_1MexDS-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 78 | <tr><td></td></tr> |
---|
| 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[397] | 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23522b9e7dd0bb0c365cc9cde4c05449"></a><!-- doxytag: member="bdm::MexDS::getdata" ref="23522b9e7dd0bb0c365cc9cde4c05449" args="(vec &dt)" --> |
---|
[259] | 81 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#23522b9e7dd0bb0c365cc9cde4c05449">getdata</a> (vec &dt)</td></tr> |
---|
| 82 | |
---|
[264] | 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns full vector of observed data=[output, input]. <br></td></tr> |
---|
[397] | 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62083e1db465a97a2a39fc682addc83d"></a><!-- doxytag: member="bdm::MexDS::getdata" ref="62083e1db465a97a2a39fc682addc83d" args="(vec &dt, const ivec &indeces)" --> |
---|
[261] | 85 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#62083e1db465a97a2a39fc682addc83d">getdata</a> (vec &dt, const ivec &indeces)</td></tr> |
---|
[259] | 86 | |
---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns data records at indeces. <br></td></tr> |
---|
[397] | 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e6428f2778254e8304fb5a799b7f815a"></a><!-- doxytag: member="bdm::MexDS::set_rvs" ref="e6428f2778254e8304fb5a799b7f815a" args="(RV &drv, RV &urv)" --> |
---|
[271] | 89 | void </td><td class="memItemRight" valign="bottom"><b>set_rvs</b> (<a class="el" href="classbdm_1_1RV.html">RV</a> &drv, <a class="el" href="classbdm_1_1RV.html">RV</a> &urv)</td></tr> |
---|
[259] | 90 | |
---|
[397] | 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a7f17598fe2b458707ba932865beef5"></a><!-- doxytag: member="bdm::MexDS::write" ref="9a7f17598fe2b458707ba932865beef5" args="(vec &ut)" --> |
---|
[259] | 92 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5">write</a> (vec &ut)</td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accepts action variable and schedule it for application. <br></td></tr> |
---|
[397] | 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4349a043d00fd82c8d5f5c39673787e5"></a><!-- doxytag: member="bdm::MexDS::write" ref="4349a043d00fd82c8d5f5c39673787e5" args="(vec &ut, ivec &indices)" --> |
---|
[271] | 96 | void </td><td class="memItemRight" valign="bottom"><b>write</b> (vec &ut, ivec &indices)</td></tr> |
---|
[259] | 97 | |
---|
[397] | 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6bced13f84f6bf04449728817e049e1d"></a><!-- doxytag: member="bdm::MexDS::write" ref="6bced13f84f6bf04449728817e049e1d" args="(vec &ut, const ivec &indeces)" --> |
---|
[261] | 99 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#6bced13f84f6bf04449728817e049e1d">write</a> (vec &ut, const ivec &indeces)</td></tr> |
---|
| 100 | |
---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accepts action variables at specific indeces. <br></td></tr> |
---|
[397] | 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21916feb3e5ff960855c09b06a0d279b"></a><!-- doxytag: member="bdm::MexDS::step" ref="21916feb3e5ff960855c09b06a0d279b" args="()" --> |
---|
| 103 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#21916feb3e5ff960855c09b06a0d279b">step</a> ()</td></tr> |
---|
| 104 | |
---|
| 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Moves from <img class="formulaInl" alt="$ t $" src="form_12.png"> to <img class="formulaInl" alt="$ t+1 $" src="form_13.png">, i.e. perfroms the actions and reads response of the system. <br></td></tr> |
---|
| 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3c9e417d85052396fe74c164857ee67e"></a><!-- doxytag: member="bdm::MexDS::log_add" ref="3c9e417d85052396fe74c164857ee67e" args="(logger &L)" --> |
---|
[264] | 107 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e">log_add</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &L)</td></tr> |
---|
| 108 | |
---|
[269] | 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Register <a class="el" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> for logging into <a class="el" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> L. <br></td></tr> |
---|
[397] | 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e03d2c93cddd5c3a03107ddd3ae999cf"></a><!-- doxytag: member="bdm::MexDS::logit" ref="e03d2c93cddd5c3a03107ddd3ae999cf" args="(logger &L)" --> |
---|
[264] | 111 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#e03d2c93cddd5c3a03107ddd3ae999cf">logit</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &L)</td></tr> |
---|
| 112 | |
---|
[269] | 113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Register <a class="el" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> for logging into <a class="el" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> L. <br></td></tr> |
---|
[397] | 114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed2113851294ed96abe60fc3f05aa660"></a><!-- doxytag: member="bdm::MexDS::_drv" ref="ed2113851294ed96abe60fc3f05aa660" args="() const " --> |
---|
[269] | 115 | virtual <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#ed2113851294ed96abe60fc3f05aa660">_drv</a> () const </td></tr> |
---|
| 116 | |
---|
| 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[397] | 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6a9a375da64c82fc227bda3418a1f33"></a><!-- doxytag: member="bdm::MexDS::_urv" ref="a6a9a375da64c82fc227bda3418a1f33" args="() const " --> |
---|
[269] | 119 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#a6a9a375da64c82fc227bda3418a1f33">_urv</a> () const </td></tr> |
---|
| 120 | |
---|
| 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[397] | 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="821297dfd839d68691324f024e57252f"></a><!-- doxytag: member="bdm::MexDS::set_drv" ref="821297dfd839d68691324f024e57252f" args="(const RV &drv, const RV &urv)" --> |
---|
[353] | 123 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#821297dfd839d68691324f024e57252f">set_drv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &drv, const <a class="el" href="classbdm_1_1RV.html">RV</a> &urv)</td></tr> |
---|
| 124 | |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set random rvariables <br></td></tr> |
---|
[397] | 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::MexDS::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
[396] | 127 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
[353] | 128 | |
---|
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[397] | 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::MexDS::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
[396] | 131 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
[353] | 132 | |
---|
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[397] | 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::MexDS::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
[396] | 135 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 136 | |
---|
| 137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[259] | 138 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[397] | 139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a724f4cbfc32e79bacc044253234e260"></a><!-- doxytag: member="bdm::MexDS::Data" ref="a724f4cbfc32e79bacc044253234e260" args="" --> |
---|
[287] | 140 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260">Data</a></td></tr> |
---|
| 141 | |
---|
| 142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">internal matrix of data <br></td></tr> |
---|
[397] | 143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="681ee3831f68f4f20ed54e04e8b3f107"></a><!-- doxytag: member="bdm::MexDS::time" ref="681ee3831f68f4f20ed54e04e8b3f107" args="" --> |
---|
[287] | 144 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107">time</a></td></tr> |
---|
| 145 | |
---|
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">active column in the Data matrix <br></td></tr> |
---|
[397] | 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="865814d49913dcf672bb20a4334d3dc4"></a><!-- doxytag: member="bdm::MexDS::rowid" ref="865814d49913dcf672bb20a4334d3dc4" args="" --> |
---|
[287] | 148 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4">rowid</a></td></tr> |
---|
| 149 | |
---|
| 150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">vector of rows that are presented in Dt <br></td></tr> |
---|
[397] | 151 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="166522aed4d3b12d9b3c2afaf6673301"></a><!-- doxytag: member="bdm::MexDS::delays" ref="166522aed4d3b12d9b3c2afaf6673301" args="" --> |
---|
[287] | 152 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#166522aed4d3b12d9b3c2afaf6673301">delays</a></td></tr> |
---|
| 153 | |
---|
| 154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">vector of delays that are presented in Dt <br></td></tr> |
---|
[397] | 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f96cae44624e79638a91ec4f2c7c81a9"></a><!-- doxytag: member="bdm::MexDS::dtsize" ref="f96cae44624e79638a91ec4f2c7c81a9" args="" --> |
---|
[270] | 156 | int </td><td class="memItemRight" valign="bottom"><b>dtsize</b></td></tr> |
---|
| 157 | |
---|
[397] | 158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d7467046a0bd05bc992cc5e1bdedb983"></a><!-- doxytag: member="bdm::MexDS::utsize" ref="d7467046a0bd05bc992cc5e1bdedb983" args="" --> |
---|
[270] | 159 | int </td><td class="memItemRight" valign="bottom"><b>utsize</b></td></tr> |
---|
| 160 | |
---|
[397] | 161 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8db125ac35f3b8eeb773fc9a4cb45ec"></a><!-- doxytag: member="bdm::MexDS::Drv" ref="d8db125ac35f3b8eeb773fc9a4cb45ec" args="" --> |
---|
[259] | 162 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec">Drv</a></td></tr> |
---|
| 163 | |
---|
[270] | 164 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of data returned by <code><a class="el" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata()</a></code>. <br></td></tr> |
---|
[397] | 165 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ac5970128fd39f4f6226723cd1de702"></a><!-- doxytag: member="bdm::MexDS::Urv" ref="9ac5970128fd39f4f6226723cd1de702" args="" --> |
---|
[259] | 166 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702">Urv</a></td></tr> |
---|
| 167 | |
---|
[270] | 168 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of data witten by by <code><a class="el" href="classbdm_1_1DS.html#f5baeee8528e5e4c5c7a344b2e3f192a" title="Accepts action variable and schedule it for application.">write()</a></code>. <br></td></tr> |
---|
[397] | 169 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4b7bdb9d98a11ab587aa0ad803bb867"></a><!-- doxytag: member="bdm::MexDS::L_dt" ref="b4b7bdb9d98a11ab587aa0ad803bb867" args="" --> |
---|
[264] | 170 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867">L_dt</a></td></tr> |
---|
| 171 | |
---|
| 172 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Remember its own index in Logger L. <br></td></tr> |
---|
[397] | 173 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b56b74ec21485846ccfad461f33b0e7a"></a><!-- doxytag: member="bdm::MexDS::L_ut" ref="b56b74ec21485846ccfad461f33b0e7a" args="" --> |
---|
[264] | 174 | int </td><td class="memItemRight" valign="bottom"><b>L_ut</b></td></tr> |
---|
| 175 | |
---|
[259] | 176 | </table> |
---|
[290] | 177 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 178 | Memory storage of off-line data column-wise. |
---|
| 179 | <p> |
---|
[397] | 180 | The 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_15.png">. Access to this matrix is via indices <code>rowid</code> and <code>delays</code>.<p> |
---|
| 181 | The data can be loaded from a file. <hr>The documentation for this class was generated from the following file:<ul> |
---|
[472] | 182 | <li><a class="el" href="mex__datasource_8h_source.html">mex_datasource.h</a></ul> |
---|
[259] | 183 | </div> |
---|
[472] | 184 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:07:00 2009 for mixpp by |
---|
[259] | 185 | <a href="http://www.doxygen.org/index.html"> |
---|
[472] | 186 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
---|
[259] | 187 | </body> |
---|
| 188 | </html> |
---|