[591] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 3 | <head> |
---|
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
---|
[259] | 5 | <title>mixpp: bdm::RV Class Reference</title> |
---|
[591] | 6 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
---|
| 7 | <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <!-- Generated by Doxygen 1.6.1 --> |
---|
[271] | 11 | <script type="text/javascript"> |
---|
| 12 | <!-- |
---|
| 13 | function changeDisplayState (e){ |
---|
| 14 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
| 15 | var button=this.firstChild; |
---|
| 16 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
| 17 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
| 18 | sectionDiv.style.display='block'; |
---|
| 19 | button.src='open.gif'; |
---|
| 20 | }else{ |
---|
| 21 | sectionDiv.style.display='none'; |
---|
| 22 | button.src='closed.gif'; |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | function initDynSections(){ |
---|
| 26 | var divs=document.getElementsByTagName('div'); |
---|
| 27 | var sectionCounter=1; |
---|
| 28 | for(var i=0;i<divs.length-1;i++){ |
---|
| 29 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
| 30 | var header=divs[i]; |
---|
| 31 | var section=divs[i+1]; |
---|
| 32 | var button=header.firstChild; |
---|
| 33 | if (button!='IMG'){ |
---|
| 34 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
| 35 | button=document.createElement('img'); |
---|
| 36 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
| 37 | } |
---|
| 38 | header.style.cursor='pointer'; |
---|
| 39 | header.onclick=changeDisplayState; |
---|
| 40 | header.id='dynheader'+sectionCounter; |
---|
| 41 | button.src='closed.gif'; |
---|
| 42 | section.id='dynsection'+sectionCounter; |
---|
| 43 | section.style.display='none'; |
---|
| 44 | section.style.marginLeft='14px'; |
---|
| 45 | sectionCounter++; |
---|
| 46 | } |
---|
| 47 | } |
---|
| 48 | } |
---|
| 49 | window.onload = initDynSections; |
---|
| 50 | --> |
---|
| 51 | </script> |
---|
[259] | 52 | <div class="navigation" id="top"> |
---|
| 53 | <div class="tabs"> |
---|
| 54 | <ul> |
---|
[271] | 55 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 56 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[290] | 57 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 58 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 59 | </ul> |
---|
| 60 | </div> |
---|
| 61 | <div class="tabs"> |
---|
| 62 | <ul> |
---|
| 63 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
[290] | 64 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 65 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 66 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 67 | </ul> |
---|
| 68 | </div> |
---|
[271] | 69 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1RV.html">RV</a> |
---|
[259] | 70 | </div> |
---|
| 71 | </div> |
---|
| 72 | <div class="contents"> |
---|
[591] | 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> |
---|
[259] | 76 | |
---|
[591] | 77 | <p><code>#include <<a class="el" href="bdmbase_8h_source.html">bdmbase.h</a>></code></p> |
---|
[353] | 78 | |
---|
[591] | 79 | <p><a href="classbdm_1_1RV-members.html">List of all members.</a></p> |
---|
| 80 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
| 81 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
---|
| 82 | <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> |
---|
| 83 | <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> |
---|
| 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> |
---|
| 87 | <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 " --> |
---|
| 88 | 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> |
---|
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
---|
| 90 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::RV::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 91 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
---|
[270] | 93 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
[591] | 94 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> </p> |
---|
| 95 | <br/><br/></div></td></tr> |
---|
| 96 | <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)" --> |
---|
| 97 | </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> |
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <br/></td></tr> |
---|
| 99 | <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)" --> |
---|
| 100 | </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> |
---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with times=0. <br/></td></tr> |
---|
| 102 | <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)" --> |
---|
| 103 | </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> |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with sizes=1, times=0. <br/></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae319ca900261a5005a9b4b353ec16412"></a><!-- doxytag: member="bdm::RV::RV" ref="ae319ca900261a5005a9b4b353ec16412" args="()" --> |
---|
| 106 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412">RV</a> ()</td></tr> |
---|
| 107 | <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> |
---|
| 108 | <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)" --> |
---|
| 109 | </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> |
---|
| 110 | <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] | 111 | <tr><td colspan="2"><div class="groupHeader">Algebra on Random Variables</div></td></tr> |
---|
[591] | 112 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp64cb0288e151258189b025c20f50b7e1"></a> </p> |
---|
| 113 | <br/><br/></div></td></tr> |
---|
| 114 | <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> |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Find indices of self in another rv,. <a href="#a1367055b2608ad9d50d01a2da6cec869"></a><br/></td></tr> |
---|
| 116 | <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 " --> |
---|
| 117 | 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> |
---|
| 118 | <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> |
---|
| 119 | <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> |
---|
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Add (concat) another variable to the current one,. <a href="#a87841b5ee43997b79789c0c22047e224"></a><br/></td></tr> |
---|
| 121 | <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 " --> |
---|
| 122 | <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> |
---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Subtract another variable from the current one. <br/></td></tr> |
---|
| 124 | <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 " --> |
---|
| 125 | <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> |
---|
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indices ind. <br/></td></tr> |
---|
| 127 | <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 " --> |
---|
| 128 | <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> |
---|
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select only variables at indices ind. <br/></td></tr> |
---|
| 130 | <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 " --> |
---|
| 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#a452fb5f7ab1eafe17932bf9f458d0415">operator()</a> (int di1, int di2) const </td></tr> |
---|
| 132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Select from data vector starting at di1 to di2. <br/></td></tr> |
---|
| 133 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd77cb0899f7fba1d0e34396137b7f1f"></a><!-- doxytag: member="bdm::RV::t" ref="abd77cb0899f7fba1d0e34396137b7f1f" args="(int delta)" --> |
---|
| 134 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#abd77cb0899f7fba1d0e34396137b7f1f">t</a> (int delta)</td></tr> |
---|
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shift <code>time</code> by delta. <br/></td></tr> |
---|
[270] | 136 | <tr><td colspan="2"><div class="groupHeader">Relation to vectors</div></td></tr> |
---|
[591] | 137 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpbf7d6716e6a2259c0d28e2e7477a0b81"></a> </p> |
---|
| 138 | <br/><br/></div></td></tr> |
---|
| 139 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bdd7f4072749c7cc864b78a418ca388"></a><!-- doxytag: member="bdm::RV::tostr" ref="a8bdd7f4072749c7cc864b78a418ca388" args="() const " --> |
---|
| 140 | <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> |
---|
| 141 | <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> |
---|
| 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> |
---|
| 144 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a5c5aeeaf39299d07763377b05a8241"></a><!-- doxytag: member="bdm::RV::mint" ref="a9a5c5aeeaf39299d07763377b05a8241" args="() const " --> |
---|
| 145 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241">mint</a> () const </td></tr> |
---|
| 146 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Minimum time-offset. <br/></td></tr> |
---|
| 147 | <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> |
---|
| 148 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab92b361335a644df654cf7cf7e5ffc0"></a><!-- doxytag: member="bdm::RV::clear_all" ref="aab92b361335a644df654cf7cf7e5ffc0" args="()" --> |
---|
| 149 | static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aab92b361335a644df654cf7cf7e5ffc0">clear_all</a> ()</td></tr> |
---|
| 150 | <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> |
---|
| 151 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
---|
| 152 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0cfe477965243a89eb87a06b024e2fcb"></a><!-- doxytag: member="bdm::RV::dsize" ref="a0cfe477965243a89eb87a06b024e2fcb" args="" --> |
---|
| 153 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb">dsize</a></td></tr> |
---|
| 154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">size of the data vector <br/></td></tr> |
---|
| 155 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab11bfdceb831ed30d33b852dd4a6b385"></a><!-- doxytag: member="bdm::RV::len" ref="ab11bfdceb831ed30d33b852dd4a6b385" args="" --> |
---|
| 156 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385">len</a></td></tr> |
---|
| 157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">number of individual rvs <br/></td></tr> |
---|
| 158 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a9a4769ab5a322495bea0cd8091500b"></a><!-- doxytag: member="bdm::RV::ids" ref="a0a9a4769ab5a322495bea0cd8091500b" args="" --> |
---|
| 159 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b">ids</a></td></tr> |
---|
| 160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of unique IDs. <br/></td></tr> |
---|
| 161 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef6703854820bbf61736738f1bac6896"></a><!-- doxytag: member="bdm::RV::times" ref="aef6703854820bbf61736738f1bac6896" args="" --> |
---|
| 162 | ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896">times</a></td></tr> |
---|
| 163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Vector of shifts from current time. <br/></td></tr> |
---|
| 164 | <tr><td colspan="2"><h2>Access functions</h2></td></tr> |
---|
| 165 | <tr><td colspan="2"><p><a class="anchor" id="amgrp994eaf979fea144f0b347248094bff32"></a> </p> |
---|
| 166 | <br/><br/></td></tr> |
---|
| 167 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade30156104f61d86c94f758861418089"></a><!-- doxytag: member="bdm::RV::_dsize" ref="ade30156104f61d86c94f758861418089" args="() const " --> |
---|
[290] | 168 | int </td><td class="memItemRight" valign="bottom"><b>_dsize</b> () const </td></tr> |
---|
[591] | 169 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26318eb90cb172ea86d1f45de9131c4e"></a><!-- doxytag: member="bdm::RV::_ids" ref="a26318eb90cb172ea86d1f45de9131c4e" args="() const " --> |
---|
| 170 | const ivec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a26318eb90cb172ea86d1f45de9131c4e">_ids</a> () const </td></tr> |
---|
| 171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
---|
| 172 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39f9b44752376f07e346579b5ff8cbbd"></a><!-- doxytag: member="bdm::RV::countsize" ref="a39f9b44752376f07e346579b5ff8cbbd" args="() const " --> |
---|
| 173 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1RV.html#a39f9b44752376f07e346579b5ff8cbbd">countsize</a> () const </td></tr> |
---|
| 174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Recount size of the corresponding data vector. <br/></td></tr> |
---|
| 175 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a412d43294bac38fa1804829e38fa4eaf"></a><!-- doxytag: member="bdm::RV::cumsizes" ref="a412d43294bac38fa1804829e38fa4eaf" args="() const " --> |
---|
[290] | 176 | ivec </td><td class="memItemRight" valign="bottom"><b>cumsizes</b> () const </td></tr> |
---|
[591] | 177 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9ec8c3e756651ff352ab5e3d3acda4b"></a><!-- doxytag: member="bdm::RV::length" ref="ae9ec8c3e756651ff352ab5e3d3acda4b" args="() const " --> |
---|
[290] | 178 | int </td><td class="memItemRight" valign="bottom"><b>length</b> () const </td></tr> |
---|
[591] | 179 | <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 " --> |
---|
[290] | 180 | int </td><td class="memItemRight" valign="bottom"><b>id</b> (int at) const </td></tr> |
---|
[591] | 181 | <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 " --> |
---|
[290] | 182 | int </td><td class="memItemRight" valign="bottom"><b>size</b> (int at) const </td></tr> |
---|
[591] | 183 | <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 " --> |
---|
[290] | 184 | int </td><td class="memItemRight" valign="bottom"><b>time</b> (int at) const </td></tr> |
---|
[591] | 185 | <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 " --> |
---|
[290] | 186 | std::string </td><td class="memItemRight" valign="bottom"><b>name</b> (int at) const </td></tr> |
---|
[591] | 187 | <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)" --> |
---|
[290] | 188 | void </td><td class="memItemRight" valign="bottom"><b>set_time</b> (int at, int time0)</td></tr> |
---|
[591] | 189 | <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)" --> |
---|
| 190 | 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> |
---|
| 191 | <tr><td class="mdescLeft"> </td><td class="mdescRight">State output, e.g. for debugging. <br/></td></tr> |
---|
[259] | 192 | </table> |
---|
[591] | 193 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 194 | <p>Class representing variables, most often random variables. </p> |
---|
| 195 | <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> |
---|
| 196 | <p>The class is implemented using global variables to assure uniqueness of description:</p> |
---|
| 197 | <p>In is a vector </p> |
---|
| 198 | <div align="center"> |
---|
[396] | 199 | <img src="inline_dotgraph_1.dot.png" alt="inline_dotgraph_1.dot" border="0" usemap="#inline_dotgraph_1.dot.map"> |
---|
[591] | 200 | <map name="inline_dotgraph_1.dot.map" id="inline_dotgraph_1.dot.map"></map> |
---|
[290] | 201 | </div> |
---|
[591] | 202 | <hr/><h2>Member Function Documentation</h2> |
---|
| 203 | <a class="anchor" id="a87841b5ee43997b79789c0c22047e224"></a><!-- doxytag: member="bdm::RV::add" ref="a87841b5ee43997b79789c0c22047e224" args="(const RV &rv2)" --> |
---|
[259] | 204 | <div class="memitem"> |
---|
| 205 | <div class="memproto"> |
---|
| 206 | <table class="memname"> |
---|
| 207 | <tr> |
---|
[591] | 208 | <td class="memname">bool bdm::RV::add </td> |
---|
[259] | 209 | <td>(</td> |
---|
| 210 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
[591] | 211 | <td class="paramname"> <em>rv2</em></td> |
---|
[259] | 212 | <td> ) </td> |
---|
[290] | 213 | <td></td> |
---|
[259] | 214 | </tr> |
---|
| 215 | </table> |
---|
| 216 | </div> |
---|
| 217 | <div class="memdoc"> |
---|
| 218 | |
---|
[591] | 219 | <p>Add (concat) another variable to the current one,. </p> |
---|
| 220 | <dl class="return"><dt><b>Returns:</b></dt><dd>true if all rv2 were added, false if rv2 is in conflict </dd></dl> |
---|
[259] | 221 | |
---|
[591] | 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> |
---|
[259] | 223 | |
---|
[591] | 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> |
---|
[397] | 225 | |
---|
[259] | 226 | </div> |
---|
[591] | 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 " --> |
---|
[259] | 229 | <div class="memitem"> |
---|
| 230 | <div class="memproto"> |
---|
| 231 | <table class="memname"> |
---|
| 232 | <tr> |
---|
[591] | 233 | <td class="memname">void bdm::RV::dataind </td> |
---|
[259] | 234 | <td>(</td> |
---|
| 235 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
[290] | 236 | <td class="paramname"> <em>rv2</em>, </td> |
---|
| 237 | </tr> |
---|
| 238 | <tr> |
---|
| 239 | <td class="paramkey"></td> |
---|
[259] | 240 | <td></td> |
---|
[290] | 241 | <td class="paramtype">ivec & </td> |
---|
| 242 | <td class="paramname"> <em>selfi</em>, </td> |
---|
[259] | 243 | </tr> |
---|
[290] | 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> |
---|
[259] | 255 | </table> |
---|
| 256 | </div> |
---|
| 257 | <div class="memdoc"> |
---|
[591] | 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] | 259 | |
---|
[591] | 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> |
---|
[259] | 261 | |
---|
| 262 | </div> |
---|
[591] | 263 | </div> |
---|
| 264 | <a class="anchor" id="acbebdb5e0d30101a6eb63550ef701c55"></a><!-- doxytag: member="bdm::RV::dataind" ref="acbebdb5e0d30101a6eb63550ef701c55" args="(const RV &crv) const " --> |
---|
[259] | 265 | <div class="memitem"> |
---|
| 266 | <div class="memproto"> |
---|
| 267 | <table class="memname"> |
---|
| 268 | <tr> |
---|
[591] | 269 | <td class="memname">ivec bdm::RV::dataind </td> |
---|
[259] | 270 | <td>(</td> |
---|
| 271 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
[591] | 272 | <td class="paramname"> <em>crv</em></td> |
---|
[259] | 273 | <td> ) </td> |
---|
| 274 | <td> const</td> |
---|
| 275 | </tr> |
---|
| 276 | </table> |
---|
| 277 | </div> |
---|
| 278 | <div class="memdoc"> |
---|
[591] | 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> |
---|
[259] | 280 | |
---|
[591] | 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> |
---|
[259] | 282 | |
---|
[591] | 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> |
---|
[397] | 284 | |
---|
[259] | 285 | </div> |
---|
[591] | 286 | </div> |
---|
| 287 | <a class="anchor" id="a1367055b2608ad9d50d01a2da6cec869"></a><!-- doxytag: member="bdm::RV::findself" ref="a1367055b2608ad9d50d01a2da6cec869" args="(const RV &rv2) const " --> |
---|
[259] | 288 | <div class="memitem"> |
---|
| 289 | <div class="memproto"> |
---|
| 290 | <table class="memname"> |
---|
| 291 | <tr> |
---|
[591] | 292 | <td class="memname">ivec bdm::RV::findself </td> |
---|
[259] | 293 | <td>(</td> |
---|
| 294 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
[591] | 295 | <td class="paramname"> <em>rv2</em></td> |
---|
[290] | 296 | <td> ) </td> |
---|
| 297 | <td> const</td> |
---|
[259] | 298 | </tr> |
---|
| 299 | </table> |
---|
| 300 | </div> |
---|
| 301 | <div class="memdoc"> |
---|
| 302 | |
---|
[591] | 303 | <p>Find indices of self in another rv,. </p> |
---|
| 304 | <dl class="return"><dt><b>Returns:</b></dt><dd>ivec of the same size as self. </dd></dl> |
---|
[259] | 305 | |
---|
[591] | 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> |
---|
[290] | 307 | |
---|
[591] | 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> |
---|
[397] | 309 | |
---|
[259] | 310 | </div> |
---|
[591] | 311 | </div> |
---|
| 312 | <a class="anchor" id="a6564bdd36b6845a51446a192d33e1194"></a><!-- doxytag: member="bdm::RV::from_setting" ref="a6564bdd36b6845a51446a192d33e1194" args="(const Setting &set)" --> |
---|
[368] | 313 | <div class="memitem"> |
---|
| 314 | <div class="memproto"> |
---|
| 315 | <table class="memname"> |
---|
| 316 | <tr> |
---|
[591] | 317 | <td class="memname">void bdm::RV::from_setting </td> |
---|
[368] | 318 | <td>(</td> |
---|
| 319 | <td class="paramtype">const Setting & </td> |
---|
[591] | 320 | <td class="paramname"> <em>set</em></td> |
---|
[368] | 321 | <td> ) </td> |
---|
| 322 | <td><code> [virtual]</code></td> |
---|
| 323 | </tr> |
---|
| 324 | </table> |
---|
| 325 | </div> |
---|
| 326 | <div class="memdoc"> |
---|
| 327 | |
---|
[591] | 328 | <p><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). </p> |
---|
[538] | 329 | <div class="fragment"><pre class="fragment"> rv = { |
---|
[591] | 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> |
---|
[538] | 331 | <span class="comment">// UNIQUE IDENTIFIER same names = same variable</span> |
---|
[591] | 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> |
---|
[368] | 333 | |
---|
[538] | 334 | <span class="comment">//optional arguments</span> |
---|
| 335 | sizes = [1, 2, 3, ...]; <span class="comment">// (optional) default = ones()</span> |
---|
[591] | 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> |
---|
[538] | 337 | } |
---|
[368] | 338 | </pre></div> |
---|
[591] | 339 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
[368] | 340 | |
---|
[591] | 341 | <p>References <a class="el" href="user__info_8h_source.html#l00443">bdm::UI::get()</a>.</p> |
---|
[368] | 342 | |
---|
| 343 | </div> |
---|
[397] | 344 | </div> |
---|
[591] | 345 | <hr/>The documentation for this class was generated from the following files:<ul> |
---|
| 346 | <li><a class="el" href="bdmbase_8h_source.html">bdmbase.h</a></li> |
---|
| 347 | <li>bdmbase.cpp</li> |
---|
| 348 | </ul> |
---|
| 349 | </div> |
---|
| 350 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 30 22:10:50 2009 for mixpp by |
---|
[259] | 351 | <a href="http://www.doxygen.org/index.html"> |
---|
[591] | 352 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
---|
[259] | 353 | </body> |
---|
| 354 | </html> |
---|