[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"> |
---|
| 3 | <title>mixpp: bdm::RV Class Reference</title> |
---|
| 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> |
---|
[290] | 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> |
---|
[271] | 67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1RV.html">RV</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[290] | 71 | <h1>bdm::RV Class Reference</h1><!-- doxytag: class="bdm::RV" --><!-- doxytag: inherits="bdm::bdmroot" -->Class representing variables, most often random variables. |
---|
| 72 | <a href="#_details">More...</a> |
---|
[259] | 73 | <p> |
---|
[290] | 74 | <code>#include <<a class="el" href="libBM_8h-source.html">libBM.h</a>></code> |
---|
| 75 | <p> |
---|
[259] | 76 | |
---|
| 77 | <p> |
---|
[290] | 78 | <a href="classbdm_1_1RV-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 79 | <tr><td></td></tr> |
---|
| 80 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[368] | 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#d82e3a60503f8d586a05444e5ac4da95">from_setting</a> (const Setting &root)</td></tr> |
---|
[353] | 82 | |
---|
[368] | 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1UI.html" title="This class serves to load and/or save DOMElements into/from files stored on a hard-disk...">UI</a> for class <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> (description of data vectors). <a href="#d82e3a60503f8d586a05444e5ac4da95"></a><br></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e47a8bd9337478fa4e46d5a2a4336f9a"></a><!-- doxytag: member="bdm::RV::to_string" ref="e47a8bd9337478fa4e46d5a2a4336f9a" args="()" --> |
---|
| 85 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#e47a8bd9337478fa4e46d5a2a4336f9a">to_string</a> ()</td></tr> |
---|
| 86 | |
---|
[353] | 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[354] | 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dd74cb898b22b95b7ee528e040a07618"></a><!-- doxytag: member="bdm::RV::to_setting" ref="dd74cb898b22b95b7ee528e040a07618" args="(Setting &root) const " --> |
---|
| 89 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#dd74cb898b22b95b7ee528e040a07618">to_setting</a> (Setting &root) const </td></tr> |
---|
[353] | 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[368] | 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8cc21ea15fc723065eed5f3100757a5"></a><!-- doxytag: member="bdm::RV::validate" ref="d8cc21ea15fc723065eed5f3100757a5" args="()" --> |
---|
| 93 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#d8cc21ea15fc723065eed5f3100757a5">validate</a> ()</td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[270] | 96 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
[259] | 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3d93da01a64dab31074b25b7d93e5eae"></a><!-- doxytag: member="bdm::RV::RV" ref="3d93da01a64dab31074b25b7d93e5eae" args="(Array< std::string > in_names, ivec in_sizes, ivec in_times)" --> |
---|
[354] | 98 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#3d93da01a64dab31074b25b7d93e5eae">RV</a> (Array< std::string > in_names, ivec in_sizes, ivec in_times)</td></tr> |
---|
[259] | 99 | |
---|
| 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <br></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5bd1bd9ec51b91578ecc83a6b2398a20"></a><!-- doxytag: member="bdm::RV::RV" ref="5bd1bd9ec51b91578ecc83a6b2398a20" args="(Array< std::string > in_names, ivec in_sizes)" --> |
---|
[354] | 102 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#5bd1bd9ec51b91578ecc83a6b2398a20">RV</a> (Array< std::string > in_names, ivec in_sizes)</td></tr> |
---|
[259] | 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with times=0. <br></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a222dfef569e8f123180d40fde97c1cd"></a><!-- doxytag: member="bdm::RV::RV" ref="a222dfef569e8f123180d40fde97c1cd" args="(Array< std::string > in_names)" --> |
---|
[354] | 106 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a222dfef569e8f123180d40fde97c1cd">RV</a> (Array< std::string > in_names)</td></tr> |
---|
[259] | 107 | |
---|
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with sizes=1, times=0. <br></td></tr> |
---|
| 109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e319ca900261a5005a9b4b353ec16412"></a><!-- doxytag: member="bdm::RV::RV" ref="e319ca900261a5005a9b4b353ec16412" args="()" --> |
---|
| 110 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412">RV</a> ()</td></tr> |
---|
| 111 | |
---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor of empty <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>. <br></td></tr> |
---|
[270] | 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a990e0f30c0e34f04c14260ab8ba5b5f"></a><!-- doxytag: member="bdm::RV::RV" ref="a990e0f30c0e34f04c14260ab8ba5b5f" args="(string name, int sz, int tm=0)" --> |
---|
| 114 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a990e0f30c0e34f04c14260ab8ba5b5f">RV</a> (string name, int sz, int tm=0)</td></tr> |
---|
[269] | 115 | |
---|
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor of a single <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> with given id. <br></td></tr> |
---|
[270] | 117 | <tr><td colspan="2"><div class="groupHeader">Algebra on Random Variables</div></td></tr> |
---|
[259] | 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#1367055b2608ad9d50d01a2da6cec869">findself</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
---|
| 119 | |
---|
[271] | 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Find indices of self in another rv,. <a href="#1367055b2608ad9d50d01a2da6cec869"></a><br></td></tr> |
---|
[259] | 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3bb011af88ae98f5c97955bb2c95cfee"></a><!-- doxytag: member="bdm::RV::equal" ref="3bb011af88ae98f5c97955bb2c95cfee" args="(const RV &rv2) const " --> |
---|
| 122 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#3bb011af88ae98f5c97955bb2c95cfee">equal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
---|
| 123 | |
---|
| 124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare if <code>rv2</code> is identical to this <code><a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a></code>. <br></td></tr> |
---|
| 125 | <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#87841b5ee43997b79789c0c22047e224">add</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2)</td></tr> |
---|
| 126 | |
---|
| 127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add (concat) another variable to the current one,. <a href="#87841b5ee43997b79789c0c22047e224"></a><br></td></tr> |
---|
| 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aec44dabdf0a6d90fbae95e1356eda39"></a><!-- doxytag: member="bdm::RV::subt" ref="aec44dabdf0a6d90fbae95e1356eda39" args="(const RV &rv2) const " --> |
---|
| 129 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aec44dabdf0a6d90fbae95e1356eda39">subt</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
---|
| 130 | |
---|
| 131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtract another variable from the current one. <br></td></tr> |
---|
| 132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c0c04ab99ded62e1e05bcefb151ebeb9"></a><!-- doxytag: member="bdm::RV::subselect" ref="c0c04ab99ded62e1e05bcefb151ebeb9" args="(const ivec &ind) const " --> |
---|
| 133 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9">subselect</a> (const ivec &ind) const </td></tr> |
---|
| 134 | |
---|
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indeces ind. <br></td></tr> |
---|
| 136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6f3daf0f857fff53a1c0a445fe160966"></a><!-- doxytag: member="bdm::RV::operator()" ref="6f3daf0f857fff53a1c0a445fe160966" args="(const ivec &ind) const " --> |
---|
| 137 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#6f3daf0f857fff53a1c0a445fe160966">operator()</a> (const ivec &ind) const </td></tr> |
---|
| 138 | |
---|
| 139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indeces ind. <br></td></tr> |
---|
[271] | 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="452fb5f7ab1eafe17932bf9f458d0415"></a><!-- doxytag: member="bdm::RV::operator()" ref="452fb5f7ab1eafe17932bf9f458d0415" args="(int di1, int di2) const " --> |
---|
| 141 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#452fb5f7ab1eafe17932bf9f458d0415">operator()</a> (int di1, int di2) const </td></tr> |
---|
| 142 | |
---|
| 143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select from data vector starting at di1 to di2. <br></td></tr> |
---|
[259] | 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd77cb0899f7fba1d0e34396137b7f1f"></a><!-- doxytag: member="bdm::RV::t" ref="bd77cb0899f7fba1d0e34396137b7f1f" args="(int delta)" --> |
---|
| 145 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#bd77cb0899f7fba1d0e34396137b7f1f">t</a> (int delta)</td></tr> |
---|
| 146 | |
---|
| 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shift <code>time</code> shifted by delta. <br></td></tr> |
---|
[270] | 148 | <tr><td colspan="2"><div class="groupHeader">Relation to vectors</div></td></tr> |
---|
[259] | 149 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8bdd7f4072749c7cc864b78a418ca388"></a><!-- doxytag: member="bdm::RV::tostr" ref="8bdd7f4072749c7cc864b78a418ca388" args="() const " --> |
---|
| 150 | <a class="el" href="classbdm_1_1str.html">str</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#8bdd7f4072749c7cc864b78a418ca388">tostr</a> () const </td></tr> |
---|
| 151 | |
---|
[368] | 152 | <tr><td class="mdescLeft"> </td><td class="mdescRight">generate <code><a class="el" href="classbdm_1_1str.html" title="Structure of RV (used internally), i.e. expanded RVs - TODO tak proc je ve verejnem...">str</a></code> from rv, by expanding sizes TODO to_string.. <br></td></tr> |
---|
[259] | 153 | <tr><td class="memItemLeft" nowrap align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55">dataind</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &crv) const </td></tr> |
---|
| 154 | |
---|
| 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#c92b92ecfd95c89be13ab3e6cb6855c1">dataind</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2, ivec &selfi, ivec &rv2i) const </td></tr> |
---|
| 156 | |
---|
[269] | 157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a5c5aeeaf39299d07763377b05a8241"></a><!-- doxytag: member="bdm::RV::mint" ref="9a5c5aeeaf39299d07763377b05a8241" args="() const " --> |
---|
| 158 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241">mint</a> () const </td></tr> |
---|
[261] | 159 | |
---|
| 160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum time-offset. <br></td></tr> |
---|
[259] | 161 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
[270] | 162 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0cfe477965243a89eb87a06b024e2fcb"></a><!-- doxytag: member="bdm::RV::dsize" ref="0cfe477965243a89eb87a06b024e2fcb" args="" --> |
---|
| 163 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb">dsize</a></td></tr> |
---|
[259] | 164 | |
---|
[270] | 165 | <tr><td class="mdescLeft"> </td><td class="mdescRight">size of the data vector <br></td></tr> |
---|
[259] | 166 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b11bfdceb831ed30d33b852dd4a6b385"></a><!-- doxytag: member="bdm::RV::len" ref="b11bfdceb831ed30d33b852dd4a6b385" args="" --> |
---|
| 167 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385">len</a></td></tr> |
---|
| 168 | |
---|
[270] | 169 | <tr><td class="mdescLeft"> </td><td class="mdescRight">number of individual rvs <br></td></tr> |
---|
[259] | 170 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a9a4769ab5a322495bea0cd8091500b"></a><!-- doxytag: member="bdm::RV::ids" ref="0a9a4769ab5a322495bea0cd8091500b" args="" --> |
---|
| 171 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b">ids</a></td></tr> |
---|
| 172 | |
---|
| 173 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of unique IDs. <br></td></tr> |
---|
| 174 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef6703854820bbf61736738f1bac6896"></a><!-- doxytag: member="bdm::RV::times" ref="ef6703854820bbf61736738f1bac6896" args="" --> |
---|
| 175 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896">times</a></td></tr> |
---|
| 176 | |
---|
| 177 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of shifts from current time. <br></td></tr> |
---|
[290] | 178 | <tr><td colspan="2"><br><h2>Access functions</h2></td></tr> |
---|
| 179 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de30156104f61d86c94f758861418089"></a><!-- doxytag: member="bdm::RV::_dsize" ref="de30156104f61d86c94f758861418089" args="() const " --> |
---|
| 180 | int </td><td class="memItemRight" valign="bottom"><b>_dsize</b> () const </td></tr> |
---|
| 181 | |
---|
| 182 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39f9b44752376f07e346579b5ff8cbbd"></a><!-- doxytag: member="bdm::RV::countsize" ref="39f9b44752376f07e346579b5ff8cbbd" args="() const " --> |
---|
| 183 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#39f9b44752376f07e346579b5ff8cbbd">countsize</a> () const </td></tr> |
---|
| 184 | |
---|
| 185 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Recount size of the corresponding data vector. <br></td></tr> |
---|
| 186 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="412d43294bac38fa1804829e38fa4eaf"></a><!-- doxytag: member="bdm::RV::cumsizes" ref="412d43294bac38fa1804829e38fa4eaf" args="() const " --> |
---|
| 187 | ivec </td><td class="memItemRight" valign="bottom"><b>cumsizes</b> () const </td></tr> |
---|
| 188 | |
---|
| 189 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e9ec8c3e756651ff352ab5e3d3acda4b"></a><!-- doxytag: member="bdm::RV::length" ref="e9ec8c3e756651ff352ab5e3d3acda4b" args="() const " --> |
---|
| 190 | int </td><td class="memItemRight" valign="bottom"><b>length</b> () const </td></tr> |
---|
| 191 | |
---|
| 192 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5900b42f778129a9e56008a1e8e489c8"></a><!-- doxytag: member="bdm::RV::id" ref="5900b42f778129a9e56008a1e8e489c8" args="(int at) const " --> |
---|
| 193 | int </td><td class="memItemRight" valign="bottom"><b>id</b> (int at) const </td></tr> |
---|
| 194 | |
---|
| 195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bde62551a3fc8f3f83c569860b73f705"></a><!-- doxytag: member="bdm::RV::size" ref="bde62551a3fc8f3f83c569860b73f705" args="(int at) const " --> |
---|
| 196 | int </td><td class="memItemRight" valign="bottom"><b>size</b> (int at) const </td></tr> |
---|
| 197 | |
---|
| 198 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c94373d3a760919b4b3eee58b42e3a45"></a><!-- doxytag: member="bdm::RV::time" ref="c94373d3a760919b4b3eee58b42e3a45" args="(int at) const " --> |
---|
| 199 | int </td><td class="memItemRight" valign="bottom"><b>time</b> (int at) const </td></tr> |
---|
| 200 | |
---|
| 201 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74c6ec8eb9c1dd69ad1d986eaee16dc2"></a><!-- doxytag: member="bdm::RV::name" ref="74c6ec8eb9c1dd69ad1d986eaee16dc2" args="(int at) const " --> |
---|
| 202 | std::string </td><td class="memItemRight" valign="bottom"><b>name</b> (int at) const </td></tr> |
---|
| 203 | |
---|
| 204 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fb2892d12dc978549e9491aed327dfd4"></a><!-- doxytag: member="bdm::RV::set_time" ref="fb2892d12dc978549e9491aed327dfd4" args="(int at, int time0)" --> |
---|
| 205 | void </td><td class="memItemRight" valign="bottom"><b>set_time</b> (int at, int time0)</td></tr> |
---|
| 206 | |
---|
| 207 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cad6f15535d10437f6690cb4492176a8"></a><!-- doxytag: member="bdm::RV::operator<<" ref="cad6f15535d10437f6690cb4492176a8" args="(std::ostream &os, const RV &rv)" --> |
---|
| 208 | std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#cad6f15535d10437f6690cb4492176a8">operator<<</a> (std::ostream &os, const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv)</td></tr> |
---|
| 209 | |
---|
| 210 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Printing output e.g. for debugging. <br></td></tr> |
---|
[259] | 211 | </table> |
---|
[290] | 212 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 213 | Class representing variables, most often random variables. |
---|
| 214 | <p> |
---|
| 215 | The purpose of this class is to decribe a vector of data. Such description is used for connecting various vectors between each other, see class <a class="el" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a>.<p> |
---|
| 216 | The class is implemented using global variables to assure uniqueness of description:<p> |
---|
| 217 | In is a vector <div align="center"> |
---|
[354] | 218 | <img src="inline_dotgraph_2.dot.png" alt="inline_dotgraph_2.dot" border="0" usemap="#inline_dotgraph_2.dot.map"> |
---|
| 219 | <map name="inline_dotgraph_2.dot.map"></map> |
---|
[290] | 220 | </div> |
---|
| 221 | <hr><h2>Member Function Documentation</h2> |
---|
| 222 | <a class="anchor" name="87841b5ee43997b79789c0c22047e224"></a><!-- doxytag: member="bdm::RV::add" ref="87841b5ee43997b79789c0c22047e224" args="(const RV &rv2)" --> |
---|
[259] | 223 | <div class="memitem"> |
---|
| 224 | <div class="memproto"> |
---|
| 225 | <table class="memname"> |
---|
| 226 | <tr> |
---|
[290] | 227 | <td class="memname">bool bdm::RV::add </td> |
---|
[259] | 228 | <td>(</td> |
---|
| 229 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
| 230 | <td class="paramname"> <em>rv2</em> </td> |
---|
| 231 | <td> ) </td> |
---|
[290] | 232 | <td></td> |
---|
[259] | 233 | </tr> |
---|
| 234 | </table> |
---|
| 235 | </div> |
---|
| 236 | <div class="memdoc"> |
---|
| 237 | |
---|
| 238 | <p> |
---|
[290] | 239 | Add (concat) another variable to the current one,. |
---|
[259] | 240 | <p> |
---|
[290] | 241 | <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if all rv2 were added, false if rv2 is in conflict </dd></dl> |
---|
[259] | 242 | |
---|
[368] | 243 | <p>References <a class="el" href="libBM_8cpp-source.html#l00045">countsize()</a>, <a class="el" href="libBM_8h-source.html#l00087">dsize</a>, <a class="el" href="libBM_8cpp-source.html#l00200">findself()</a>, <a class="el" href="libBM_8h-source.html#l00091">ids</a>, <a class="el" href="libBM_8h-source.html#l00089">len</a>, and <a class="el" href="libBM_8h-source.html#l00093">times</a>.</p> |
---|
[259] | 244 | |
---|
[368] | 245 | <p>Referenced by <a class="el" href="libBM_8cpp-source.html#l00256">bdm::compositepdf::getrv()</a>, <a class="el" href="merger_8h-source.html#l00060">bdm::merger::merger()</a>, <a class="el" href="libDS_8h-source.html#l00168">bdm::ArxDS::set_drv()</a>, and <a class="el" href="libBM_8cpp-source.html#l00267">bdm::compositepdf::setrvc()</a>.</p> |
---|
[259] | 246 | |
---|
| 247 | </div> |
---|
| 248 | </div><p> |
---|
[290] | 249 | <a class="anchor" name="c92b92ecfd95c89be13ab3e6cb6855c1"></a><!-- doxytag: member="bdm::RV::dataind" ref="c92b92ecfd95c89be13ab3e6cb6855c1" args="(const RV &rv2, ivec &selfi, ivec &rv2i) const " --> |
---|
[259] | 250 | <div class="memitem"> |
---|
| 251 | <div class="memproto"> |
---|
| 252 | <table class="memname"> |
---|
| 253 | <tr> |
---|
[290] | 254 | <td class="memname">void bdm::RV::dataind </td> |
---|
[259] | 255 | <td>(</td> |
---|
| 256 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
[290] | 257 | <td class="paramname"> <em>rv2</em>, </td> |
---|
| 258 | </tr> |
---|
| 259 | <tr> |
---|
| 260 | <td class="paramkey"></td> |
---|
[259] | 261 | <td></td> |
---|
[290] | 262 | <td class="paramtype">ivec & </td> |
---|
| 263 | <td class="paramname"> <em>selfi</em>, </td> |
---|
[259] | 264 | </tr> |
---|
[290] | 265 | <tr> |
---|
| 266 | <td class="paramkey"></td> |
---|
| 267 | <td></td> |
---|
| 268 | <td class="paramtype">ivec & </td> |
---|
| 269 | <td class="paramname"> <em>rv2i</em></td><td> </td> |
---|
| 270 | </tr> |
---|
| 271 | <tr> |
---|
| 272 | <td></td> |
---|
| 273 | <td>)</td> |
---|
| 274 | <td></td><td></td><td> const</td> |
---|
| 275 | </tr> |
---|
[259] | 276 | </table> |
---|
| 277 | </div> |
---|
| 278 | <div class="memdoc"> |
---|
| 279 | |
---|
| 280 | <p> |
---|
[290] | 281 | generate mutual indeces when copying data betwenn self and crv. Data are copied via: data_of_this(selfi) = data_of_rv2(rv2i) |
---|
[368] | 282 | <p>References <a class="el" href="libBM_8cpp-source.html#l00200">findself()</a>, <a class="el" href="libBM_8h-source.html#l00091">ids</a>, <a class="el" href="libBM_8h-source.html#l00037">bdm::str::ids</a>, <a class="el" href="libBM_8h-source.html#l00124">length()</a>, <a class="el" href="libBM_8h-source.html#l00093">times</a>, <a class="el" href="libBM_8h-source.html#l00039">bdm::str::times</a>, and <a class="el" href="libBM_8cpp-source.html#l00133">tostr()</a>.</p> |
---|
[259] | 283 | |
---|
| 284 | </div> |
---|
| 285 | </div><p> |
---|
| 286 | <a class="anchor" name="cbebdb5e0d30101a6eb63550ef701c55"></a><!-- doxytag: member="bdm::RV::dataind" ref="cbebdb5e0d30101a6eb63550ef701c55" args="(const RV &crv) const " --> |
---|
| 287 | <div class="memitem"> |
---|
| 288 | <div class="memproto"> |
---|
| 289 | <table class="memname"> |
---|
| 290 | <tr> |
---|
| 291 | <td class="memname">ivec bdm::RV::dataind </td> |
---|
| 292 | <td>(</td> |
---|
| 293 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
| 294 | <td class="paramname"> <em>crv</em> </td> |
---|
| 295 | <td> ) </td> |
---|
| 296 | <td> const</td> |
---|
| 297 | </tr> |
---|
| 298 | </table> |
---|
| 299 | </div> |
---|
| 300 | <div class="memdoc"> |
---|
| 301 | |
---|
| 302 | <p> |
---|
| 303 | when this rv is a part of bigger rv, this function returns indeces of self in the data vector of the bigger crv. Then, data can be copied via: data_of_this = cdata(ind); |
---|
[368] | 304 | <p>References <a class="el" href="libBM_8h-source.html#l00120">_dsize()</a>, <a class="el" href="libBM_8h-source.html#l00087">dsize</a>, <a class="el" href="libBM_8h-source.html#l00091">ids</a>, <a class="el" href="libBM_8h-source.html#l00037">bdm::str::ids</a>, <a class="el" href="libBM_8h-source.html#l00093">times</a>, <a class="el" href="libBM_8h-source.html#l00039">bdm::str::times</a>, and <a class="el" href="libBM_8cpp-source.html#l00133">tostr()</a>.</p> |
---|
[259] | 305 | |
---|
[368] | 306 | <p>Referenced by <a class="el" href="libEF_8h-source.html#l01214">bdm::enorm< sq_T >::condition()</a>, <a class="el" href="libEF_8h-source.html#l01200">bdm::enorm< sq_T >::marginal()</a>, <a class="el" href="libBM_8h-source.html#l00453">bdm::datalink_m2e::set_connection()</a>, and <a class="el" href="libBM_8h-source.html#l00412">bdm::datalink::set_connection()</a>.</p> |
---|
[259] | 307 | |
---|
| 308 | </div> |
---|
| 309 | </div><p> |
---|
[290] | 310 | <a class="anchor" name="1367055b2608ad9d50d01a2da6cec869"></a><!-- doxytag: member="bdm::RV::findself" ref="1367055b2608ad9d50d01a2da6cec869" args="(const RV &rv2) const " --> |
---|
[259] | 311 | <div class="memitem"> |
---|
| 312 | <div class="memproto"> |
---|
| 313 | <table class="memname"> |
---|
| 314 | <tr> |
---|
[290] | 315 | <td class="memname">ivec bdm::RV::findself </td> |
---|
[259] | 316 | <td>(</td> |
---|
| 317 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
[290] | 318 | <td class="paramname"> <em>rv2</em> </td> |
---|
| 319 | <td> ) </td> |
---|
| 320 | <td> const</td> |
---|
[259] | 321 | </tr> |
---|
| 322 | </table> |
---|
| 323 | </div> |
---|
| 324 | <div class="memdoc"> |
---|
| 325 | |
---|
| 326 | <p> |
---|
[290] | 327 | Find indices of self in another rv,. |
---|
| 328 | <p> |
---|
| 329 | <dl class="return" compact><dt><b>Returns:</b></dt><dd>ivec of the same size as self. </dd></dl> |
---|
[259] | 330 | |
---|
[368] | 331 | <p>References <a class="el" href="libBM_8h-source.html#l00091">ids</a>, <a class="el" href="libBM_8h-source.html#l00124">length()</a>, and <a class="el" href="libBM_8h-source.html#l00093">times</a>.</p> |
---|
[290] | 332 | |
---|
[368] | 333 | <p>Referenced by <a class="el" href="libBM_8cpp-source.html#l00078">add()</a>, <a class="el" href="libBM_8cpp-source.html#l00162">dataind()</a>, and <a class="el" href="libBM_8cpp-source.html#l00193">subt()</a>.</p> |
---|
[290] | 334 | |
---|
[259] | 335 | </div> |
---|
| 336 | </div><p> |
---|
[368] | 337 | <a class="anchor" name="d82e3a60503f8d586a05444e5ac4da95"></a><!-- doxytag: member="bdm::RV::from_setting" ref="d82e3a60503f8d586a05444e5ac4da95" args="(const Setting &root)" --> |
---|
| 338 | <div class="memitem"> |
---|
| 339 | <div class="memproto"> |
---|
| 340 | <table class="memname"> |
---|
| 341 | <tr> |
---|
| 342 | <td class="memname">void bdm::RV::from_setting </td> |
---|
| 343 | <td>(</td> |
---|
| 344 | <td class="paramtype">const Setting & </td> |
---|
| 345 | <td class="paramname"> <em>root</em> </td> |
---|
| 346 | <td> ) </td> |
---|
| 347 | <td><code> [virtual]</code></td> |
---|
| 348 | </tr> |
---|
| 349 | </table> |
---|
| 350 | </div> |
---|
| 351 | <div class="memdoc"> |
---|
| 352 | |
---|
| 353 | <p> |
---|
| 354 | <a class="el" href="classbdm_1_1UI.html" title="This class serves to load and/or save DOMElements into/from files stored on a hard-disk...">UI</a> for class <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> (description of data vectors). |
---|
| 355 | <p> |
---|
| 356 | <div class="fragment"><pre class="fragment"> rv = { |
---|
| 357 | type = <span class="stringliteral">"rv"</span>; <span class="comment">//identifier of the description</span> |
---|
| 358 | <span class="comment">// UNIQUE IDENTIFIER same names = same variable</span> |
---|
| 359 | names = [<span class="stringliteral">"a"</span>, <span class="stringliteral">"b"</span>, <span class="stringliteral">"c"</span>, ...]; <span class="comment">// which will be used e.g. in loggers </span> |
---|
| 360 | |
---|
| 361 | <span class="comment">//optional arguments</span> |
---|
| 362 | sizes = [1, 2, 3, ...]; <span class="comment">// (optional) default = ones()</span> |
---|
| 363 | <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> = [-1, -2, 0, ...]; <span class="comment">// time shifts with respect to current time (optional) default = zeros()</span> |
---|
| 364 | } |
---|
| 365 | </pre></div> |
---|
| 366 | <p>Reimplemented from <a class="el" href="classbdm_1_1bdmroot.html#d4602efd3ad9fb9e4532426e4f488df8">bdm::bdmroot</a>.</p> |
---|
| 367 | |
---|
| 368 | <p>References <a class="el" href="user__info_8h-source.html#l00249">bdm::UI::get()</a>.</p> |
---|
| 369 | |
---|
| 370 | </div> |
---|
| 371 | </div><p> |
---|
[259] | 372 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[261] | 373 | <li><a class="el" href="libBM_8h-source.html">libBM.h</a><li>libBM.cpp</ul> |
---|
[259] | 374 | </div> |
---|
[368] | 375 | <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 8 18:02:35 2009 for mixpp by |
---|
[259] | 376 | <a href="http://www.doxygen.org/index.html"> |
---|
[290] | 377 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 378 | </body> |
---|
| 379 | </html> |
---|