73 | | <h1>bdm::RV Class Reference</h1><!-- doxytag: class="bdm::RV" --><!-- doxytag: inherits="bdm::root" --> |
74 | | <p>Class representing variables, most often random variables. |
75 | | <a href="#_details">More...</a></p> |
76 | | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
77 | | <p>Class representing variables, most often random variables. </p> |
78 | | <p>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> |
79 | | <p>The class is implemented using global variables to assure uniqueness of description:</p> |
80 | | <p>In is a vector </p> |
81 | | <div align="center"> |
| 70 | <h1>bdm::RV Class Reference</h1><!-- doxytag: class="bdm::RV" --><!-- doxytag: inherits="bdm::root" -->Class representing variables, most often random variables. |
| 71 | <a href="#_details">More...</a> |
| 72 | <p> |
| 73 | <code>#include <<a class="el" href="bdmbase_8h_source.html">bdmbase.h</a>></code> |
| 74 | <p> |
| 75 | |
| 76 | <p> |
| 77 | <a href="classbdm_1_1RV-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
| 78 | <tr><td></td></tr> |
| 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#6564bdd36b6845a51446a192d33e1194">from_setting</a> (const Setting &set)</td></tr> |
| 81 | |
| 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class which collects all the auxiliary functions useful to prepare...">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="#6564bdd36b6845a51446a192d33e1194"></a><br></td></tr> |
| 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0743ab524c18d0c6553b29b043fd42bd"></a><!-- doxytag: member="bdm::RV::show_all" ref="0743ab524c18d0c6553b29b043fd42bd" args="()" --> |
| 84 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#0743ab524c18d0c6553b29b043fd42bd">show_all</a> ()</td></tr> |
| 85 | |
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">function for debugging <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> related stuff <br></td></tr> |
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::RV::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
| 88 | 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> |
| 89 | |
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::RV::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
| 92 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
| 93 | |
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
| 95 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fa35c2744e687c74f7742990e6aa264"></a><!-- doxytag: member="bdm::RV::RV" ref="3fa35c2744e687c74f7742990e6aa264" args="(const Array< std::string > &in_names, const ivec &in_sizes, const ivec &in_times)" --> |
| 97 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#3fa35c2744e687c74f7742990e6aa264">RV</a> (const Array< std::string > &in_names, const ivec &in_sizes, const ivec &in_times)</td></tr> |
| 98 | |
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <br></td></tr> |
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="381f5d963bb54efd4e76815dc93d50ce"></a><!-- doxytag: member="bdm::RV::RV" ref="381f5d963bb54efd4e76815dc93d50ce" args="(const Array< std::string > &in_names, const ivec &in_sizes)" --> |
| 101 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#381f5d963bb54efd4e76815dc93d50ce">RV</a> (const Array< std::string > &in_names, const ivec &in_sizes)</td></tr> |
| 102 | |
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with times=0. <br></td></tr> |
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cb47d71d82639ec7ddf2635b21aafd00"></a><!-- doxytag: member="bdm::RV::RV" ref="cb47d71d82639ec7ddf2635b21aafd00" args="(const Array< std::string > &in_names)" --> |
| 105 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#cb47d71d82639ec7ddf2635b21aafd00">RV</a> (const Array< std::string > &in_names)</td></tr> |
| 106 | |
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with sizes=1, times=0. <br></td></tr> |
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e319ca900261a5005a9b4b353ec16412"></a><!-- doxytag: member="bdm::RV::RV" ref="e319ca900261a5005a9b4b353ec16412" args="()" --> |
| 109 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412">RV</a> ()</td></tr> |
| 110 | |
| 111 | <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> |
| 112 | <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)" --> |
| 113 | </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> |
| 114 | |
| 115 | <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> |
| 116 | <tr><td colspan="2"><div class="groupHeader">Algebra on Random Variables</div></td></tr> |
| 117 | <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> |
| 118 | |
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Find indices of self in another rv,. <a href="#1367055b2608ad9d50d01a2da6cec869"></a><br></td></tr> |
| 120 | <tr><td class="memItemLeft" nowrap align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a858d36d0264e1f1c89500531162fdf1">findself_ids</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
| 121 | |
| 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Find indices of self in another rv, ignore time,. <a href="#a858d36d0264e1f1c89500531162fdf1"></a><br></td></tr> |
| 123 | <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 " --> |
| 124 | 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> |
| 125 | |
| 126 | <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> |
| 127 | <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> |
| 128 | |
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add (concat) another variable to the current one,. <a href="#87841b5ee43997b79789c0c22047e224"></a><br></td></tr> |
| 130 | <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 " --> |
| 131 | <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> |
| 132 | |
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtract another variable from the current one. <br></td></tr> |
| 134 | <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 " --> |
| 135 | <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> |
| 136 | |
| 137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indices ind. <br></td></tr> |
| 138 | <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 " --> |
| 139 | <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> |
| 140 | |
| 141 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indices ind. <br></td></tr> |
| 142 | <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 " --> |
| 143 | <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> |
| 144 | |
| 145 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select from data vector starting at di1 to di2. <br></td></tr> |
| 146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="449c2b692957528976c189d27236e1ba"></a><!-- doxytag: member="bdm::RV::t_plus" ref="449c2b692957528976c189d27236e1ba" args="(int delta)" --> |
| 147 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#449c2b692957528976c189d27236e1ba">t_plus</a> (int delta)</td></tr> |
| 148 | |
| 149 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shift <code>time</code> by delta. <br></td></tr> |
| 150 | <tr><td colspan="2"><div class="groupHeader">Time manipulation functions</div></td></tr> |
| 151 | <tr><td colspan="2"><div class="groupText">returns rvs with time set to 0 and removed duplicates <br><br></div></td></tr> |
| 152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e9e1787523f4d5f636e4f738c319d3e3"></a><!-- doxytag: member="bdm::RV::remove_time" ref="e9e1787523f4d5f636e4f738c319d3e3" args="() const " --> |
| 153 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>remove_time</b> () const </td></tr> |
| 154 | |
| 155 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="627222f49abc5d07e5e8aecac7708ee2"></a><!-- doxytag: member="bdm::RV::copy_t" ref="627222f49abc5d07e5e8aecac7708ee2" args="(int dt) const " --> |
| 156 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#627222f49abc5d07e5e8aecac7708ee2">copy_t</a> (int dt) const </td></tr> |
| 157 | |
| 158 | <tr><td class="mdescLeft"> </td><td class="mdescRight">create new <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> from the current one with time shifted by given value <br></td></tr> |
| 159 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c5819f71d774649412c10b8e1716be1e"></a><!-- doxytag: member="bdm::RV::expand_delayes" ref="c5819f71d774649412c10b8e1716be1e" args="() const " --> |
| 160 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#c5819f71d774649412c10b8e1716be1e">expand_delayes</a> () const </td></tr> |
| 161 | |
| 162 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return rvs with expanded delayes and sorted in the order of: <br></td></tr> |
| 163 | <tr><td colspan="2"><div class="groupHeader">Relation to vectors</div></td></tr> |
| 164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8bdd7f4072749c7cc864b78a418ca388"></a><!-- doxytag: member="bdm::RV::tostr" ref="8bdd7f4072749c7cc864b78a418ca388" args="() const " --> |
| 165 | <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> |
| 166 | |
| 167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">generate <code><a class="el" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a></code> from rv, by expanding sizes <br></td></tr> |
| 168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cbebdb5e0d30101a6eb63550ef701c55"></a><!-- doxytag: member="bdm::RV::dataind" ref="cbebdb5e0d30101a6eb63550ef701c55" args="(const RV &crv) const " --> |
| 169 | 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> |
| 170 | |
| 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">when this rv is a part of bigger rv, this function returns indices of self in the data vector of the bigger crv. Then, data can be copied via: data_of_this = cdata(ind); <br></td></tr> |
| 172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0c6e3a1c54a612d2ea390c841aa5eb6f"></a><!-- doxytag: member="bdm::RV::dataind_part" ref="0c6e3a1c54a612d2ea390c841aa5eb6f" args="(const RV &crv) const " --> |
| 173 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#0c6e3a1c54a612d2ea390c841aa5eb6f">dataind_part</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &crv) const </td></tr> |
| 174 | |
| 175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">same as dataind but this time crv should not be complete supperset of rv. <br></td></tr> |
| 176 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c92b92ecfd95c89be13ab3e6cb6855c1"></a><!-- doxytag: member="bdm::RV::dataind" ref="c92b92ecfd95c89be13ab3e6cb6855c1" args="(const RV &rv2, ivec &selfi, ivec &rv2i) const " --> |
| 177 | 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> |
| 178 | |
| 179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">generate mutual indices when copying data between self and crv. Data are copied via: data_of_this(selfi) = data_of_rv2(rv2i) <br></td></tr> |
| 180 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a5c5aeeaf39299d07763377b05a8241"></a><!-- doxytag: member="bdm::RV::mint" ref="9a5c5aeeaf39299d07763377b05a8241" args="() const " --> |
| 181 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241">mint</a> () const </td></tr> |
| 182 | |
| 183 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum time-offset. <br></td></tr> |
| 184 | <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
| 185 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ab92b361335a644df654cf7cf7e5ffc0"></a><!-- doxytag: member="bdm::RV::clear_all" ref="ab92b361335a644df654cf7cf7e5ffc0" args="()" --> |
| 186 | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ab92b361335a644df654cf7cf7e5ffc0">clear_all</a> ()</td></tr> |
| 187 | |
| 188 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Invalidate all named RVs. Use before initializing any <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> instances, with care... <br></td></tr> |
| 189 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
| 190 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0cfe477965243a89eb87a06b024e2fcb"></a><!-- doxytag: member="bdm::RV::dsize" ref="0cfe477965243a89eb87a06b024e2fcb" args="" --> |
| 191 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb">dsize</a></td></tr> |
| 192 | |
| 193 | <tr><td class="mdescLeft"> </td><td class="mdescRight">size of the data vector <br></td></tr> |
| 194 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b11bfdceb831ed30d33b852dd4a6b385"></a><!-- doxytag: member="bdm::RV::len" ref="b11bfdceb831ed30d33b852dd4a6b385" args="" --> |
| 195 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385">len</a></td></tr> |
| 196 | |
| 197 | <tr><td class="mdescLeft"> </td><td class="mdescRight">number of individual rvs <br></td></tr> |
| 198 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a9a4769ab5a322495bea0cd8091500b"></a><!-- doxytag: member="bdm::RV::ids" ref="0a9a4769ab5a322495bea0cd8091500b" args="" --> |
| 199 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b">ids</a></td></tr> |
| 200 | |
| 201 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of unique IDs. <br></td></tr> |
| 202 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef6703854820bbf61736738f1bac6896"></a><!-- doxytag: member="bdm::RV::times" ref="ef6703854820bbf61736738f1bac6896" args="" --> |
| 203 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896">times</a></td></tr> |
| 204 | |
| 205 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of shifts from current time. <br></td></tr> |
| 206 | <tr><td colspan="2"><br><h2>Access functions</h2></td></tr> |
| 207 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b361a9044e6a43102c4f873b9f566a0f"></a><!-- doxytag: member="bdm::RV::to_string" ref="b361a9044e6a43102c4f873b9f566a0f" args="()" --> |
| 208 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#b361a9044e6a43102c4f873b9f566a0f">to_string</a> ()</td></tr> |
| 209 | |
| 210 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
| 211 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de30156104f61d86c94f758861418089"></a><!-- doxytag: member="bdm::RV::_dsize" ref="de30156104f61d86c94f758861418089" args="() const " --> |
| 212 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089">_dsize</a> () const </td></tr> |
| 213 | |
| 214 | <tr><td class="mdescLeft"> </td><td class="mdescRight">total size of a random variable <br></td></tr> |
| 215 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26318eb90cb172ea86d1f45de9131c4e"></a><!-- doxytag: member="bdm::RV::_ids" ref="26318eb90cb172ea86d1f45de9131c4e" args="() const " --> |
| 216 | const ivec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#26318eb90cb172ea86d1f45de9131c4e">_ids</a> () const </td></tr> |
| 217 | |
| 218 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 219 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39f9b44752376f07e346579b5ff8cbbd"></a><!-- doxytag: member="bdm::RV::countsize" ref="39f9b44752376f07e346579b5ff8cbbd" args="() const " --> |
| 220 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#39f9b44752376f07e346579b5ff8cbbd">countsize</a> () const </td></tr> |
| 221 | |
| 222 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Recount size of the corresponding data vector. <br></td></tr> |
| 223 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="412d43294bac38fa1804829e38fa4eaf"></a><!-- doxytag: member="bdm::RV::cumsizes" ref="412d43294bac38fa1804829e38fa4eaf" args="() const " --> |
| 224 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#412d43294bac38fa1804829e38fa4eaf">cumsizes</a> () const </td></tr> |
| 225 | |
| 226 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of cumulative sizes of <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>. <br></td></tr> |
| 227 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e9ec8c3e756651ff352ab5e3d3acda4b"></a><!-- doxytag: member="bdm::RV::length" ref="e9ec8c3e756651ff352ab5e3d3acda4b" args="() const " --> |
| 228 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b">length</a> () const </td></tr> |
| 229 | |
| 230 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of named parts. <br></td></tr> |
| 231 | <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 " --> |
| 232 | int </td><td class="memItemRight" valign="bottom"><b>id</b> (int at) const </td></tr> |
| 233 | |
| 234 | <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 " --> |
| 235 | int </td><td class="memItemRight" valign="bottom"><b>size</b> (int at) const </td></tr> |
| 236 | |
| 237 | <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 " --> |
| 238 | int </td><td class="memItemRight" valign="bottom"><b>time</b> (int at) const </td></tr> |
| 239 | |
| 240 | <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 " --> |
| 241 | std::string </td><td class="memItemRight" valign="bottom"><b>name</b> (int at) const </td></tr> |
| 242 | |
| 243 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bae3443ded87dc9941d763e4c48cee0"></a><!-- doxytag: member="bdm::RV::scalarname" ref="9bae3443ded87dc9941d763e4c48cee0" args="(int scalat) const " --> |
| 244 | std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#9bae3443ded87dc9941d763e4c48cee0">scalarname</a> (int scalat) const </td></tr> |
| 245 | |
| 246 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns name of a scalar at position scalat, i.e. it can be in the middle of vector name, in that case it adds "_%d" to it <br></td></tr> |
| 247 | <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)" --> |
| 248 | void </td><td class="memItemRight" valign="bottom"><b>set_time</b> (int at, int time0)</td></tr> |
| 249 | |
| 250 | <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)" --> |
| 251 | 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> |
| 252 | |
| 253 | <tr><td class="mdescLeft"> </td><td class="mdescRight">State output, e.g. for debugging. <br></td></tr> |
| 254 | </table> |
| 255 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
| 256 | Class representing variables, most often random variables. |
| 257 | <p> |
| 258 | 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> |
| 259 | The class is implemented using global variables to assure uniqueness of description:<p> |
| 260 | In is a vector <div align="center"> |
83 | | <map name="inline_dotgraph_3.dot.map" id="inline_dotgraph_3.dot.map"></map> |
84 | | </div> |
85 | | |
86 | | <p><code>#include <<a class="el" href="bdmbase_8h_source.html">bdmbase.h</a>></code></p> |
87 | | |
88 | | <p><a href="classbdm_1_1RV-members.html">List of all members.</a></p> |
89 | | <table border="0" cellpadding="0" cellspacing="0"> |
90 | | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
91 | | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a6564bdd36b6845a51446a192d33e1194">from_setting</a> (const Setting &set)</td></tr> |
92 | | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1UI.html" title="UI is an abstract class which collects all the auxiliary functions useful to prepare...">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="#a6564bdd36b6845a51446a192d33e1194"></a><br/></td></tr> |
93 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0743ab524c18d0c6553b29b043fd42bd"></a><!-- doxytag: member="bdm::RV::show_all" ref="a0743ab524c18d0c6553b29b043fd42bd" args="()" --> |
94 | | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0743ab524c18d0c6553b29b043fd42bd">show_all</a> ()</td></tr> |
95 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">function for debugging <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> related stuff <br/></td></tr> |
96 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::RV::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
97 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
98 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
99 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::RV::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
100 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
101 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
102 | | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
103 | | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> </p> |
104 | | <br/><br/></div></td></tr> |
105 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3fa35c2744e687c74f7742990e6aa264"></a><!-- doxytag: member="bdm::RV::RV" ref="a3fa35c2744e687c74f7742990e6aa264" args="(const Array< std::string > &in_names, const ivec &in_sizes, const ivec &in_times)" --> |
106 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a3fa35c2744e687c74f7742990e6aa264">RV</a> (const Array< std::string > &in_names, const ivec &in_sizes, const ivec &in_times)</td></tr> |
107 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <br/></td></tr> |
108 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a381f5d963bb54efd4e76815dc93d50ce"></a><!-- doxytag: member="bdm::RV::RV" ref="a381f5d963bb54efd4e76815dc93d50ce" args="(const Array< std::string > &in_names, const ivec &in_sizes)" --> |
109 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a381f5d963bb54efd4e76815dc93d50ce">RV</a> (const Array< std::string > &in_names, const ivec &in_sizes)</td></tr> |
110 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with times=0. <br/></td></tr> |
111 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acb47d71d82639ec7ddf2635b21aafd00"></a><!-- doxytag: member="bdm::RV::RV" ref="acb47d71d82639ec7ddf2635b21aafd00" args="(const Array< std::string > &in_names)" --> |
112 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#acb47d71d82639ec7ddf2635b21aafd00">RV</a> (const Array< std::string > &in_names)</td></tr> |
113 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with sizes=1, times=0. <br/></td></tr> |
114 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae319ca900261a5005a9b4b353ec16412"></a><!-- doxytag: member="bdm::RV::RV" ref="ae319ca900261a5005a9b4b353ec16412" args="()" --> |
115 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412">RV</a> ()</td></tr> |
116 | | <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> |
117 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa990e0f30c0e34f04c14260ab8ba5b5f"></a><!-- doxytag: member="bdm::RV::RV" ref="aa990e0f30c0e34f04c14260ab8ba5b5f" args="(string name, int sz, int tm=0)" --> |
118 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aa990e0f30c0e34f04c14260ab8ba5b5f">RV</a> (string name, int sz, int tm=0)</td></tr> |
119 | | <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> |
120 | | <tr><td colspan="2"><div class="groupHeader">Algebra on Random Variables</div></td></tr> |
121 | | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp64cb0288e151258189b025c20f50b7e1"></a> </p> |
122 | | <br/><br/></div></td></tr> |
123 | | <tr><td class="memItemLeft" align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a1367055b2608ad9d50d01a2da6cec869">findself</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
124 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Find indices of self in another rv,. <a href="#a1367055b2608ad9d50d01a2da6cec869"></a><br/></td></tr> |
125 | | <tr><td class="memItemLeft" align="right" valign="top">ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aa858d36d0264e1f1c89500531162fdf1">findself_ids</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
126 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Find indices of self in another rv, ignore time,. <a href="#aa858d36d0264e1f1c89500531162fdf1"></a><br/></td></tr> |
127 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3bb011af88ae98f5c97955bb2c95cfee"></a><!-- doxytag: member="bdm::RV::equal" ref="a3bb011af88ae98f5c97955bb2c95cfee" args="(const RV &rv2) const " --> |
128 | | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a3bb011af88ae98f5c97955bb2c95cfee">equal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
129 | | <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> |
130 | | <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a87841b5ee43997b79789c0c22047e224">add</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2)</td></tr> |
131 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add (concat) another variable to the current one,. <a href="#a87841b5ee43997b79789c0c22047e224"></a><br/></td></tr> |
132 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaec44dabdf0a6d90fbae95e1356eda39"></a><!-- doxytag: member="bdm::RV::subt" ref="aaec44dabdf0a6d90fbae95e1356eda39" args="(const RV &rv2) 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#aaec44dabdf0a6d90fbae95e1356eda39">subt</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2) const </td></tr> |
134 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtract another variable from the current one. <br/></td></tr> |
135 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0c04ab99ded62e1e05bcefb151ebeb9"></a><!-- doxytag: member="bdm::RV::subselect" ref="ac0c04ab99ded62e1e05bcefb151ebeb9" args="(const ivec &ind) const " --> |
136 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9">subselect</a> (const ivec &ind) const </td></tr> |
137 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indices ind. <br/></td></tr> |
138 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6f3daf0f857fff53a1c0a445fe160966"></a><!-- doxytag: member="bdm::RV::operator()" ref="a6f3daf0f857fff53a1c0a445fe160966" args="(const ivec &ind) const " --> |
139 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a6f3daf0f857fff53a1c0a445fe160966">operator()</a> (const ivec &ind) const </td></tr> |
140 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indices ind. <br/></td></tr> |
141 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a452fb5f7ab1eafe17932bf9f458d0415"></a><!-- doxytag: member="bdm::RV::operator()" ref="a452fb5f7ab1eafe17932bf9f458d0415" args="(int di1, int di2) const " --> |
142 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a452fb5f7ab1eafe17932bf9f458d0415">operator()</a> (int di1, int di2) const </td></tr> |
143 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select from data vector starting at di1 to di2. <br/></td></tr> |
144 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a449c2b692957528976c189d27236e1ba"></a><!-- doxytag: member="bdm::RV::t_plus" ref="a449c2b692957528976c189d27236e1ba" args="(int delta)" --> |
145 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a449c2b692957528976c189d27236e1ba">t_plus</a> (int delta)</td></tr> |
146 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shift <code>time</code> by delta. <br/></td></tr> |
147 | | <tr><td colspan="2"><div class="groupHeader">Time manipulation functions</div></td></tr> |
148 | | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpae06cb9901d7bdd0e1d9dc742effec16"></a> returns rvs with time set to 0 and removed duplicates </p> |
149 | | <br/><br/></div></td></tr> |
150 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9e1787523f4d5f636e4f738c319d3e3"></a><!-- doxytag: member="bdm::RV::remove_time" ref="ae9e1787523f4d5f636e4f738c319d3e3" args="() const " --> |
151 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>remove_time</b> () const </td></tr> |
152 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a627222f49abc5d07e5e8aecac7708ee2"></a><!-- doxytag: member="bdm::RV::copy_t" ref="a627222f49abc5d07e5e8aecac7708ee2" args="(int dt) const " --> |
153 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a627222f49abc5d07e5e8aecac7708ee2">copy_t</a> (int dt) const </td></tr> |
154 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">create new <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> from the current one with time shifted by given value <br/></td></tr> |
155 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5819f71d774649412c10b8e1716be1e"></a><!-- doxytag: member="bdm::RV::expand_delayes" ref="ac5819f71d774649412c10b8e1716be1e" args="() const " --> |
156 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ac5819f71d774649412c10b8e1716be1e">expand_delayes</a> () const </td></tr> |
157 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return rvs with expanded delayes and sorted in the order of: <br/></td></tr> |
158 | | <tr><td colspan="2"><div class="groupHeader">Relation to vectors</div></td></tr> |
159 | | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpbf7d6716e6a2259c0d28e2e7477a0b81"></a> </p> |
160 | | <br/><br/></div></td></tr> |
161 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bdd7f4072749c7cc864b78a418ca388"></a><!-- doxytag: member="bdm::RV::tostr" ref="a8bdd7f4072749c7cc864b78a418ca388" args="() const " --> |
162 | | <a class="el" href="classbdm_1_1str.html">str</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a8bdd7f4072749c7cc864b78a418ca388">tostr</a> () const </td></tr> |
163 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">generate <code><a class="el" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a></code> from rv, by expanding sizes <br/></td></tr> |
164 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbebdb5e0d30101a6eb63550ef701c55"></a><!-- doxytag: member="bdm::RV::dataind" ref="acbebdb5e0d30101a6eb63550ef701c55" args="(const RV &crv) const " --> |
165 | | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55">dataind</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &crv) const </td></tr> |
166 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">when this rv is a part of bigger rv, this function returns indices of self in the data vector of the bigger crv. Then, data can be copied via: data_of_this = cdata(ind); <br/></td></tr> |
167 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c6e3a1c54a612d2ea390c841aa5eb6f"></a><!-- doxytag: member="bdm::RV::dataind_part" ref="a0c6e3a1c54a612d2ea390c841aa5eb6f" args="(const RV &crv) const " --> |
168 | | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0c6e3a1c54a612d2ea390c841aa5eb6f">dataind_part</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &crv) const </td></tr> |
169 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">same as dataind but this time crv should not be complete supperset of rv. <br/></td></tr> |
170 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac92b92ecfd95c89be13ab3e6cb6855c1"></a><!-- doxytag: member="bdm::RV::dataind" ref="ac92b92ecfd95c89be13ab3e6cb6855c1" args="(const RV &rv2, ivec &selfi, ivec &rv2i) const " --> |
171 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ac92b92ecfd95c89be13ab3e6cb6855c1">dataind</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv2, ivec &selfi, ivec &rv2i) const </td></tr> |
172 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">generate mutual indices when copying data between self and crv. Data are copied via: data_of_this(selfi) = data_of_rv2(rv2i) <br/></td></tr> |
173 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a5c5aeeaf39299d07763377b05a8241"></a><!-- doxytag: member="bdm::RV::mint" ref="a9a5c5aeeaf39299d07763377b05a8241" args="() const " --> |
174 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241">mint</a> () const </td></tr> |
175 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum time-offset. <br/></td></tr> |
176 | | <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> |
177 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab92b361335a644df654cf7cf7e5ffc0"></a><!-- doxytag: member="bdm::RV::clear_all" ref="aab92b361335a644df654cf7cf7e5ffc0" args="()" --> |
178 | | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aab92b361335a644df654cf7cf7e5ffc0">clear_all</a> ()</td></tr> |
179 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Invalidate all named RVs. Use before initializing any <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> instances, with care... <br/></td></tr> |
180 | | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
181 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0cfe477965243a89eb87a06b024e2fcb"></a><!-- doxytag: member="bdm::RV::dsize" ref="a0cfe477965243a89eb87a06b024e2fcb" args="" --> |
182 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb">dsize</a></td></tr> |
183 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">size of the data vector <br/></td></tr> |
184 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab11bfdceb831ed30d33b852dd4a6b385"></a><!-- doxytag: member="bdm::RV::len" ref="ab11bfdceb831ed30d33b852dd4a6b385" args="" --> |
185 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385">len</a></td></tr> |
186 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">number of individual rvs <br/></td></tr> |
187 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a9a4769ab5a322495bea0cd8091500b"></a><!-- doxytag: member="bdm::RV::ids" ref="a0a9a4769ab5a322495bea0cd8091500b" args="" --> |
188 | | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b">ids</a></td></tr> |
189 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of unique IDs. <br/></td></tr> |
190 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef6703854820bbf61736738f1bac6896"></a><!-- doxytag: member="bdm::RV::times" ref="aef6703854820bbf61736738f1bac6896" args="" --> |
191 | | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896">times</a></td></tr> |
192 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of shifts from current time. <br/></td></tr> |
193 | | <tr><td colspan="2"><h2>Access functions</h2></td></tr> |
194 | | <tr><td colspan="2"><p><a class="anchor" id="amgrp994eaf979fea144f0b347248094bff32"></a> </p> |
195 | | <br/><br/></td></tr> |
196 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab361a9044e6a43102c4f873b9f566a0f"></a><!-- doxytag: member="bdm::RV::to_string" ref="ab361a9044e6a43102c4f873b9f566a0f" args="()" --> |
197 | | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ab361a9044e6a43102c4f873b9f566a0f">to_string</a> ()</td></tr> |
198 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
199 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade30156104f61d86c94f758861418089"></a><!-- doxytag: member="bdm::RV::_dsize" ref="ade30156104f61d86c94f758861418089" args="() const " --> |
200 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089">_dsize</a> () const </td></tr> |
201 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">total size of a random variable <br/></td></tr> |
202 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26318eb90cb172ea86d1f45de9131c4e"></a><!-- doxytag: member="bdm::RV::_ids" ref="a26318eb90cb172ea86d1f45de9131c4e" args="() const " --> |
203 | | const ivec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a26318eb90cb172ea86d1f45de9131c4e">_ids</a> () const </td></tr> |
204 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
205 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39f9b44752376f07e346579b5ff8cbbd"></a><!-- doxytag: member="bdm::RV::countsize" ref="a39f9b44752376f07e346579b5ff8cbbd" args="() const " --> |
206 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a39f9b44752376f07e346579b5ff8cbbd">countsize</a> () const </td></tr> |
207 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Recount size of the corresponding data vector. <br/></td></tr> |
208 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a412d43294bac38fa1804829e38fa4eaf"></a><!-- doxytag: member="bdm::RV::cumsizes" ref="a412d43294bac38fa1804829e38fa4eaf" args="() const " --> |
209 | | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a412d43294bac38fa1804829e38fa4eaf">cumsizes</a> () const </td></tr> |
210 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of cumulative sizes of <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>. <br/></td></tr> |
211 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9ec8c3e756651ff352ab5e3d3acda4b"></a><!-- doxytag: member="bdm::RV::length" ref="ae9ec8c3e756651ff352ab5e3d3acda4b" args="() const " --> |
212 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b">length</a> () const </td></tr> |
213 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of named parts. <br/></td></tr> |
214 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5900b42f778129a9e56008a1e8e489c8"></a><!-- doxytag: member="bdm::RV::id" ref="a5900b42f778129a9e56008a1e8e489c8" args="(int at) const " --> |
215 | | int </td><td class="memItemRight" valign="bottom"><b>id</b> (int at) const </td></tr> |
216 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abde62551a3fc8f3f83c569860b73f705"></a><!-- doxytag: member="bdm::RV::size" ref="abde62551a3fc8f3f83c569860b73f705" args="(int at) const " --> |
217 | | int </td><td class="memItemRight" valign="bottom"><b>size</b> (int at) const </td></tr> |
218 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac94373d3a760919b4b3eee58b42e3a45"></a><!-- doxytag: member="bdm::RV::time" ref="ac94373d3a760919b4b3eee58b42e3a45" args="(int at) const " --> |
219 | | int </td><td class="memItemRight" valign="bottom"><b>time</b> (int at) const </td></tr> |
220 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74c6ec8eb9c1dd69ad1d986eaee16dc2"></a><!-- doxytag: member="bdm::RV::name" ref="a74c6ec8eb9c1dd69ad1d986eaee16dc2" args="(int at) const " --> |
221 | | std::string </td><td class="memItemRight" valign="bottom"><b>name</b> (int at) const </td></tr> |
222 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bae3443ded87dc9941d763e4c48cee0"></a><!-- doxytag: member="bdm::RV::scalarname" ref="a9bae3443ded87dc9941d763e4c48cee0" args="(int scalat) const " --> |
223 | | std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a9bae3443ded87dc9941d763e4c48cee0">scalarname</a> (int scalat) const </td></tr> |
224 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns name of a scalar at position scalat, i.e. it can be in the middle of vector name, in that case it adds "_%d" to it <br/></td></tr> |
225 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb2892d12dc978549e9491aed327dfd4"></a><!-- doxytag: member="bdm::RV::set_time" ref="afb2892d12dc978549e9491aed327dfd4" args="(int at, int time0)" --> |
226 | | void </td><td class="memItemRight" valign="bottom"><b>set_time</b> (int at, int time0)</td></tr> |
227 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acad6f15535d10437f6690cb4492176a8"></a><!-- doxytag: member="bdm::RV::operator<<" ref="acad6f15535d10437f6690cb4492176a8" args="(std::ostream &os, const RV &rv)" --> |
228 | | std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#acad6f15535d10437f6690cb4492176a8">operator<<</a> (std::ostream &os, const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv)</td></tr> |
229 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">State output, e.g. for debugging. <br/></td></tr> |
230 | | </table> |
231 | | <hr/><h2>Member Function Documentation</h2> |
232 | | <a class="anchor" id="a87841b5ee43997b79789c0c22047e224"></a><!-- doxytag: member="bdm::RV::add" ref="a87841b5ee43997b79789c0c22047e224" args="(const RV &rv2)" --> |
| 262 | <map name="inline_dotgraph_3.dot.map"></map> |
| 263 | </div> |
| 264 | <hr><h2>Member Function Documentation</h2> |
| 265 | <a class="anchor" name="87841b5ee43997b79789c0c22047e224"></a><!-- doxytag: member="bdm::RV::add" ref="87841b5ee43997b79789c0c22047e224" args="(const RV &rv2)" --> |