73 | | <a name="l00018"></a>00018 <span class="preprocessor">#include "../itpp_ext.h"</span> |
74 | | <a name="l00019"></a>00019 <span class="preprocessor">#include "../bdmroot.h"</span> |
75 | | <a name="l00020"></a>00020 <span class="preprocessor">#include "../shared_ptr.h"</span> |
76 | | <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="user__info_8h.html" title="UI (user info) class for loading/saving objects from/to configuration files. It is...">user_info.h</a>"</span> |
| 70 | <a name="l00018"></a>00018 <span class="preprocessor">#include "../itpp_ext.h"</span> |
| 71 | <a name="l00019"></a>00019 <span class="preprocessor">#include "../bdmroot.h"</span> |
| 72 | <a name="l00020"></a>00020 <span class="preprocessor">#include "../shared_ptr.h"</span> |
| 73 | <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="user__info_8h.html" title="UI (user info) class for loading/saving objects from/to configuration files. It is...">user_info.h</a>"</span> |
85 | | <a name="l00032"></a><a class="code" href="classbdm_1_1str.html#a64675a73fc7324177175f19b3baeb0b0">00032</a> ivec <a class="code" href="classbdm_1_1str.html#a64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a>; |
86 | | <a name="l00034"></a><a class="code" href="classbdm_1_1str.html#a905dc0f240e40432c103708c4a34f80a">00034</a> ivec <a class="code" href="classbdm_1_1str.html#a905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a>; |
87 | | <a name="l00036"></a><a class="code" href="classbdm_1_1str.html#a7c6b9dccc6814d7bd1e8e2208a0d3f3f">00036</a> <a class="code" href="classbdm_1_1str.html#a7c6b9dccc6814d7bd1e8e2208a0d3f3f" title="Default constructor.">str</a> ( ivec ids0, ivec times0 ) : <a class="code" href="classbdm_1_1str.html#a64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1str.html#a905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a> ( times0 ) { |
88 | | <a name="l00037"></a>00037 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( times0.length() == ids0.length(), <span class="stringliteral">"Incompatible input"</span> ); |
| 82 | <a name="l00032"></a><a class="code" href="classbdm_1_1str.html#64675a73fc7324177175f19b3baeb0b0">00032</a> ivec <a class="code" href="classbdm_1_1str.html#64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a>; |
| 83 | <a name="l00034"></a><a class="code" href="classbdm_1_1str.html#905dc0f240e40432c103708c4a34f80a">00034</a> ivec <a class="code" href="classbdm_1_1str.html#905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a>; |
| 84 | <a name="l00036"></a><a class="code" href="classbdm_1_1str.html#7c6b9dccc6814d7bd1e8e2208a0d3f3f">00036</a> <a class="code" href="classbdm_1_1str.html#7c6b9dccc6814d7bd1e8e2208a0d3f3f" title="Default constructor.">str</a> ( ivec ids0, ivec times0 ) : <a class="code" href="classbdm_1_1str.html#64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1str.html#905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a> ( times0 ) { |
| 85 | <a name="l00037"></a>00037 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( times0.length() == ids0.length(), <span class="stringliteral">"Incompatible input"</span> ); |
106 | | <a name="l00098"></a><a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb">00098</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>; |
107 | | <a name="l00100"></a><a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385">00100</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; |
108 | | <a name="l00102"></a><a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b">00102</a> ivec <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>; |
109 | | <a name="l00104"></a><a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896">00104</a> ivec <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>; |
| 103 | <a name="l00098"></a><a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb">00098</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>; |
| 104 | <a name="l00100"></a><a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385">00100</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; |
| 105 | <a name="l00102"></a><a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b">00102</a> ivec <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>; |
| 106 | <a name="l00104"></a><a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896">00104</a> ivec <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>; |
116 | | <a name="l00114"></a>00114 <span class="keyword">explicit</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( <span class="keyword">const</span> ivec &ids0, enum_dummy dum ) : <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a> ( ids0.<a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ), <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( zeros_i ( ids0.<a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ) ) { |
117 | | <a name="l00115"></a>00115 <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> = <a class="code" href="classbdm_1_1RV.html#a39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>(); |
| 113 | <a name="l00114"></a>00114 <span class="keyword">explicit</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( <span class="keyword">const</span> ivec &ids0, enum_dummy dum ) : <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a> ( ids0.<a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ), <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( zeros_i ( ids0.<a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ) ) { |
| 114 | <a name="l00115"></a>00115 <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> = <a class="code" href="classbdm_1_1RV.html#39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>(); |
152 | | <a name="l00164"></a>00164 <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#a39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>() <span class="keyword">const</span>; |
153 | | <a name="l00166"></a>00166 ivec <a class="code" href="classbdm_1_1RV.html#a412d43294bac38fa1804829e38fa4eaf" title="Vector of cumulative sizes of RV.">cumsizes</a>() <span class="keyword">const</span>; |
154 | | <a name="l00168"></a><a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b">00168</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>()<span class="keyword"> const </span>{ |
155 | | <a name="l00169"></a>00169 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; |
| 149 | <a name="l00164"></a>00164 <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>() <span class="keyword">const</span>; |
| 150 | <a name="l00166"></a>00166 ivec <a class="code" href="classbdm_1_1RV.html#412d43294bac38fa1804829e38fa4eaf" title="Vector of cumulative sizes of RV.">cumsizes</a>() <span class="keyword">const</span>; |
| 151 | <a name="l00168"></a><a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b">00168</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>()<span class="keyword"> const </span>{ |
| 152 | <a name="l00169"></a>00169 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; |
169 | | <a name="l00184"></a><a class="code" href="classbdm_1_1RV.html#a9bae3443ded87dc9941d763e4c48cee0">00184</a> std::string <a class="code" href="classbdm_1_1RV.html#a9bae3443ded87dc9941d763e4c48cee0" title="returns name of a scalar at position scalat, i.e. it can be in the middle of vector...">scalarname</a> ( <span class="keywordtype">int</span> scalat )<span class="keyword"> const </span>{ |
170 | | <a name="l00185"></a>00185 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(scalat<<a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>,<span class="stringliteral">"Wrong input index"</span>); |
| 166 | <a name="l00184"></a><a class="code" href="classbdm_1_1RV.html#9bae3443ded87dc9941d763e4c48cee0">00184</a> std::string <a class="code" href="classbdm_1_1RV.html#9bae3443ded87dc9941d763e4c48cee0" title="returns name of a scalar at position scalat, i.e. it can be in the middle of vector...">scalarname</a> ( <span class="keywordtype">int</span> scalat )<span class="keyword"> const </span>{ |
| 167 | <a name="l00185"></a>00185 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(scalat<<a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>,<span class="stringliteral">"Wrong input index"</span>); |
186 | | <a name="l00205"></a>00205 ivec <a class="code" href="classbdm_1_1RV.html#a1367055b2608ad9d50d01a2da6cec869" title="Find indices of self in another rv,.">findself</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
187 | | <a name="l00207"></a>00207 ivec <a class="code" href="classbdm_1_1RV.html#aa858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
188 | | <a name="l00209"></a>00209 <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#a3bb011af88ae98f5c97955bb2c95cfee" title="Compare if rv2 is identical to this RV.">equal</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
189 | | <a name="l00211"></a>00211 <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#a87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ); |
190 | | <a name="l00213"></a>00213 <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#aaec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
191 | | <a name="l00215"></a>00215 <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( <span class="keyword">const</span> ivec &ind ) <span class="keyword">const</span>; |
| 183 | <a name="l00205"></a>00205 ivec <a class="code" href="classbdm_1_1RV.html#1367055b2608ad9d50d01a2da6cec869" title="Find indices of self in another rv,.">findself</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
| 184 | <a name="l00207"></a>00207 ivec <a class="code" href="classbdm_1_1RV.html#a858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
| 185 | <a name="l00209"></a>00209 <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#3bb011af88ae98f5c97955bb2c95cfee" title="Compare if rv2 is identical to this RV.">equal</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
| 186 | <a name="l00211"></a>00211 <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ); |
| 187 | <a name="l00213"></a>00213 <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#aec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &rv2 ) <span class="keyword">const</span>; |
| 188 | <a name="l00215"></a>00215 <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( <span class="keyword">const</span> ivec &ind ) <span class="keyword">const</span>; |
193 | | <a name="l00218"></a><a class="code" href="classbdm_1_1RV.html#a6f3daf0f857fff53a1c0a445fe160966">00218</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#a6f3daf0f857fff53a1c0a445fe160966" title="Select only variables at indices ind.">operator() </a>( <span class="keyword">const</span> ivec &ind )<span class="keyword"> const </span>{ |
194 | | <a name="l00219"></a>00219 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( ind ); |
| 190 | <a name="l00218"></a><a class="code" href="classbdm_1_1RV.html#6f3daf0f857fff53a1c0a445fe160966">00218</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#6f3daf0f857fff53a1c0a445fe160966" title="Select only variables at indices ind.">operator() </a>( <span class="keyword">const</span> ivec &ind )<span class="keyword"> const </span>{ |
| 191 | <a name="l00219"></a>00219 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( ind ); |
221 | | <a name="l00257"></a>00257 <a class="code" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a> <a class="code" href="classbdm_1_1RV.html#a8bdd7f4072749c7cc864b78a418ca388" title="generate str from rv, by expanding sizes">tostr</a>() <span class="keyword">const</span>; |
222 | | <a name="l00260"></a>00260 ivec <a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &crv ) <span class="keyword">const</span>; |
223 | | <a name="l00262"></a>00262 ivec <a class="code" href="classbdm_1_1RV.html#a0c6e3a1c54a612d2ea390c841aa5eb6f" title="same as dataind but this time crv should not be complete supperset of rv.">dataind_part</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &crv ) <span class="keyword">const</span>; |
224 | | <a name="l00265"></a>00265 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv2, ivec &selfi, ivec &rv2i ) <span class="keyword">const</span>; |
225 | | <a name="l00267"></a><a class="code" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241">00267</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>()<span class="keyword"> const </span>{ |
226 | | <a name="l00268"></a>00268 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>.length()>0 ? min (<a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>) : 0; |
| 218 | <a name="l00257"></a>00257 <a class="code" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a> <a class="code" href="classbdm_1_1RV.html#8bdd7f4072749c7cc864b78a418ca388" title="generate str from rv, by expanding sizes">tostr</a>() <span class="keyword">const</span>; |
| 219 | <a name="l00260"></a>00260 ivec <a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &crv ) <span class="keyword">const</span>; |
| 220 | <a name="l00262"></a>00262 ivec <a class="code" href="classbdm_1_1RV.html#0c6e3a1c54a612d2ea390c841aa5eb6f" title="same as dataind but this time crv should not be complete supperset of rv.">dataind_part</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &crv ) <span class="keyword">const</span>; |
| 221 | <a name="l00265"></a>00265 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv2, ivec &selfi, ivec &rv2i ) <span class="keyword">const</span>; |
| 222 | <a name="l00267"></a><a class="code" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241">00267</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>()<span class="keyword"> const </span>{ |
| 223 | <a name="l00268"></a>00268 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>.length()>0 ? min (<a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>) : 0; |
263 | | <a name="l00329"></a><a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">00329</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a>; |
264 | | <a name="l00331"></a><a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">00331</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; |
| 260 | <a name="l00329"></a><a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">00329</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a>; |
| 261 | <a name="l00331"></a><a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">00331</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; |
267 | | <a name="l00345"></a>00345 <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>() : <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( 0 ), <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>() {}; |
268 | | <a name="l00346"></a>00346 <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> &e ) : <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( e.<a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ), <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ( e.<a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) {}; |
269 | | <a name="l00347"></a>00347 epdf ( <span class="keyword">const</span> RV &rv0 ) : <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( rv0._dsize() ) { |
270 | | <a name="l00348"></a>00348 <a class="code" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</a> ( rv0 ); |
| 264 | <a name="l00345"></a>00345 <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>() : <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( 0 ), <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>() {}; |
| 265 | <a name="l00346"></a>00346 <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> &e ) : <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( e.<a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ), <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ( e.<a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) {}; |
| 266 | <a name="l00347"></a>00347 epdf ( <span class="keyword">const</span> RV &rv0 ) : <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( rv0._dsize() ) { |
| 267 | <a name="l00348"></a>00348 <a class="code" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</a> ( rv0 ); |
277 | | <a name="l00359"></a><a class="code" href="classbdm_1_1epdf.html#a75ba57a89681a8efec488f5796c7cc1b">00359</a> <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#a75ba57a89681a8efec488f5796c7cc1b" title="Returns a sample, from density .">sample</a>()<span class="keyword"> const </span>{ |
278 | | <a name="l00360"></a>00360 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"not implemented"</span> ); |
| 274 | <a name="l00359"></a><a class="code" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b">00359</a> <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b" title="Returns a sample, from density .">sample</a>()<span class="keyword"> const </span>{ |
| 275 | <a name="l00360"></a>00360 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"not implemented"</span> ); |
307 | | <a name="l00399"></a><a class="code" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">00399</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( vec &lb, vec &ub, <span class="keywordtype">double</span> percentage = 0.95 )<span class="keyword"> const </span>{ |
308 | | <a name="l00400"></a>00400 vec mea = <a class="code" href="classbdm_1_1epdf.html#a0c8d13d788094605b3cdab20a6e22b75" title="return expected value">mean</a>(); |
309 | | <a name="l00401"></a>00401 vec std = sqrt ( <a class="code" href="classbdm_1_1epdf.html#a4543d40ccfc5d549b0c831a57a3ed84c" title="return expected variance (not covariance!)">variance</a>() ); |
| 304 | <a name="l00399"></a><a class="code" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539">00399</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( vec &lb, vec &ub, <span class="keywordtype">double</span> percentage = 0.95 )<span class="keyword"> const </span>{ |
| 305 | <a name="l00400"></a>00400 vec mea = <a class="code" href="classbdm_1_1epdf.html#0c8d13d788094605b3cdab20a6e22b75" title="return expected value">mean</a>(); |
| 306 | <a name="l00401"></a>00401 vec std = sqrt ( <a class="code" href="classbdm_1_1epdf.html#4543d40ccfc5d549b0c831a57a3ed84c" title="return expected variance (not covariance!)">variance</a>() ); |
319 | | <a name="l00419"></a><a class="code" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">00419</a> <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9" title="True if rv is assigned.">isnamed</a>()<span class="keyword"> const </span>{ |
320 | | <a name="l00420"></a>00420 <span class="keywordtype">bool</span> b = ( <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> == <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); |
| 316 | <a name="l00419"></a><a class="code" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">00419</a> <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9" title="True if rv is assigned.">isnamed</a>()<span class="keyword"> const </span>{ |
| 317 | <a name="l00420"></a>00420 <span class="keywordtype">bool</span> b = ( <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> == <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); |
324 | | <a name="l00425"></a><a class="code" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21">00425</a> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& <a class="code" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>()<span class="keyword"> const </span>{ |
325 | | <a name="l00426"></a>00426 <span class="comment">//bdm_assert_debug ( isnamed(), "" );</span> |
326 | | <a name="l00427"></a>00427 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; |
| 321 | <a name="l00425"></a><a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">00425</a> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& <a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>()<span class="keyword"> const </span>{ |
| 322 | <a name="l00426"></a>00426 <span class="comment">//bdm_assert_debug ( isnamed(), "" );</span> |
| 323 | <a name="l00427"></a>00427 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; |
333 | | <a name="l00445"></a><a class="code" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">00445</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
334 | | <a name="l00446"></a>00446 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr<RV></a> r = UI::build<RV> ( <span class="keyword">set</span>, <span class="stringliteral">"rv"</span>, UI::optional ); |
| 330 | <a name="l00445"></a><a class="code" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">00445</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
| 331 | <a name="l00446"></a>00446 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr<RV></a> r = UI::build<RV> ( <span class="keyword">set</span>, <span class="stringliteral">"rv"</span>, UI::optional ); |
345 | | <a name="l00459"></a><a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6">00459</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a>; |
346 | | <a name="l00461"></a><a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288">00461</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>; |
| 342 | <a name="l00459"></a><a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">00459</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a>; |
| 343 | <a name="l00461"></a><a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">00461</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>; |
360 | | <a name="l00480"></a>00480 <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a>() : <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ( 0 ), <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>(), ep ( NULL ) { } |
| 357 | <a name="l00480"></a>00480 <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a>() : <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ( 0 ), <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>(), ep ( NULL ) { } |
365 | | <a name="l00489"></a><a class="code" href="classbdm_1_1mpdf.html#af0c1db6fcbb3aae2dd6123884457a367">00489</a> <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#af0c1db6fcbb3aae2dd6123884457a367" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( <span class="keyword">const</span> vec &cond ) { |
366 | | <a name="l00490"></a>00490 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 362 | <a name="l00489"></a><a class="code" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367">00489</a> <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( <span class="keyword">const</span> vec &cond ) { |
| 363 | <a name="l00490"></a>00490 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
372 | | <a name="l00498"></a><a class="code" href="classbdm_1_1mpdf.html#a6336a8a72462e2a56a3989a220f18b1b">00498</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf.html#a6336a8a72462e2a56a3989a220f18b1b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( <span class="keyword">const</span> vec &dt, <span class="keyword">const</span> vec &cond ) { |
373 | | <a name="l00499"></a>00499 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 369 | <a name="l00498"></a><a class="code" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b">00498</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( <span class="keyword">const</span> vec &dt, <span class="keyword">const</span> vec &cond ) { |
| 370 | <a name="l00499"></a>00499 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
385 | | <a name="l00513"></a><a class="code" href="classbdm_1_1mpdf.html#a2a0d03756f59924fd038980ee60bd904">00513</a> <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#a2a0d03756f59924fd038980ee60bd904" title="Array&lt;vec&gt; version of evallogcond.">evallogcond_m</a> ( <span class="keyword">const</span> Array<vec> &Dt, <span class="keyword">const</span> vec &cond ) { |
386 | | <a name="l00514"></a>00514 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 382 | <a name="l00513"></a><a class="code" href="classbdm_1_1mpdf.html#2a0d03756f59924fd038980ee60bd904">00513</a> <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#2a0d03756f59924fd038980ee60bd904" title="Array&lt;vec&gt; version of evallogcond.">evallogcond_m</a> ( <span class="keyword">const</span> Array<vec> &Dt, <span class="keyword">const</span> vec &cond ) { |
| 383 | <a name="l00514"></a>00514 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
424 | | <a name="l00570"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ae054b86262261abe0724f5890218689f">00570</a> <a class="code" href="classbdm_1_1mpdf__internal.html#ae054b86262261abe0724f5890218689f" title="constructor">mpdf_internal</a>() : <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a>(), <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>() { |
425 | | <a name="l00571"></a>00571 <a class="code" href="classbdm_1_1mpdf.html#a147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a> ); |
| 421 | <a name="l00570"></a><a class="code" href="classbdm_1_1mpdf__internal.html#e054b86262261abe0724f5890218689f">00570</a> <a class="code" href="classbdm_1_1mpdf__internal.html#e054b86262261abe0724f5890218689f" title="constructor">mpdf_internal</a>() : <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a>(), <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>() { |
| 422 | <a name="l00571"></a>00571 <a class="code" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a> ); |
436 | | <a name="l00586"></a>00586 vec <a class="code" href="classbdm_1_1mpdf__internal.html#ad8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">samplecond</a> ( <span class="keyword">const</span> vec &cond ); |
437 | | <a name="l00588"></a>00588 <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a89076e62b8d7df7616bad68c94591948" title="Reimplements evallogcond using condition().">evallogcond</a> ( <span class="keyword">const</span> vec &val, <span class="keyword">const</span> vec &cond ); |
438 | | <a name="l00590"></a>00590 <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> mat &Dt, <span class="keyword">const</span> vec &cond ); |
439 | | <a name="l00592"></a>00592 <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> Array<vec> &Dt, <span class="keyword">const</span> vec &cond ); |
440 | | <a name="l00594"></a>00594 <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">samplecond_m</a> ( <span class="keyword">const</span> vec &cond, <span class="keywordtype">int</span> N ); |
| 433 | <a name="l00586"></a>00586 vec <a class="code" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">samplecond</a> ( <span class="keyword">const</span> vec &cond ); |
| 434 | <a name="l00588"></a>00588 <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf__internal.html#89076e62b8d7df7616bad68c94591948" title="Reimplements evallogcond using condition().">evallogcond</a> ( <span class="keyword">const</span> vec &val, <span class="keyword">const</span> vec &cond ); |
| 435 | <a name="l00590"></a>00590 <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> mat &Dt, <span class="keyword">const</span> vec &cond ); |
| 436 | <a name="l00592"></a>00592 <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> Array<vec> &Dt, <span class="keyword">const</span> vec &cond ); |
| 437 | <a name="l00594"></a>00594 <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">samplecond_m</a> ( <span class="keyword">const</span> vec &cond, <span class="keywordtype">int</span> N ); |
454 | | <a name="l00638"></a><a class="code" href="classbdm_1_1datalink.html#a4016403730eb742462614d60393565cd">00638</a> <a class="code" href="classbdm_1_1datalink.html#a4016403730eb742462614d60393565cd" title="Convenience constructor.">datalink</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up ) { |
455 | | <a name="l00639"></a>00639 <a class="code" href="classbdm_1_1datalink.html#afb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up ); |
| 451 | <a name="l00638"></a><a class="code" href="classbdm_1_1datalink.html#4016403730eb742462614d60393565cd">00638</a> <a class="code" href="classbdm_1_1datalink.html#4016403730eb742462614d60393565cd" title="Convenience constructor.">datalink</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up ) { |
| 452 | <a name="l00639"></a>00639 <a class="code" href="classbdm_1_1datalink.html#fb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up ); |
462 | | <a name="l00649"></a><a class="code" href="classbdm_1_1datalink.html#a5b5368c3899eed2f670d09142c2548e5">00649</a> vec <a class="code" href="classbdm_1_1datalink.html#a5b5368c3899eed2f670d09142c2548e5" title="Get val for myself from val of &quot;Up&quot;.">pushdown</a> ( <span class="keyword">const</span> vec &val_up ) { |
463 | | <a name="l00650"></a>00650 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); |
464 | | <a name="l00651"></a>00651 <a class="code" href="classbdm_1_1datalink.html#ad49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val_up, tmp ); |
| 459 | <a name="l00649"></a><a class="code" href="classbdm_1_1datalink.html#5b5368c3899eed2f670d09142c2548e5">00649</a> vec <a class="code" href="classbdm_1_1datalink.html#5b5368c3899eed2f670d09142c2548e5" title="Get val for myself from val of &quot;Up&quot;.">pushdown</a> ( <span class="keyword">const</span> vec &val_up ) { |
| 460 | <a name="l00650"></a>00650 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); |
| 461 | <a name="l00651"></a>00651 <a class="code" href="classbdm_1_1datalink.html#d49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val_up, tmp ); |
467 | | <a name="l00655"></a><a class="code" href="classbdm_1_1datalink.html#ad49a14b65969f8fa1ae8ecab7ce77d6d">00655</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#ad49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( <span class="keyword">const</span> vec &val_up, vec &val_down ) { |
468 | | <a name="l00656"></a>00656 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &quot;Up&quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">"Wrong val_up"</span> ); |
469 | | <a name="l00657"></a>00657 val_down = val_up ( <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ); |
| 464 | <a name="l00655"></a><a class="code" href="classbdm_1_1datalink.html#d49a14b65969f8fa1ae8ecab7ce77d6d">00655</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#d49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( <span class="keyword">const</span> vec &val_up, vec &val_down ) { |
| 465 | <a name="l00656"></a>00656 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &quot;Up&quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">"Wrong val_up"</span> ); |
| 466 | <a name="l00657"></a>00657 val_down = val_up ( <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ); |
471 | | <a name="l00660"></a><a class="code" href="classbdm_1_1datalink.html#a736ec57cb8efce5f58b8f776a2d30d30">00660</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#a736ec57cb8efce5f58b8f776a2d30d30" title="Fill val of &quot;Up&quot; by my pieces.">pushup</a> ( vec &val_up, <span class="keyword">const</span> vec &val ) { |
472 | | <a name="l00661"></a>00661 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> == val.length(), <span class="stringliteral">"Wrong val"</span> ); |
473 | | <a name="l00662"></a>00662 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &quot;Up&quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">"Wrong val_up"</span> ); |
474 | | <a name="l00663"></a>00663 set_subvector ( val_up, <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>, val ); |
| 468 | <a name="l00660"></a><a class="code" href="classbdm_1_1datalink.html#736ec57cb8efce5f58b8f776a2d30d30">00660</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#736ec57cb8efce5f58b8f776a2d30d30" title="Fill val of &quot;Up&quot; by my pieces.">pushup</a> ( vec &val_up, <span class="keyword">const</span> vec &val ) { |
| 469 | <a name="l00661"></a>00661 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> == val.length(), <span class="stringliteral">"Wrong val"</span> ); |
| 470 | <a name="l00662"></a>00662 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &quot;Up&quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">"Wrong val_up"</span> ); |
| 471 | <a name="l00663"></a>00663 set_subvector ( val_up, <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>, val ); |
488 | | <a name="l00682"></a>00682 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#a6cef1083755c27e4476501abe6f49dce" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up ); |
489 | | <a name="l00684"></a><a class="code" href="classbdm_1_1datalink__part.html#aaba9b673ef82584e1bc06cc7a32b0a59">00684</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#aaba9b673ef82584e1bc06cc7a32b0a59" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( <span class="keyword">const</span> vec &val_up, vec &val_down ) { |
490 | | <a name="l00685"></a>00685 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); |
| 485 | <a name="l00682"></a>00682 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#6cef1083755c27e4476501abe6f49dce" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up ); |
| 486 | <a name="l00684"></a><a class="code" href="classbdm_1_1datalink__part.html#aba9b673ef82584e1bc06cc7a32b0a59">00684</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#aba9b673ef82584e1bc06cc7a32b0a59" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( <span class="keyword">const</span> vec &val_up, vec &val_down ) { |
| 487 | <a name="l00685"></a>00685 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); |
496 | | <a name="l00696"></a><a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988">00696</a> vec <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>; |
497 | | <a name="l00698"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc">00698</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>; |
498 | | <a name="l00700"></a><a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7">00700</a> ivec <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>; |
499 | | <a name="l00702"></a><a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5">00702</a> ivec <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a>; |
500 | | <a name="l00704"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc">00704</a> ivec <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>; |
| 493 | <a name="l00696"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988">00696</a> vec <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>; |
| 494 | <a name="l00698"></a><a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc">00698</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>; |
| 495 | <a name="l00700"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7">00700</a> ivec <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>; |
| 496 | <a name="l00702"></a><a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5">00702</a> ivec <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a>; |
| 497 | <a name="l00704"></a><a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc">00704</a> ivec <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>; |
503 | | <a name="l00707"></a>00707 <a class="code" href="classbdm_1_1datalink__buffered.html" title="Datalink that buffers delayed values - do not forget to call step().">datalink_buffered</a>() : <a class="code" href="classbdm_1_1datalink__part.html">datalink_part</a>(), <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ( 0 ) {}; |
504 | | <a name="l00709"></a><a class="code" href="classbdm_1_1datalink__buffered.html#af137706c55891ba8a8aecc52ea96865f">00709</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#af137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a> ( <span class="keyword">const</span> vec &val_up ) { |
505 | | <a name="l00710"></a>00710 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() > 0 ) { |
506 | | <a name="l00711"></a>00711 <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.shift_right ( 0, <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() ); |
507 | | <a name="l00712"></a>00712 <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.set_subvector ( 0, val_up(<a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>) ); |
| 500 | <a name="l00707"></a>00707 <a class="code" href="classbdm_1_1datalink__buffered.html" title="Datalink that buffers delayed values - do not forget to call step().">datalink_buffered</a>() : <a class="code" href="classbdm_1_1datalink__part.html">datalink_part</a>(), <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ( 0 ) {}; |
| 501 | <a name="l00709"></a><a class="code" href="classbdm_1_1datalink__buffered.html#f137706c55891ba8a8aecc52ea96865f">00709</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#f137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a> ( <span class="keyword">const</span> vec &val_up ) { |
| 502 | <a name="l00710"></a>00710 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() > 0 ) { |
| 503 | <a name="l00711"></a>00711 <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.shift_right ( 0, <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() ); |
| 504 | <a name="l00712"></a>00712 <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.set_subvector ( 0, val_up(<a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>) ); |
510 | | <a name="l00716"></a><a class="code" href="classbdm_1_1datalink__buffered.html#ae665d66cb42862c1181645c438110a96">00716</a> vec <a class="code" href="classbdm_1_1datalink__buffered.html#ae665d66cb42862c1181645c438110a96" title="Get val for myself from val of &quot;Up&quot;.">pushdown</a> ( <span class="keyword">const</span> vec &val_up ) { |
511 | | <a name="l00717"></a>00717 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); |
512 | | <a name="l00718"></a>00718 <a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val_up, tmp ); |
| 507 | <a name="l00716"></a><a class="code" href="classbdm_1_1datalink__buffered.html#e665d66cb42862c1181645c438110a96">00716</a> vec <a class="code" href="classbdm_1_1datalink__buffered.html#e665d66cb42862c1181645c438110a96" title="Get val for myself from val of &quot;Up&quot;.">pushdown</a> ( <span class="keyword">const</span> vec &val_up ) { |
| 508 | <a name="l00717"></a>00717 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); |
| 509 | <a name="l00718"></a>00718 <a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val_up, tmp ); |
516 | | <a name="l00722"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f">00722</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( <span class="keyword">const</span> vec &val_up, vec &val_down ) { |
517 | | <a name="l00723"></a>00723 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() >= <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>, <span class="stringliteral">"short val_down"</span> ); |
| 513 | <a name="l00722"></a><a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f">00722</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( <span class="keyword">const</span> vec &val_up, vec &val_down ) { |
| 514 | <a name="l00723"></a>00723 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() >= <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>, <span class="stringliteral">"short val_down"</span> ); |
519 | | <a name="l00725"></a>00725 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); <span class="comment">// copy direct values</span> |
520 | | <a name="l00726"></a>00726 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>, <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ) ); <span class="comment">// copy delayed values</span> |
| 516 | <a name="l00725"></a>00725 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); <span class="comment">// copy direct values</span> |
| 517 | <a name="l00726"></a>00726 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>, <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ) ); <span class="comment">// copy delayed values</span> |
529 | | <a name="l00735"></a>00735 ivec valid_ids = rv.<a class="code" href="classbdm_1_1RV.html#aa858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( rv_up ); |
530 | | <a name="l00736"></a>00736 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rv_hist = rv.<a class="code" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( find ( valid_ids >= 0 ) ); <span class="comment">// select only rvs that are in rv_up</span> |
| 526 | <a name="l00735"></a>00735 ivec valid_ids = rv.<a class="code" href="classbdm_1_1RV.html#a858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( rv_up ); |
| 527 | <a name="l00736"></a>00736 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rv_hist = rv.<a class="code" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( find ( valid_ids >= 0 ) ); <span class="comment">// select only rvs that are in rv_up</span> |
533 | | <a name="l00739"></a>00739 rv_hist = rv_hist.<a class="code" href="classbdm_1_1RV.html#ac5819f71d774649412c10b8e1716be1e" title="return rvs with expanded delayes and sorted in the order of:">expand_delayes</a>(); <span class="comment">// full regressor - including time 0</span> |
534 | | <a name="l00740"></a>00740 <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>=rv_hist.<a class="code" href="classbdm_1_1RV.html#aaec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a>(rv_hist0); <span class="comment">// remove time 0</span> |
535 | | <a name="l00741"></a>00741 <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> = zeros ( <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); |
| 530 | <a name="l00739"></a>00739 rv_hist = rv_hist.<a class="code" href="classbdm_1_1RV.html#c5819f71d774649412c10b8e1716be1e" title="return rvs with expanded delayes and sorted in the order of:">expand_delayes</a>(); <span class="comment">// full regressor - including time 0</span> |
| 531 | <a name="l00740"></a>00740 <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>=rv_hist.<a class="code" href="classbdm_1_1RV.html#aec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a>(rv_hist0); <span class="comment">// remove time 0</span> |
| 532 | <a name="l00741"></a>00741 <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> = zeros ( <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); |
538 | | <a name="l00744"></a>00744 <span class="keywordflow">if</span> (<a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() >0) { |
539 | | <a name="l00745"></a>00745 <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a> = rv_hist0.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv_up); <span class="comment">// indeces of elements of rv_up to be copied</span> |
| 535 | <a name="l00744"></a>00744 <span class="keywordflow">if</span> (<a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() >0) { |
| 536 | <a name="l00745"></a>00745 <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a> = rv_hist0.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv_up); <span class="comment">// indeces of elements of rv_up to be copied</span> |
544 | | <a name="l00750"></a>00750 <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> = <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>.length() + <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>.length(); |
545 | | <a name="l00751"></a>00751 <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &quot;Up&quot; should be.">upsize</a> = <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>.length(); |
| 541 | <a name="l00750"></a>00750 <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> = <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>.length() + <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>.length(); |
| 542 | <a name="l00751"></a>00751 <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &quot;Up&quot; should be.">upsize</a> = <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>.length(); |
547 | | <a name="l00754"></a><a class="code" href="classbdm_1_1datalink__buffered.html#ac95435dc0781d14529cddde9b2894b6d">00754</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#ac95435dc0781d14529cddde9b2894b6d" title="set history of variable given by rv1 to values of hist.">set_history</a>(<span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& rv1, <span class="keyword">const</span> vec &hist0){ |
548 | | <a name="l00755"></a>00755 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(rv1.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>()==hist0.length(),<span class="stringliteral">"hist is not compatible with given rv1"</span>); |
| 544 | <a name="l00754"></a><a class="code" href="classbdm_1_1datalink__buffered.html#c95435dc0781d14529cddde9b2894b6d">00754</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#c95435dc0781d14529cddde9b2894b6d" title="set history of variable given by rv1 to values of hist.">set_history</a>(<span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& rv1, <span class="keyword">const</span> vec &hist0){ |
| 545 | <a name="l00755"></a>00755 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(rv1.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>()==hist0.length(),<span class="stringliteral">"hist is not compatible with given rv1"</span>); |
551 | | <a name="l00758"></a>00758 <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv1, ind_H, ind_h0); <span class="comment">// find indeces of rv in </span> |
552 | | <a name="l00759"></a>00759 set_subvector(<a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>, ind_H, hist0(ind_h0)); <span class="comment">// copy given hist to appropriate places</span> |
| 548 | <a name="l00758"></a>00758 <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv1, ind_H, ind_h0); <span class="comment">// find indeces of rv in </span> |
| 549 | <a name="l00759"></a>00759 set_subvector(<a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>, ind_H, hist0(ind_h0)); <span class="comment">// copy given hist to appropriate places</span> |
561 | | <a name="l00770"></a><a class="code" href="classbdm_1_1datalink__2to1__buffered.html#aef1441b4885ae4d8e95b3ff28e575364">00770</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__2to1__buffered.html#aef1441b4885ae4d8e95b3ff28e575364" title="set connection between RVs">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up1, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up2 ) { |
562 | | <a name="l00771"></a>00771 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up1 ); |
563 | | <a name="l00772"></a>00772 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up2 ); |
| 558 | <a name="l00770"></a><a class="code" href="classbdm_1_1datalink__2to1__buffered.html#ef1441b4885ae4d8e95b3ff28e575364">00770</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__2to1__buffered.html#ef1441b4885ae4d8e95b3ff28e575364" title="set connection between RVs">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up1, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up2 ) { |
| 559 | <a name="l00771"></a>00771 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up1 ); |
| 560 | <a name="l00772"></a>00772 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up2 ); |
566 | | <a name="l00775"></a>00775 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() >= dl1.<a class="code" href="classbdm_1_1datalink.html#a8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>() + dl2.<a class="code" href="classbdm_1_1datalink.html#a8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>(), <span class="stringliteral">"short val_down"</span> ); |
567 | | <a name="l00776"></a>00776 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val1, val_down ); |
568 | | <a name="l00777"></a>00777 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val2, val_down ); |
| 563 | <a name="l00775"></a>00775 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() >= dl1.<a class="code" href="classbdm_1_1datalink.html#8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>() + dl2.<a class="code" href="classbdm_1_1datalink.html#8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>(), <span class="stringliteral">"short val_down"</span> ); |
| 564 | <a name="l00776"></a>00776 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val1, val_down ); |
| 565 | <a name="l00777"></a>00777 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &quot;Up&quot;.">filldown</a> ( val2, val_down ); |
589 | | <a name="l00804"></a>00804 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2e.html#aadd918bf877c48714cff51ee4ad989b0" title="Set connection between vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up ); |
| 586 | <a name="l00804"></a>00804 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2e.html#add918bf877c48714cff51ee4ad989b0" title="Set connection between vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up ); |
598 | | <a name="l00818"></a><a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d">00818</a> ivec <a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a>; |
599 | | <a name="l00820"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5">00820</a> ivec <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>; |
| 595 | <a name="l00818"></a><a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d">00818</a> ivec <a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a>; |
| 596 | <a name="l00820"></a><a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5">00820</a> ivec <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>; |
602 | | <a name="l00824"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a3baed32cb66f0e2f731032cec0a4d287">00824</a> <a class="code" href="classbdm_1_1datalink__m2m.html#a3baed32cb66f0e2f731032cec0a4d287" title="Constructor.">datalink_m2m</a>() {}; |
603 | | <a name="l00826"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a0ed49a99e8a3be264b952558b6f515d4">00826</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2m.html#a0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rvc_up ) { |
604 | | <a name="l00827"></a>00827 <a class="code" href="classbdm_1_1datalink__m2m.html#a0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">datalink_m2e::set_connection</a> ( rv, rvc, rv_up ); |
| 599 | <a name="l00824"></a><a class="code" href="classbdm_1_1datalink__m2m.html#3baed32cb66f0e2f731032cec0a4d287">00824</a> <a class="code" href="classbdm_1_1datalink__m2m.html#3baed32cb66f0e2f731032cec0a4d287" title="Constructor.">datalink_m2m</a>() {}; |
| 600 | <a name="l00826"></a><a class="code" href="classbdm_1_1datalink__m2m.html#0ed49a99e8a3be264b952558b6f515d4">00826</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2m.html#0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rv_up, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rvc_up ) { |
| 601 | <a name="l00827"></a>00827 <a class="code" href="classbdm_1_1datalink__m2m.html#0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">datalink_m2e::set_connection</a> ( rv, rvc, rv_up ); |
606 | | <a name="l00829"></a>00829 rvc.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( rvc_up, <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, <a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ); |
607 | | <a name="l00830"></a>00830 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>.length() + <a class="code" href="classbdm_1_1datalink__m2e.html#a9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>.length() == <a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a>, <span class="stringliteral">"cond is not fully given"</span> ); |
| 603 | <a name="l00829"></a>00829 rvc.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( rvc_up, <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, <a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ); |
| 604 | <a name="l00830"></a>00830 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>.length() + <a class="code" href="classbdm_1_1datalink__m2e.html#9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>.length() == <a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a>, <span class="stringliteral">"cond is not fully given"</span> ); |
610 | | <a name="l00834"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a911fb7fcfa80d4e31db8e0cc03141a90">00834</a> vec <a class="code" href="classbdm_1_1datalink__m2m.html#a911fb7fcfa80d4e31db8e0cc03141a90" title="Get cond for myself from val and cond of &quot;Up&quot;.">get_cond</a> ( <span class="keyword">const</span> vec &val_up, <span class="keyword">const</span> vec &cond_up ) { |
611 | | <a name="l00835"></a>00835 vec tmp ( <a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a> ); |
612 | | <a name="l00836"></a>00836 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2e.html#a9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>, val_up ( <a class="code" href="classbdm_1_1datalink__m2e.html#a43fe3e2d7aa04134053ec15793722783" title="upper_val-to-local_cond link, indices of the upper val">v2c_up</a> ) ); |
613 | | <a name="l00837"></a>00837 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, cond_up ( <a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ) ); |
| 607 | <a name="l00834"></a><a class="code" href="classbdm_1_1datalink__m2m.html#911fb7fcfa80d4e31db8e0cc03141a90">00834</a> vec <a class="code" href="classbdm_1_1datalink__m2m.html#911fb7fcfa80d4e31db8e0cc03141a90" title="Get cond for myself from val and cond of &quot;Up&quot;.">get_cond</a> ( <span class="keyword">const</span> vec &val_up, <span class="keyword">const</span> vec &cond_up ) { |
| 608 | <a name="l00835"></a>00835 vec tmp ( <a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a> ); |
| 609 | <a name="l00836"></a>00836 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2e.html#9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>, val_up ( <a class="code" href="classbdm_1_1datalink__m2e.html#43fe3e2d7aa04134053ec15793722783" title="upper_val-to-local_cond link, indices of the upper val">v2c_up</a> ) ); |
| 610 | <a name="l00837"></a>00837 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, cond_up ( <a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ) ); |
621 | | <a name="l00852"></a><a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f">00852</a> Array<RV> <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>; |
622 | | <a name="l00854"></a><a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02">00854</a> Array<string> <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>; |
| 618 | <a name="l00852"></a><a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f">00852</a> Array<RV> <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>; |
| 619 | <a name="l00854"></a><a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02">00854</a> Array<string> <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>; |
628 | | <a name="l00863"></a>00863 <span class="keywordflow">if</span> ( rv.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() > 0 ) { |
629 | | <a name="l00864"></a>00864 <span class="keywordtype">id</span> = <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length(); |
630 | | <a name="l00865"></a>00865 <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> = concat ( <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>, prefix ); <span class="comment">// diff</span> |
631 | | <a name="l00866"></a>00866 <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.set_length ( <span class="keywordtype">id</span> + 1, <span class="keyword">true</span> ); |
632 | | <a name="l00867"></a>00867 <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( <span class="keywordtype">id</span> ) = rv; |
| 625 | <a name="l00863"></a>00863 <span class="keywordflow">if</span> ( rv.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() > 0 ) { |
| 626 | <a name="l00864"></a>00864 <span class="keywordtype">id</span> = <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length(); |
| 627 | <a name="l00865"></a>00865 <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> = concat ( <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>, prefix ); <span class="comment">// diff</span> |
| 628 | <a name="l00866"></a>00866 <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.set_length ( <span class="keywordtype">id</span> + 1, <span class="keyword">true</span> ); |
| 629 | <a name="l00867"></a>00867 <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( <span class="keywordtype">id</span> ) = rv; |
639 | | <a name="l00875"></a><a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309">00875</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> vec &v ) { |
640 | | <a name="l00876"></a>00876 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 636 | <a name="l00875"></a><a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309">00875</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> vec &v ) { |
| 637 | <a name="l00876"></a>00876 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
642 | | <a name="l00879"></a><a class="code" href="classbdm_1_1logger.html#aaa1d72cd3d2ff6bbf87340154af02ea6">00879</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#aaa1d72cd3d2ff6bbf87340154af02ea6" title="log this double">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">double</span> &d ) { |
643 | | <a name="l00880"></a>00880 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 639 | <a name="l00879"></a><a class="code" href="classbdm_1_1logger.html#aa1d72cd3d2ff6bbf87340154af02ea6">00879</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#aa1d72cd3d2ff6bbf87340154af02ea6" title="log this double">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">double</span> &d ) { |
| 640 | <a name="l00880"></a>00880 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
682 | | <a name="l00953"></a><a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9">00953</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>; |
683 | | <a name="l00955"></a><a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983">00955</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>; |
684 | | <a name="l00957"></a><a class="code" href="classbdm_1_1DS.html#a22a4b29aa6e9f3bf17bcc4b28567e8bd">00957</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#a22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>; |
685 | | <a name="l00959"></a><a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec">00959</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>; |
686 | | <a name="l00961"></a><a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702">00961</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; <span class="comment">//</span> |
687 | | <a name="l00963"></a><a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995">00963</a> <span class="comment"></span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>; <span class="comment">//</span> |
688 | | <a name="l00965"></a><a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867">00965</a> <span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a>, L_ut; |
| 679 | <a name="l00953"></a><a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9">00953</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>; |
| 680 | <a name="l00955"></a><a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983">00955</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>; |
| 681 | <a name="l00957"></a><a class="code" href="classbdm_1_1DS.html#22a4b29aa6e9f3bf17bcc4b28567e8bd">00957</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>; |
| 682 | <a name="l00959"></a><a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec">00959</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>; |
| 683 | <a name="l00961"></a><a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702">00961</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; <span class="comment">//</span> |
| 684 | <a name="l00963"></a><a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995">00963</a> <span class="comment"></span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>; <span class="comment">//</span> |
| 685 | <a name="l00965"></a><a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867">00965</a> <span class="comment"></span> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a>, L_ut; |
692 | | <a name="l00971"></a><a class="code" href="classbdm_1_1DS.html#a76d11928675f276f805655ae2a05d773">00971</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#a76d11928675f276f805655ae2a05d773" title="Returns maximum number of provided data, by default it is set to maximum allowed...">max_length</a>() {<span class="keywordflow">return</span> std::numeric_limits< int >::max();} |
693 | | <a name="l00973"></a><a class="code" href="classbdm_1_1DS.html#ac1ec862dec7164fee3284c6f9a51b0ba">00973</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#ac1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { |
694 | | <a name="l00974"></a>00974 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); |
| 689 | <a name="l00971"></a><a class="code" href="classbdm_1_1DS.html#76d11928675f276f805655ae2a05d773">00971</a> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#76d11928675f276f805655ae2a05d773" title="Returns maximum number of provided data, by default it is set to maximum allowed...">max_length</a>() {<span class="keywordflow">return</span> std::numeric_limits< int >::max();} |
| 690 | <a name="l00973"></a><a class="code" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba">00973</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { |
| 691 | <a name="l00974"></a>00974 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); |
696 | | <a name="l00977"></a><a class="code" href="classbdm_1_1DS.html#aa0bf451c7fea73ff4150ff9e83da4832">00977</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#aa0bf451c7fea73ff4150ff9e83da4832" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indeces ) { |
697 | | <a name="l00978"></a>00978 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); |
| 693 | <a name="l00977"></a><a class="code" href="classbdm_1_1DS.html#a0bf451c7fea73ff4150ff9e83da4832">00977</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a0bf451c7fea73ff4150ff9e83da4832" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indeces ) { |
| 694 | <a name="l00978"></a>00978 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); |
704 | | <a name="l00987"></a><a class="code" href="classbdm_1_1DS.html#a6bced13f84f6bf04449728817e049e1d">00987</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a6bced13f84f6bf04449728817e049e1d" title="Accepts action variables at specific indeces.">write</a> ( vec &ut, <span class="keyword">const</span> ivec &indeces ) { |
705 | | <a name="l00988"></a>00988 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); |
| 701 | <a name="l00987"></a><a class="code" href="classbdm_1_1DS.html#6bced13f84f6bf04449728817e049e1d">00987</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#6bced13f84f6bf04449728817e049e1d" title="Accepts action variables at specific indeces.">write</a> ( vec &ut, <span class="keyword">const</span> ivec &indeces ) { |
| 702 | <a name="l00988"></a>00988 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); |
713 | | <a name="l00998"></a><a class="code" href="classbdm_1_1DS.html#a3c9e417d85052396fe74c164857ee67e">00998</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a3c9e417d85052396fe74c164857ee67e" title="Register DS for logging into logger L.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) { |
714 | | <a name="l00999"></a>00999 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> == <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">"invalid DS: dtsize ("</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> ) + <span class="stringliteral">") different from Drv "</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); |
715 | | <a name="l01000"></a>01000 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> == <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">"invalid DS: utsize ("</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> ) + <span class="stringliteral">") different from Urv "</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); |
| 710 | <a name="l00998"></a><a class="code" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e">00998</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e" title="Register DS for logging into logger L.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) { |
| 711 | <a name="l00999"></a>00999 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> == <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">"invalid DS: dtsize ("</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> ) + <span class="stringliteral">") different from Drv "</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); |
| 712 | <a name="l01000"></a>01000 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> == <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">"invalid DS: utsize ("</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> ) + <span class="stringliteral">") different from Urv "</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); |
717 | | <a name="l01002"></a>01002 <a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a> = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>, <span class="stringliteral">""</span> ); |
718 | | <a name="l01003"></a>01003 L_ut = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>, <span class="stringliteral">""</span> ); |
| 714 | <a name="l01002"></a>01002 <a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a> = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>, <span class="stringliteral">""</span> ); |
| 715 | <a name="l01003"></a>01003 L_ut = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>, <span class="stringliteral">""</span> ); |
720 | | <a name="l01006"></a><a class="code" href="classbdm_1_1DS.html#ae03d2c93cddd5c3a03107ddd3ae999cf">01006</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#ae03d2c93cddd5c3a03107ddd3ae999cf" title="Register DS for logging into logger L.">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) { |
721 | | <a name="l01007"></a>01007 vec tmp ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() + <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); |
722 | | <a name="l01008"></a>01008 <a class="code" href="classbdm_1_1DS.html#ac1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( tmp ); |
| 717 | <a name="l01006"></a><a class="code" href="classbdm_1_1DS.html#e03d2c93cddd5c3a03107ddd3ae999cf">01006</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#e03d2c93cddd5c3a03107ddd3ae999cf" title="Register DS for logging into logger L.">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L ) { |
| 718 | <a name="l01007"></a>01007 vec tmp ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() + <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); |
| 719 | <a name="l01008"></a>01008 <a class="code" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( tmp ); |
732 | | <a name="l01020"></a><a class="code" href="classbdm_1_1DS.html#aa6a9a375da64c82fc227bda3418a1f33">01020</a> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& <a class="code" href="classbdm_1_1DS.html#aa6a9a375da64c82fc227bda3418a1f33" title="access function">_urv</a>()<span class="keyword"> const </span>{ |
733 | | <a name="l01021"></a>01021 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; |
| 729 | <a name="l01020"></a><a class="code" href="classbdm_1_1DS.html#a6a9a375da64c82fc227bda3418a1f33">01020</a> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& <a class="code" href="classbdm_1_1DS.html#a6a9a375da64c82fc227bda3418a1f33" title="access function">_urv</a>()<span class="keyword"> const </span>{ |
| 730 | <a name="l01021"></a>01021 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; |
738 | | <a name="l01028"></a><a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc">01028</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a> (<span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &yrv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &urv) { |
739 | | <a name="l01029"></a>01029 <a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a> = yrv; |
740 | | <a name="l01030"></a>01030 <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> = concat(yrv,urv); |
741 | | <a name="l01031"></a>01031 <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a> = urv; |
| 735 | <a name="l01028"></a><a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc">01028</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a> (<span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &yrv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &urv) { |
| 736 | <a name="l01029"></a>01029 <a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a> = yrv; |
| 737 | <a name="l01030"></a>01030 <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> = concat(yrv,urv); |
| 738 | <a name="l01031"></a>01031 <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a> = urv; |
747 | | <a name="l01059"></a><a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed">01059</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a>; |
748 | | <a name="l01061"></a><a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a">01061</a> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a>; |
749 | | <a name="l01063"></a><a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee">01063</a> <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a>; |
| 744 | <a name="l01059"></a><a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed">01059</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a>; |
| 745 | <a name="l01061"></a><a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a">01061</a> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a>; |
| 746 | <a name="l01063"></a><a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee">01063</a> <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a>; |
752 | | <a name="l01068"></a>01068 <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>() : <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( 0 ), <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( true ), <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 4 ), <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 4 ) { |
753 | | <a name="l01069"></a>01069 <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> = -1;<span class="comment">/*empty IDs*/</span> |
754 | | <a name="l01070"></a>01070 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> = 0; |
755 | | <a name="l01071"></a>01071 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1; <span class="comment">/*log only mean*/</span> |
| 749 | <a name="l01068"></a>01068 <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>() : <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( 0 ), <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( true ), <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 4 ), <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 4 ) { |
| 750 | <a name="l01069"></a>01069 <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> = -1;<span class="comment">/*empty IDs*/</span> |
| 751 | <a name="l01070"></a>01070 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> = 0; |
| 752 | <a name="l01071"></a>01071 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1; <span class="comment">/*log only mean*/</span> |
757 | | <a name="l01073"></a>01073 <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> &B ) : <a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ( B.<a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ), <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( B.<a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ), <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( B.<a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ) {} |
758 | | <a name="l01076"></a><a class="code" href="classbdm_1_1BM.html#a40f01563651c1e4fe926189e41a6b8ab">01076</a> <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>* <a class="code" href="classbdm_1_1BM.html#a40f01563651c1e4fe926189e41a6b8ab">_copy_</a>()<span class="keyword"> const </span>{ |
| 754 | <a name="l01073"></a>01073 <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> &B ) : <a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ( B.<a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ), <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( B.<a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ), <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( B.<a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ) {} |
| 755 | <a name="l01076"></a><a class="code" href="classbdm_1_1BM.html#40f01563651c1e4fe926189e41a6b8ab">01076</a> <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>* <a class="code" href="classbdm_1_1BM.html#40f01563651c1e4fe926189e41a6b8ab">_copy_</a>()<span class="keyword"> const </span>{ |
763 | | <a name="l01087"></a>01087 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a60b1779a577367c369a932cabd3a6188" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &dt ) = 0; |
764 | | <a name="l01089"></a>01089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a1dee3fddaf021e62d925289660a707dc" title="Batch Bayes rule (columns of Dt are observations).">bayesB</a> ( <span class="keyword">const</span> mat &Dt ); |
765 | | <a name="l01092"></a><a class="code" href="classbdm_1_1BM.html#a50257e0c1e5b5c73153ea6e716ad8ae0">01092</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#a50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> ( <span class="keyword">const</span> vec &dt )<span class="keyword"> const </span>{ |
766 | | <a name="l01093"></a>01093 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 760 | <a name="l01087"></a>01087 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#60b1779a577367c369a932cabd3a6188" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &dt ) = 0; |
| 761 | <a name="l01089"></a>01089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#1dee3fddaf021e62d925289660a707dc" title="Batch Bayes rule (columns of Dt are observations).">bayesB</a> ( <span class="keyword">const</span> mat &Dt ); |
| 762 | <a name="l01092"></a><a class="code" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">01092</a> <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> ( <span class="keyword">const</span> vec &dt )<span class="keyword"> const </span>{ |
| 763 | <a name="l01093"></a>01093 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
778 | | <a name="l01107"></a><a class="code" href="classbdm_1_1BM.html#a688d7a2aced1e06aa1c468d73a9e5eba">01107</a> <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* <a class="code" href="classbdm_1_1BM.html#a688d7a2aced1e06aa1c468d73a9e5eba" title="Constructs a predictive density .">epredictor</a>()<span class="keyword"> const </span>{ |
779 | | <a name="l01108"></a>01108 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 775 | <a name="l01107"></a><a class="code" href="classbdm_1_1BM.html#688d7a2aced1e06aa1c468d73a9e5eba">01107</a> <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* <a class="code" href="classbdm_1_1BM.html#688d7a2aced1e06aa1c468d73a9e5eba" title="Constructs a predictive density .">epredictor</a>()<span class="keyword"> const </span>{ |
| 776 | <a name="l01108"></a>01108 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
782 | | <a name="l01112"></a><a class="code" href="classbdm_1_1BM.html#a598b25e3f3d96a5bc00a5faeb5b3c912">01112</a> <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a>* <a class="code" href="classbdm_1_1BM.html#a598b25e3f3d96a5bc00a5faeb5b3c912" title="Constructs conditional density of 1-step ahead predictor .">predictor</a>()<span class="keyword"> const </span>{ |
783 | | <a name="l01113"></a>01113 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
| 779 | <a name="l01112"></a><a class="code" href="classbdm_1_1BM.html#598b25e3f3d96a5bc00a5faeb5b3c912">01112</a> <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a>* <a class="code" href="classbdm_1_1BM.html#598b25e3f3d96a5bc00a5faeb5b3c912" title="Constructs conditional density of 1-step ahead predictor .">predictor</a>()<span class="keyword"> const </span>{ |
| 780 | <a name="l01113"></a>01113 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); |
788 | | <a name="l01124"></a><a class="code" href="classbdm_1_1BM.html#ade95c590d650b2db423d53992f0906cb">01124</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#ade95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; |
789 | | <a name="l01126"></a><a class="code" href="classbdm_1_1BM.html#ab5e8e016be16e4029c789063cb3f3b33">01126</a> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& <a class="code" href="classbdm_1_1BM.html#ab5e8e016be16e4029c789063cb3f3b33" title="access function">_rvc</a>()<span class="keyword"> const </span>{ |
790 | | <a name="l01127"></a>01127 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#ade95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; |
| 785 | <a name="l01124"></a><a class="code" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb">01124</a> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; |
| 786 | <a name="l01126"></a><a class="code" href="classbdm_1_1BM.html#b5e8e016be16e4029c789063cb3f3b33">01126</a> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>& <a class="code" href="classbdm_1_1BM.html#b5e8e016be16e4029c789063cb3f3b33" title="access function">_rvc</a>()<span class="keyword"> const </span>{ |
| 787 | <a name="l01127"></a>01127 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; |
818 | | <a name="l01163"></a><a class="code" href="classbdm_1_1BM.html#aadb539fa2585c8a2a91c54e5aebf330e">01163</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#aadb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &quot;logbounds,logll&quot;.">set_options</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &opt ) { |
819 | | <a name="l01164"></a>01164 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1; |
820 | | <a name="l01165"></a>01165 <span class="keywordflow">if</span> ( opt.find ( <span class="stringliteral">"logbounds"</span> ) != string::npos ) { |
821 | | <a name="l01166"></a>01166 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) = 1; |
822 | | <a name="l01167"></a>01167 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) = 1; |
| 815 | <a name="l01163"></a><a class="code" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e">01163</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &quot;logbounds,logll&quot;.">set_options</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &opt ) { |
| 816 | <a name="l01164"></a>01164 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1; |
| 817 | <a name="l01165"></a>01165 <span class="keywordflow">if</span> ( opt.find ( <span class="stringliteral">"logbounds"</span> ) != string::npos ) { |
| 818 | <a name="l01166"></a>01166 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) = 1; |
| 819 | <a name="l01167"></a>01167 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) = 1; |
830 | | <a name="l01177"></a><a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207">01177</a> ivec <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a>; |
831 | | <a name="l01179"></a><a class="code" href="classbdm_1_1BM.html#a2298ca6af9b13a78a4c9e18ab43f1827">01179</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a2298ca6af9b13a78a4c9e18ab43f1827" title="Add all logged variables to a logger.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L, <span class="keyword">const</span> <span class="keywordtype">string</span> &name = <span class="stringliteral">""</span> ) { |
| 827 | <a name="l01177"></a><a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207">01177</a> ivec <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a>; |
| 828 | <a name="l01179"></a><a class="code" href="classbdm_1_1BM.html#2298ca6af9b13a78a4c9e18ab43f1827">01179</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#2298ca6af9b13a78a4c9e18ab43f1827" title="Add all logged variables to a logger.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &L, <span class="keyword">const</span> <span class="keywordtype">string</span> &name = <span class="stringliteral">""</span> ) { |
841 | | <a name="l01189"></a>01189 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"mean_"</span> ); |
842 | | <a name="l01190"></a>01190 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"lb_"</span> ); |
843 | | <a name="l01191"></a>01191 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"ub_"</span> ); |
844 | | <a name="l01192"></a>01192 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"ll"</span>, 1 ), name ); <span class="comment">//TODO: "local" RV</span> |
| 838 | <a name="l01189"></a>01189 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"mean_"</span> ); |
| 839 | <a name="l01190"></a>01190 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"lb_"</span> ); |
| 840 | <a name="l01191"></a>01191 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"ub_"</span> ); |
| 841 | <a name="l01192"></a>01192 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"ll"</span>, 1 ), name ); <span class="comment">//TODO: "local" RV</span> |
847 | | <a name="l01195"></a>01195 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ), posterior().mean() ); |
848 | | <a name="l01196"></a>01196 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) || <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) { <span class="comment">//if one of them is off, its LID==-1 and will not be stored</span> |
| 844 | <a name="l01195"></a>01195 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ), posterior().mean() ); |
| 845 | <a name="l01196"></a>01196 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) || <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) { <span class="comment">//if one of them is off, its LID==-1 and will not be stored</span> |
850 | | <a name="l01198"></a>01198 posterior().<a class="code" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( lb, ub ); |
851 | | <a name="l01199"></a>01199 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ), lb ); |
852 | | <a name="l01200"></a>01200 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ), ub ); |
| 847 | <a name="l01198"></a>01198 posterior().<a class="code" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( lb, ub ); |
| 848 | <a name="l01199"></a>01199 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ), lb ); |
| 849 | <a name="l01200"></a>01200 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ), ub ); |
854 | | <a name="l01202"></a>01202 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ), <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ); |
| 851 | <a name="l01202"></a>01202 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ), <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ); |
856 | | <a name="l01205"></a><a class="code" href="classbdm_1_1BM.html#a23c6a8f71f922023ab08dcb0487a86de">01205</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a23c6a8f71f922023ab08dcb0487a86de" title="This method arrange instance properties according the data stored in the Setting...">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
857 | | <a name="l01206"></a>01206 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr<RV></a> r = UI::build<RV> ( <span class="keyword">set</span>, <span class="stringliteral">"drv"</span>, UI::optional ); |
| 853 | <a name="l01205"></a><a class="code" href="classbdm_1_1BM.html#23c6a8f71f922023ab08dcb0487a86de">01205</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#23c6a8f71f922023ab08dcb0487a86de" title="This method arrange instance properties according the data stored in the Setting...">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
| 854 | <a name="l01206"></a>01206 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr<RV></a> r = UI::build<RV> ( <span class="keyword">set</span>, <span class="stringliteral">"drv"</span>, UI::optional ); |
862 | | <a name="l01211"></a>01211 <span class="keywordflow">if</span> ( !<a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a> ( opt, <span class="keyword">set</span>, <span class="stringliteral">"options"</span>, UI::optional ) ) { |
863 | | <a name="l01212"></a>01212 <a class="code" href="classbdm_1_1BM.html#aadb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &quot;logbounds,logll&quot;.">set_options</a> ( opt ); |
| 859 | <a name="l01211"></a>01211 <span class="keywordflow">if</span> ( !<a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a> ( opt, <span class="keyword">set</span>, <span class="stringliteral">"options"</span>, UI::optional ) ) { |
| 860 | <a name="l01212"></a>01212 <a class="code" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &quot;logbounds,logll&quot;.">set_options</a> ( opt ); |
874 | | <a name="l01223"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ad8e547695d1cc19219b91164d825c930">01223</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ad8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">mpdf_internal<EPDF>::samplecond</a> ( <span class="keyword">const</span> vec &cond ) { |
875 | | <a name="l01224"></a>01224 <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
876 | | <a name="l01225"></a>01225 vec temp = <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.sample(); |
| 871 | <a name="l01223"></a><a class="code" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930">01223</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">mpdf_internal<EPDF>::samplecond</a> ( <span class="keyword">const</span> vec &cond ) { |
| 872 | <a name="l01224"></a>01224 <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
| 873 | <a name="l01225"></a>01225 vec temp = <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.sample(); |
881 | | <a name="l01230"></a><a class="code" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">01230</a> mat <a class="code" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">mpdf_internal<EPDF>::samplecond_m</a> ( <span class="keyword">const</span> vec &cond, <span class="keywordtype">int</span> N ) { |
882 | | <a name="l01231"></a>01231 <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
| 878 | <a name="l01230"></a><a class="code" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">01230</a> mat <a class="code" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">mpdf_internal<EPDF>::samplecond_m</a> ( <span class="keyword">const</span> vec &cond, <span class="keywordtype">int</span> N ) { |
| 879 | <a name="l01231"></a>01231 <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
902 | | <a name="l01251"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c">01251</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal<EPDF>::evallogcond_m</a> ( <span class="keyword">const</span> mat &Dt, <span class="keyword">const</span> vec &cond ) { |
903 | | <a name="l01252"></a>01252 <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
904 | | <a name="l01253"></a>01253 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); |
| 899 | <a name="l01251"></a><a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c">01251</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal<EPDF>::evallogcond_m</a> ( <span class="keyword">const</span> mat &Dt, <span class="keyword">const</span> vec &cond ) { |
| 900 | <a name="l01252"></a>01252 <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
| 901 | <a name="l01253"></a>01253 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); |
908 | | <a name="l01257"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ae82db07ce8af02f29cfd81e014edb3db">01257</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal<EPDF>::evallogcond_m</a> ( <span class="keyword">const</span> Array<vec> &Dt, <span class="keyword">const</span> vec &cond ) { |
909 | | <a name="l01258"></a>01258 <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
910 | | <a name="l01259"></a>01259 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); |
| 905 | <a name="l01257"></a><a class="code" href="classbdm_1_1mpdf__internal.html#e82db07ce8af02f29cfd81e014edb3db">01257</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal<EPDF>::evallogcond_m</a> ( <span class="keyword">const</span> Array<vec> &Dt, <span class="keyword">const</span> vec &cond ) { |
| 906 | <a name="l01258"></a>01258 <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); |
| 907 | <a name="l01259"></a>01259 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); |