[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"> |
---|
[287] | 3 | <title>mixpp: bdm::FileDS 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> |
---|
[398] | 7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
[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> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[290] | 55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 57 | </ul> |
---|
| 58 | </div> |
---|
| 59 | <div class="tabs"> |
---|
| 60 | <ul> |
---|
| 61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 65 | </ul> |
---|
| 66 | </div> |
---|
[287] | 67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1FileDS.html">FileDS</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[397] | 71 | <h1>bdm::FileDS Class Reference</h1><!-- doxytag: class="bdm::FileDS" --><!-- doxytag: inherits="bdm::MemDS" --><code>#include <<a class="el" href="datasources_8h-source.html">datasources.h</a>></code> |
---|
[259] | 72 | <p> |
---|
| 73 | |
---|
| 74 | <p> |
---|
[290] | 75 | <a href="classbdm_1_1FileDS-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 76 | <tr><td></td></tr> |
---|
| 77 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[287] | 78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0bf36650e9d1af2d0743ffe8a3fcff14"></a><!-- doxytag: member="bdm::FileDS::getdata" ref="0bf36650e9d1af2d0743ffe8a3fcff14" args="(vec &dt)" --> |
---|
| 79 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1FileDS.html#0bf36650e9d1af2d0743ffe8a3fcff14">getdata</a> (vec &dt)</td></tr> |
---|
| 80 | |
---|
[264] | 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns full vector of observed data=[output, input]. <br></td></tr> |
---|
[287] | 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed680c40e53fd838c044dc223421c0fe"></a><!-- doxytag: member="bdm::FileDS::getdata" ref="ed680c40e53fd838c044dc223421c0fe" args="(vec &dt, const ivec &indeces)" --> |
---|
| 83 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1FileDS.html#ed680c40e53fd838c044dc223421c0fe">getdata</a> (vec &dt, const ivec &indeces)</td></tr> |
---|
[259] | 84 | |
---|
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns data records at indeces. <br></td></tr> |
---|
[287] | 86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6af63065097147b390e684a7842a26a"></a><!-- doxytag: member="bdm::FileDS::ndat" ref="a6af63065097147b390e684a7842a26a" args="()" --> |
---|
| 87 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1FileDS.html#a6af63065097147b390e684a7842a26a">ndat</a> ()</td></tr> |
---|
| 88 | |
---|
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns number of data in the file; <br></td></tr> |
---|
[353] | 90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="998f590eeddee97ae6918671e40756b8"></a><!-- doxytag: member="bdm::FileDS::log_add" ref="998f590eeddee97ae6918671e40756b8" args="(logger &L)" --> |
---|
| 91 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1FileDS.html#998f590eeddee97ae6918671e40756b8">log_add</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &L)</td></tr> |
---|
| 92 | |
---|
| 93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">no sense to log this type <br></td></tr> |
---|
| 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="59d44ef34a523127dd79c076461c43b6"></a><!-- doxytag: member="bdm::FileDS::logit" ref="59d44ef34a523127dd79c076461c43b6" args="(logger &L)" --> |
---|
| 95 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1FileDS.html#59d44ef34a523127dd79c076461c43b6">logit</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> &L)</td></tr> |
---|
| 96 | |
---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">no sense to log this type <br></td></tr> |
---|
[287] | 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e6428f2778254e8304fb5a799b7f815a"></a><!-- doxytag: member="bdm::FileDS::set_rvs" ref="e6428f2778254e8304fb5a799b7f815a" args="(RV &drv, RV &urv)" --> |
---|
[271] | 99 | 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] | 100 | |
---|
[287] | 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a7f17598fe2b458707ba932865beef5"></a><!-- doxytag: member="bdm::FileDS::write" ref="9a7f17598fe2b458707ba932865beef5" args="(vec &ut)" --> |
---|
[259] | 102 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5">write</a> (vec &ut)</td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accepts action variable and schedule it for application. <br></td></tr> |
---|
[287] | 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4349a043d00fd82c8d5f5c39673787e5"></a><!-- doxytag: member="bdm::FileDS::write" ref="4349a043d00fd82c8d5f5c39673787e5" args="(vec &ut, ivec &indices)" --> |
---|
[271] | 106 | void </td><td class="memItemRight" valign="bottom"><b>write</b> (vec &ut, ivec &indices)</td></tr> |
---|
[259] | 107 | |
---|
[287] | 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6bced13f84f6bf04449728817e049e1d"></a><!-- doxytag: member="bdm::FileDS::write" ref="6bced13f84f6bf04449728817e049e1d" args="(vec &ut, const ivec &indeces)" --> |
---|
| 109 | 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> |
---|
| 110 | |
---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Accepts action variables at specific indeces. <br></td></tr> |
---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21916feb3e5ff960855c09b06a0d279b"></a><!-- doxytag: member="bdm::FileDS::step" ref="21916feb3e5ff960855c09b06a0d279b" args="()" --> |
---|
[259] | 113 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#21916feb3e5ff960855c09b06a0d279b">step</a> ()</td></tr> |
---|
| 114 | |
---|
[397] | 115 | <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> |
---|
[287] | 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed2113851294ed96abe60fc3f05aa660"></a><!-- doxytag: member="bdm::FileDS::_drv" ref="ed2113851294ed96abe60fc3f05aa660" args="() const " --> |
---|
[269] | 117 | 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> |
---|
| 118 | |
---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[287] | 120 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6a9a375da64c82fc227bda3418a1f33"></a><!-- doxytag: member="bdm::FileDS::_urv" ref="a6a9a375da64c82fc227bda3418a1f33" args="() const " --> |
---|
[269] | 121 | 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> |
---|
| 122 | |
---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[353] | 124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="821297dfd839d68691324f024e57252f"></a><!-- doxytag: member="bdm::FileDS::set_drv" ref="821297dfd839d68691324f024e57252f" args="(const RV &drv, const RV &urv)" --> |
---|
| 125 | 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> |
---|
| 126 | |
---|
| 127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set random rvariables <br></td></tr> |
---|
[396] | 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::FileDS::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 129 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
[353] | 130 | |
---|
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[396] | 132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0551e3121091c5199bf4413b50522176"></a><!-- doxytag: member="bdm::FileDS::from_setting" ref="0551e3121091c5199bf4413b50522176" args="(const Setting &set)" --> |
---|
| 133 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">from_setting</a> (const Setting &set)</td></tr> |
---|
[353] | 134 | |
---|
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method arrange instance properties according the data stored in the Setting structure. <br></td></tr> |
---|
[396] | 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::FileDS::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 137 | 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] | 138 | |
---|
| 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[396] | 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::FileDS::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 141 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 142 | |
---|
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[259] | 144 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[287] | 145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a724f4cbfc32e79bacc044253234e260"></a><!-- doxytag: member="bdm::FileDS::Data" ref="a724f4cbfc32e79bacc044253234e260" args="" --> |
---|
| 146 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260">Data</a></td></tr> |
---|
| 147 | |
---|
| 148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">internal matrix of data <br></td></tr> |
---|
| 149 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="681ee3831f68f4f20ed54e04e8b3f107"></a><!-- doxytag: member="bdm::FileDS::time" ref="681ee3831f68f4f20ed54e04e8b3f107" args="" --> |
---|
| 150 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107">time</a></td></tr> |
---|
| 151 | |
---|
| 152 | <tr><td class="mdescLeft"> </td><td class="mdescRight">active column in the Data matrix <br></td></tr> |
---|
| 153 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="865814d49913dcf672bb20a4334d3dc4"></a><!-- doxytag: member="bdm::FileDS::rowid" ref="865814d49913dcf672bb20a4334d3dc4" args="" --> |
---|
| 154 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4">rowid</a></td></tr> |
---|
| 155 | |
---|
| 156 | <tr><td class="mdescLeft"> </td><td class="mdescRight">vector of rows that are presented in Dt <br></td></tr> |
---|
| 157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="166522aed4d3b12d9b3c2afaf6673301"></a><!-- doxytag: member="bdm::FileDS::delays" ref="166522aed4d3b12d9b3c2afaf6673301" args="" --> |
---|
| 158 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1MemDS.html#166522aed4d3b12d9b3c2afaf6673301">delays</a></td></tr> |
---|
| 159 | |
---|
| 160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">vector of delays that are presented in Dt <br></td></tr> |
---|
| 161 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f96cae44624e79638a91ec4f2c7c81a9"></a><!-- doxytag: member="bdm::FileDS::dtsize" ref="f96cae44624e79638a91ec4f2c7c81a9" args="" --> |
---|
[270] | 162 | int </td><td class="memItemRight" valign="bottom"><b>dtsize</b></td></tr> |
---|
| 163 | |
---|
[287] | 164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d7467046a0bd05bc992cc5e1bdedb983"></a><!-- doxytag: member="bdm::FileDS::utsize" ref="d7467046a0bd05bc992cc5e1bdedb983" args="" --> |
---|
[270] | 165 | int </td><td class="memItemRight" valign="bottom"><b>utsize</b></td></tr> |
---|
| 166 | |
---|
[287] | 167 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8db125ac35f3b8eeb773fc9a4cb45ec"></a><!-- doxytag: member="bdm::FileDS::Drv" ref="d8db125ac35f3b8eeb773fc9a4cb45ec" args="" --> |
---|
[259] | 168 | <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> |
---|
| 169 | |
---|
[270] | 170 | <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> |
---|
[287] | 171 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ac5970128fd39f4f6226723cd1de702"></a><!-- doxytag: member="bdm::FileDS::Urv" ref="9ac5970128fd39f4f6226723cd1de702" args="" --> |
---|
[259] | 172 | <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> |
---|
| 173 | |
---|
[270] | 174 | <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> |
---|
[287] | 175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4b7bdb9d98a11ab587aa0ad803bb867"></a><!-- doxytag: member="bdm::FileDS::L_dt" ref="b4b7bdb9d98a11ab587aa0ad803bb867" args="" --> |
---|
[264] | 176 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867">L_dt</a></td></tr> |
---|
| 177 | |
---|
| 178 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Remember its own index in Logger L. <br></td></tr> |
---|
[287] | 179 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b56b74ec21485846ccfad461f33b0e7a"></a><!-- doxytag: member="bdm::FileDS::L_ut" ref="b56b74ec21485846ccfad461f33b0e7a" args="" --> |
---|
[264] | 180 | int </td><td class="memItemRight" valign="bottom"><b>L_ut</b></td></tr> |
---|
| 181 | |
---|
[259] | 182 | </table> |
---|
[290] | 183 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
[312] | 184 | Pseudovirtual class for reading data from files <hr>The documentation for this class was generated from the following file:<ul> |
---|
[397] | 185 | <li><a class="el" href="datasources_8h-source.html">datasources.h</a></ul> |
---|
| 186 | </div> |
---|
[398] | 187 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 24 21:53:05 2009 for mixpp by |
---|
[259] | 188 | <a href="http://www.doxygen.org/index.html"> |
---|
[398] | 189 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 190 | </body> |
---|
| 191 | </html> |
---|