84 | | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::RV::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
85 | | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
86 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
| 84 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0743ab524c18d0c6553b29b043fd42bd"></a><!-- doxytag: member="bdm::RV::show_all" ref="a0743ab524c18d0c6553b29b043fd42bd" args="()" --> |
| 85 | string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0743ab524c18d0c6553b29b043fd42bd">show_all</a> ()</td></tr> |
| 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> |
| 138 | <tr><td colspan="2"><div class="groupHeader">Time manipulation functions</div></td></tr> |
| 139 | <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> |
| 140 | <br/><br/></div></td></tr> |
| 141 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9e1787523f4d5f636e4f738c319d3e3"></a><!-- doxytag: member="bdm::RV::remove_time" ref="ae9e1787523f4d5f636e4f738c319d3e3" args="() const " --> |
| 142 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>remove_time</b> () const </td></tr> |
| 143 | <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 " --> |
| 144 | <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> |
| 145 | <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> |
| 146 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5819f71d774649412c10b8e1716be1e"></a><!-- doxytag: member="bdm::RV::expand_delayes" ref="ac5819f71d774649412c10b8e1716be1e" args="() const " --> |
| 147 | <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> |
| 148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return rvs with expanded delayes and sorted in the order of: <br/></td></tr> |
142 | | <tr><td class="memItemLeft" align="right" valign="top">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> |
143 | | <tr><td class="memItemLeft" align="right" valign="top">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> |
| 155 | <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 " --> |
| 156 | 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> |
| 157 | <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> |
| 158 | <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 " --> |
| 159 | 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> |
| 160 | <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> |
| 161 | <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 " --> |
| 162 | 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> |
| 163 | <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> |
222 | | <p>References <a class="el" href="bdmbase_8cpp_source.html#l00049">countsize()</a>, <a class="el" href="bdmbase_8h_source.html#l00092">dsize</a>, <a class="el" href="bdmbase_8cpp_source.html#l00309">findself()</a>, <a class="el" href="bdmbase_8h_source.html#l00096">ids</a>, <a class="el" href="bdmbase_8h_source.html#l00094">len</a>, and <a class="el" href="bdmbase_8h_source.html#l00098">times</a>.</p> |
223 | | |
224 | | <p>Referenced by <a class="el" href="datasources_8h_source.html#l00180">bdm::ArxDS::set_drv()</a>, <a class="el" href="emix_8cpp_source.html#l00205">bdm::mprod::set_elements()</a>, <a class="el" href="emix_8h_source.html#l00381">bdm::eprod::set_parameters()</a>, and <a class="el" href="merger_8h_source.html#l00095">bdm::merger_base::set_sources()</a>.</p> |
225 | | |
226 | | </div> |
227 | | </div> |
228 | | <a class="anchor" id="ac92b92ecfd95c89be13ab3e6cb6855c1"></a><!-- doxytag: member="bdm::RV::dataind" ref="ac92b92ecfd95c89be13ab3e6cb6855c1" args="(const RV &rv2, ivec &selfi, ivec &rv2i) const " --> |
229 | | <div class="memitem"> |
230 | | <div class="memproto"> |
231 | | <table class="memname"> |
232 | | <tr> |
233 | | <td class="memname">void bdm::RV::dataind </td> |
234 | | <td>(</td> |
235 | | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
236 | | <td class="paramname"> <em>rv2</em>, </td> |
237 | | </tr> |
238 | | <tr> |
239 | | <td class="paramkey"></td> |
240 | | <td></td> |
241 | | <td class="paramtype">ivec & </td> |
242 | | <td class="paramname"> <em>selfi</em>, </td> |
243 | | </tr> |
244 | | <tr> |
245 | | <td class="paramkey"></td> |
246 | | <td></td> |
247 | | <td class="paramtype">ivec & </td> |
248 | | <td class="paramname"> <em>rv2i</em></td><td> </td> |
249 | | </tr> |
250 | | <tr> |
251 | | <td></td> |
252 | | <td>)</td> |
253 | | <td></td><td></td><td> const</td> |
254 | | </tr> |
255 | | </table> |
256 | | </div> |
257 | | <div class="memdoc"> |
258 | | <p>generate mutual indices when copying data between self and crv. Data are copied via: data_of_this(selfi) = data_of_rv2(rv2i) </p> |
259 | | |
260 | | <p>References <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="bdmbase_8cpp_source.html#l00309">findself()</a>, <a class="el" href="bdmbase_8h_source.html#l00096">ids</a>, <a class="el" href="bdmbase_8h_source.html#l00041">bdm::str::ids</a>, <a class="el" href="bdmbase_8h_source.html#l00098">times</a>, <a class="el" href="bdmbase_8h_source.html#l00043">bdm::str::times</a>, and <a class="el" href="bdmbase_8cpp_source.html#l00237">tostr()</a>.</p> |
261 | | |
262 | | </div> |
263 | | </div> |
264 | | <a class="anchor" id="acbebdb5e0d30101a6eb63550ef701c55"></a><!-- doxytag: member="bdm::RV::dataind" ref="acbebdb5e0d30101a6eb63550ef701c55" args="(const RV &crv) const " --> |
265 | | <div class="memitem"> |
266 | | <div class="memproto"> |
267 | | <table class="memname"> |
268 | | <tr> |
269 | | <td class="memname">ivec bdm::RV::dataind </td> |
270 | | <td>(</td> |
271 | | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
272 | | <td class="paramname"> <em>crv</em></td> |
273 | | <td> ) </td> |
274 | | <td> const</td> |
275 | | </tr> |
276 | | </table> |
277 | | </div> |
278 | | <div class="memdoc"> |
279 | | <p>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); </p> |
280 | | |
281 | | <p>References <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="bdmbase_8h_source.html#l00092">dsize</a>, <a class="el" href="bdmbase_8h_source.html#l00096">ids</a>, <a class="el" href="bdmbase_8h_source.html#l00041">bdm::str::ids</a>, <a class="el" href="bdmbase_8h_source.html#l00098">times</a>, <a class="el" href="bdmbase_8h_source.html#l00043">bdm::str::times</a>, and <a class="el" href="bdmbase_8cpp_source.html#l00237">tostr()</a>.</p> |
282 | | |
283 | | <p>Referenced by <a class="el" href="bdmbase_8h_source.html#l00643">bdm::datalink_m2m::set_connection()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00207">bdm::datalink_m2e::set_connection()</a>, and <a class="el" href="bdmbase_8cpp_source.html#l00191">bdm::datalink::set_connection()</a>.</p> |
| 248 | <p>References <a class="el" href="bdmbase_8cpp_source.html#l00058">countsize()</a>, <a class="el" href="bdmbase_8h_source.html#l00098">dsize</a>, <a class="el" href="bdmbase_8cpp_source.html#l00322">findself()</a>, <a class="el" href="bdmbase_8h_source.html#l00102">ids</a>, <a class="el" href="bdmbase_8h_source.html#l00100">len</a>, and <a class="el" href="bdmbase_8h_source.html#l00104">times</a>.</p> |
| 249 | |
| 250 | <p>Referenced by <a class="el" href="kalman_8h_source.html#l00380">bdm::StateCanonical::connect_mlnorm()</a>, <a class="el" href="bdmbase_8h_source.html#l00228">expand_delayes()</a>, <a class="el" href="datasources_8h_source.html#l00282">bdm::ArxDS::set_drv()</a>, <a class="el" href="emix_8cpp_source.html#l00205">bdm::mprod::set_elements()</a>, <a class="el" href="emix_8h_source.html#l00381">bdm::eprod::set_parameters()</a>, and <a class="el" href="merger_8h_source.html#l00095">bdm::merger_base::set_sources()</a>.</p> |
306 | | <p>References <a class="el" href="bdmbase_8h_source.html#l00096">ids</a>, and <a class="el" href="bdmbase_8h_source.html#l00098">times</a>.</p> |
307 | | |
308 | | <p>Referenced by <a class="el" href="bdmbase_8cpp_source.html#l00089">add()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00267">dataind()</a>, and <a class="el" href="bdmbase_8cpp_source.html#l00300">subt()</a>.</p> |
| 273 | <p>References <a class="el" href="bdmbase_8h_source.html#l00102">ids</a>, <a class="el" href="bdmbase_8h_source.html#l00168">length()</a>, and <a class="el" href="bdmbase_8h_source.html#l00104">times</a>.</p> |
| 274 | |
| 275 | <p>Referenced by <a class="el" href="bdmbase_8cpp_source.html#l00098">add()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00280">dataind()</a>, and <a class="el" href="bdmbase_8cpp_source.html#l00313">subt()</a>.</p> |
| 276 | |
| 277 | </div> |
| 278 | </div> |
| 279 | <a class="anchor" id="aa858d36d0264e1f1c89500531162fdf1"></a><!-- doxytag: member="bdm::RV::findself_ids" ref="aa858d36d0264e1f1c89500531162fdf1" args="(const RV &rv2) const " --> |
| 280 | <div class="memitem"> |
| 281 | <div class="memproto"> |
| 282 | <table class="memname"> |
| 283 | <tr> |
| 284 | <td class="memname">ivec bdm::RV::findself_ids </td> |
| 285 | <td>(</td> |
| 286 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
| 287 | <td class="paramname"> <em>rv2</em></td> |
| 288 | <td> ) </td> |
| 289 | <td> const</td> |
| 290 | </tr> |
| 291 | </table> |
| 292 | </div> |
| 293 | <div class="memdoc"> |
| 294 | |
| 295 | <p>Find indices of self in another rv, ignore time,. </p> |
| 296 | <dl class="return"><dt><b>Returns:</b></dt><dd>ivec of the same size as self. </dd></dl> |
| 297 | |
| 298 | <p>References <a class="el" href="bdmbase_8h_source.html#l00102">ids</a>, and <a class="el" href="bdmbase_8h_source.html#l00168">length()</a>.</p> |
| 299 | |
| 300 | <p>Referenced by <a class="el" href="bdmbase_8h_source.html#l00718">bdm::datalink_buffered::set_connection()</a>.</p> |
329 | | <div class="fragment"><pre class="fragment"> rv = { |
330 | | <span class="keyword">class </span>= "<a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a>"; <span class="comment">// class name</span> |
331 | | <span class="comment">// UNIQUE IDENTIFIER same names = same variable</span> |
332 | | 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> |
333 | | |
334 | | <span class="comment">//optional arguments</span> |
335 | | sizes = [1, 2, 3, ...]; <span class="comment">// (optional) default = ones()</span> |
336 | | <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" 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> |
337 | | } |
| 321 | <div class="fragment"><pre class="fragment"> rv = { |
| 322 | <span class="keyword">class </span>= "<a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a>"; <span class="comment">// class name</span> |
| 323 | <span class="comment">// UNIQUE IDENTIFIER same names = same variable</span> |
| 324 | 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> |
| 325 | |
| 326 | <span class="comment">//optional arguments</span> |
| 327 | sizes = [1, 2, 3, ...]; <span class="comment">// (optional) default = ones()</span> |
| 328 | <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" 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> |
| 329 | } |