79 | | <a name="l00032"></a><a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260">00032</a> mat <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>; |
80 | | <a name="l00034"></a><a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107">00034</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a>; |
81 | | <a name="l00036"></a><a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4">00036</a> ivec <a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>; |
| 76 | <a name="l00032"></a><a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260">00032</a> mat <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>; |
| 77 | <a name="l00034"></a><a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107">00034</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a>; |
| 78 | <a name="l00036"></a><a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4">00036</a> ivec <a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>; |
84 | | <a name="l00039"></a><a class="code" href="classbdm_1_1MemDS.html#a339a488b93f2fc37c80d9a9573fbd421">00039</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1MemDS.html#a339a488b93f2fc37c80d9a9573fbd421" title="Returns maximum number of provided data, by default it is set to maximum allowed...">max_length</a>() {<span class="keywordflow">return</span> <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.cols();} |
85 | | <a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#a23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ); |
86 | | <a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#a23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indeces ); |
| 81 | <a name="l00039"></a><a class="code" href="classbdm_1_1MemDS.html#339a488b93f2fc37c80d9a9573fbd421">00039</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1MemDS.html#339a488b93f2fc37c80d9a9573fbd421" title="Returns maximum number of provided data, by default it is set to maximum allowed...">max_length</a>() {<span class="keywordflow">return</span> <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.cols();} |
| 82 | <a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ); |
| 83 | <a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#23522b9e7dd0bb0c365cc9cde4c05449" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indeces ); |
97 | | <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#a21916feb3e5ff960855c09b06a0d279b" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>(); |
98 | | <a name="l00054"></a><a class="code" href="classbdm_1_1MemDS.html#a1ea231f4066652996cde4826560d93e3">00054</a> <a class="code" href="classbdm_1_1MemDS.html#a1ea231f4066652996cde4826560d93e3" title="Default constructor.">MemDS</a> () {}; |
99 | | <a name="l00055"></a>00055 <a class="code" href="classbdm_1_1MemDS.html#a1ea231f4066652996cde4826560d93e3" title="Default constructor.">MemDS</a> ( mat &Dat, ivec &rowid0); |
100 | | <a name="l00080"></a><a class="code" href="classbdm_1_1MemDS.html#afaebfe6d7a2a43421be05d8cf7d7ae45">00080</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#afaebfe6d7a2a43421be05d8cf7d7ae45">from_setting</a>(<span class="keyword">const</span> Setting &<span class="keyword">set</span>){ |
101 | | <a name="l00081"></a>00081 <a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(<a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>, <span class="keyword">set</span>, <span class="stringliteral">"Data"</span>, UI::compulsory); |
102 | | <a name="l00082"></a>00082 <span class="keywordflow">if</span>(!<a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(<a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a>, <span class="keyword">set</span>,<span class="stringliteral">"time"</span>, UI::optional)) {<a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> =0;} |
103 | | <a name="l00083"></a>00083 <span class="keywordflow">if</span>(!<a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(<a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>, <span class="keyword">set</span>, <span class="stringliteral">"rowid"</span>,UI::optional)) {<a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a> =linspace(0,<a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.rows()-1);} |
104 | | <a name="l00084"></a>00084 <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); |
| 94 | <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#21916feb3e5ff960855c09b06a0d279b" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>(); |
| 95 | <a name="l00054"></a><a class="code" href="classbdm_1_1MemDS.html#1ea231f4066652996cde4826560d93e3">00054</a> <a class="code" href="classbdm_1_1MemDS.html#1ea231f4066652996cde4826560d93e3" title="Default constructor.">MemDS</a> () {}; |
| 96 | <a name="l00055"></a>00055 <a class="code" href="classbdm_1_1MemDS.html#1ea231f4066652996cde4826560d93e3" title="Default constructor.">MemDS</a> ( mat &Dat, ivec &rowid0); |
| 97 | <a name="l00080"></a><a class="code" href="classbdm_1_1MemDS.html#faebfe6d7a2a43421be05d8cf7d7ae45">00080</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#faebfe6d7a2a43421be05d8cf7d7ae45">from_setting</a>(<span class="keyword">const</span> Setting &<span class="keyword">set</span>){ |
| 98 | <a name="l00081"></a>00081 <a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(<a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>, <span class="keyword">set</span>, <span class="stringliteral">"Data"</span>, UI::compulsory); |
| 99 | <a name="l00082"></a>00082 <span class="keywordflow">if</span>(!<a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(<a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a>, <span class="keyword">set</span>,<span class="stringliteral">"time"</span>, UI::optional)) {<a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> =0;} |
| 100 | <a name="l00083"></a>00083 <span class="keywordflow">if</span>(!<a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(<a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>, <span class="keyword">set</span>, <span class="stringliteral">"rowid"</span>,UI::optional)) {<a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a> =linspace(0,<a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.rows()-1);} |
| 101 | <a name="l00084"></a>00084 <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); |
108 | | <a name="l00088"></a>00088 <a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a>(*r,<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>()); <span class="comment">//empty urv</span> |
109 | | <a name="l00089"></a>00089 <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>=r->_dsize(); |
110 | | <a name="l00090"></a>00090 <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>=0; |
| 105 | <a name="l00088"></a>00088 <a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a>(*r,<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>()); <span class="comment">//empty urv</span> |
| 106 | <a name="l00089"></a>00089 <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>=r->_dsize(); |
| 107 | <a name="l00090"></a>00090 <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>=0; |
120 | | <a name="l00107"></a><a class="code" href="classbdm_1_1EpdfDS.html#aa1bd25d052dd50da9854d78e2f2096d0">00107</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#aa1bd25d052dd50da9854d78e2f2096d0" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>() { |
121 | | <a name="l00108"></a>00108 <a class="code" href="classbdm_1_1EpdfDS.html#a67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a>=<a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->sample(); |
| 117 | <a name="l00107"></a><a class="code" href="classbdm_1_1EpdfDS.html#a1bd25d052dd50da9854d78e2f2096d0">00107</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#a1bd25d052dd50da9854d78e2f2096d0" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>() { |
| 118 | <a name="l00108"></a>00108 <a class="code" href="classbdm_1_1EpdfDS.html#67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a>=<a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->sample(); |
133 | | <a name="l00127"></a><a class="code" href="classbdm_1_1EpdfDS.html#a3fdfb570b5d12332b2ba5662d17badac">00127</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#a3fdfb570b5d12332b2ba5662d17badac">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
134 | | <a name="l00128"></a>00128 <a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>=UI::build<epdf> ( <span class="keyword">set</span>,<span class="stringliteral">"epdf"</span>,UI::compulsory ); |
135 | | <a name="l00129"></a>00129 <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_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->isnamed(), <span class="stringliteral">"Input epdf must be named, check if RV is given correctly"</span>); |
136 | | <a name="l00130"></a>00130 <a class="code" href="classbdm_1_1EpdfDS.html#a67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a> = zeros(<a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->dimension()); |
137 | | <a name="l00131"></a>00131 <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>=dt.length(); |
138 | | <a name="l00132"></a>00132 <a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a>(<a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->_rv(),<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>()); |
139 | | <a name="l00133"></a>00133 <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> =0; |
140 | | <a name="l00134"></a>00134 <a class="code" href="classbdm_1_1EpdfDS.html#a0a35af977871319479542183fde6a647" title="This method TODO.">validate</a>(); |
| 130 | <a name="l00127"></a><a class="code" href="classbdm_1_1EpdfDS.html#3fdfb570b5d12332b2ba5662d17badac">00127</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#3fdfb570b5d12332b2ba5662d17badac">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
| 131 | <a name="l00128"></a>00128 <a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>=UI::build<epdf> ( <span class="keyword">set</span>,<span class="stringliteral">"epdf"</span>,UI::compulsory ); |
| 132 | <a name="l00129"></a>00129 <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_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->isnamed(), <span class="stringliteral">"Input epdf must be named, check if RV is given correctly"</span>); |
| 133 | <a name="l00130"></a>00130 <a class="code" href="classbdm_1_1EpdfDS.html#67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a> = zeros(<a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->dimension()); |
| 134 | <a name="l00131"></a>00131 <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>=dt.length(); |
| 135 | <a name="l00132"></a>00132 <a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a>(<a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>->_rv(),<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>()); |
| 136 | <a name="l00133"></a>00133 <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> =0; |
| 137 | <a name="l00134"></a>00134 <a class="code" href="classbdm_1_1EpdfDS.html#0a35af977871319479542183fde6a647" title="This method TODO.">validate</a>(); |
150 | | <a name="l00148"></a><a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac">00148</a> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr<mpdf></a> <a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>; |
151 | | <a name="l00150"></a><a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082">00150</a> vec <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>; |
152 | | <a name="l00152"></a><a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417">00152</a> vec <a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>; |
153 | | <a name="l00154"></a><a class="code" href="classbdm_1_1MpdfDS.html#a54e70167144e692877e7b49633219d5a">00154</a> <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_1MpdfDS.html#a54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>; |
154 | | <a name="l00156"></a><a class="code" href="classbdm_1_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b">00156</a> <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_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>; |
155 | | <a name="l00158"></a><a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e">00158</a> vec <a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a>; |
| 147 | <a name="l00148"></a><a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac">00148</a> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr<mpdf></a> <a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>; |
| 148 | <a name="l00150"></a><a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082">00150</a> vec <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>; |
| 149 | <a name="l00152"></a><a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417">00152</a> vec <a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>; |
| 150 | <a name="l00154"></a><a class="code" href="classbdm_1_1MpdfDS.html#54e70167144e692877e7b49633219d5a">00154</a> <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_1MpdfDS.html#54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>; |
| 151 | <a name="l00156"></a><a class="code" href="classbdm_1_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b">00156</a> <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_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>; |
| 152 | <a name="l00158"></a><a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e">00158</a> vec <a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a>; |
158 | | <a name="l00161"></a><a class="code" href="classbdm_1_1MpdfDS.html#a9dfd98688d14f647c613bf63a95a19b6">00161</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#a9dfd98688d14f647c613bf63a95a19b6" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>() { |
159 | | <a name="l00162"></a>00162 <a class="code" href="classbdm_1_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#af137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a>(<a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>); <span class="comment">// y is now history</span> |
160 | | <a name="l00163"></a>00163 <a class="code" href="classbdm_1_1MpdfDS.html#a54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>,<a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
161 | | <a name="l00164"></a>00164 <a class="code" href="classbdm_1_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>,<a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
162 | | <a name="l00165"></a>00165 <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>=<a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->samplecond ( <a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
163 | | <a name="l00166"></a>00166 <a class="code" href="classbdm_1_1MpdfDS.html#a54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#af137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a>(<a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>); <span class="comment">//u is now history</span> |
| 155 | <a name="l00161"></a><a class="code" href="classbdm_1_1MpdfDS.html#9dfd98688d14f647c613bf63a95a19b6">00161</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#9dfd98688d14f647c613bf63a95a19b6" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>() { |
| 156 | <a name="l00162"></a>00162 <a class="code" href="classbdm_1_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#f137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a>(<a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>); <span class="comment">// y is now history</span> |
| 157 | <a name="l00163"></a>00163 <a class="code" href="classbdm_1_1MpdfDS.html#54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>,<a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
| 158 | <a name="l00164"></a>00164 <a class="code" href="classbdm_1_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>,<a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
| 159 | <a name="l00165"></a>00165 <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>=<a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->samplecond ( <a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
| 160 | <a name="l00166"></a>00166 <a class="code" href="classbdm_1_1MpdfDS.html#54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#f137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a>(<a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>); <span class="comment">//u is now history</span> |
165 | | <a name="l00168"></a><a class="code" href="classbdm_1_1MpdfDS.html#a8752dbb56c269353cd5135349b4f8408">00168</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#a8752dbb56c269353cd5135349b4f8408" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt_out ) { |
166 | | <a name="l00169"></a>00169 <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>(dt_out.length()>=<a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>+<a class="code" href="classbdm_1_1DS.html#a22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>,<span class="stringliteral">"Short output vector"</span>); |
167 | | <a name="l00170"></a>00170 dt_out.set_subvector(0, <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>); |
168 | | <a name="l00171"></a>00171 dt_out.set_subvector(ytsize, <a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>); |
| 162 | <a name="l00168"></a><a class="code" href="classbdm_1_1MpdfDS.html#8752dbb56c269353cd5135349b4f8408">00168</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#8752dbb56c269353cd5135349b4f8408" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt_out ) { |
| 163 | <a name="l00169"></a>00169 <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>(dt_out.length()>=<a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>+<a class="code" href="classbdm_1_1DS.html#22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>,<span class="stringliteral">"Short output vector"</span>); |
| 164 | <a name="l00170"></a>00170 dt_out.set_subvector(0, <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>); |
| 165 | <a name="l00171"></a>00171 dt_out.set_subvector(ytsize, <a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>); |
172 | | <a name="l00186"></a><a class="code" href="classbdm_1_1MpdfDS.html#a39ef55fb36da354c93c544129e03f558">00186</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#a39ef55fb36da354c93c544129e03f558">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
173 | | <a name="l00187"></a>00187 <a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>=UI::build<mpdf> ( <span class="keyword">set</span>,<span class="stringliteral">"mpdf"</span>,UI::compulsory ); |
| 169 | <a name="l00186"></a><a class="code" href="classbdm_1_1MpdfDS.html#39ef55fb36da354c93c544129e03f558">00186</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#39ef55fb36da354c93c544129e03f558">from_setting</a> ( <span class="keyword">const</span> Setting &<span class="keyword">set</span> ) { |
| 170 | <a name="l00187"></a>00187 <a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>=UI::build<mpdf> ( <span class="keyword">set</span>,<span class="stringliteral">"mpdf"</span>,UI::compulsory ); |
179 | | <a name="l00193"></a>00193 <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>=rgrv0.<a class="code" href="classbdm_1_1RV.html#aaec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a>(Yrv); |
180 | | <a name="l00194"></a>00194 <a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a>(Yrv, <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>); |
| 176 | <a name="l00193"></a>00193 <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>=rgrv0.<a class="code" href="classbdm_1_1RV.html#aec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a>(Yrv); |
| 177 | <a name="l00194"></a>00194 <a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a>(Yrv, <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>); |
182 | | <a name="l00196"></a>00196 <a class="code" href="classbdm_1_1MpdfDS.html#a54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a>(<a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->_rvc(), <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>); |
183 | | <a name="l00197"></a>00197 <a class="code" href="classbdm_1_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a>(<a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->_rvc(), Yrv); |
| 179 | <a name="l00196"></a>00196 <a class="code" href="classbdm_1_1MpdfDS.html#54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a>(<a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->_rvc(), <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>); |
| 180 | <a name="l00197"></a>00197 <a class="code" href="classbdm_1_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a>(<a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->_rvc(), Yrv); |
193 | | <a name="l00207"></a>00207 <a class="code" href="classbdm_1_1MpdfDS.html#a54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<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>(*rv_ini, val); |
194 | | <a name="l00208"></a>00208 <a class="code" href="classbdm_1_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<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>(*rv_ini, val); |
| 190 | <a name="l00207"></a>00207 <a class="code" href="classbdm_1_1MpdfDS.html#54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<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>(*rv_ini, val); |
| 191 | <a name="l00208"></a>00208 <a class="code" href="classbdm_1_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<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>(*rv_ini, val); |
198 | | <a name="l00212"></a>00212 <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a> = zeros ( <a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->dimension() ); |
199 | | <a name="l00213"></a>00213 <a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> = zeros ( <a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->dimensionc() ); |
200 | | <a name="l00214"></a>00214 <a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a> = zeros(<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>()); |
| 195 | <a name="l00212"></a>00212 <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a> = zeros ( <a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->dimension() ); |
| 196 | <a name="l00213"></a>00213 <a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> = zeros ( <a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->dimensionc() ); |
| 197 | <a name="l00214"></a>00214 <a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a> = zeros(<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>()); |
202 | | <a name="l00216"></a>00216 <a class="code" href="classbdm_1_1DS.html#a22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>=<a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>.length(); |
203 | | <a name="l00217"></a>00217 <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>=ut.length(); |
204 | | <a name="l00218"></a>00218 <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> = ytsize+<a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>; |
205 | | <a name="l00219"></a>00219 <a class="code" href="classbdm_1_1MpdfDS.html#a225b78b246515bb36208309003ad4867" title="This method TODO.">validate</a>(); |
| 199 | <a name="l00216"></a>00216 <a class="code" href="classbdm_1_1DS.html#22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>=<a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>.length(); |
| 200 | <a name="l00217"></a>00217 <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>=ut.length(); |
| 201 | <a name="l00218"></a>00218 <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> = ytsize+<a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>; |
| 202 | <a name="l00219"></a>00219 <a class="code" href="classbdm_1_1MpdfDS.html#225b78b246515bb36208309003ad4867" title="This method TODO.">validate</a>(); |
209 | | <a name="l00223"></a>00223 <a class="code" href="classbdm_1_1MpdfDS.html#a54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>,<a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
210 | | <a name="l00224"></a>00224 <a class="code" href="classbdm_1_1MpdfDS.html#a6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>,<a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
211 | | <a name="l00225"></a>00225 <a class="code" href="classbdm_1_1MpdfDS.html#a959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>=<a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->samplecond ( <a class="code" href="classbdm_1_1MpdfDS.html#a1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
| 206 | <a name="l00223"></a>00223 <a class="code" href="classbdm_1_1MpdfDS.html#54e70167144e692877e7b49633219d5a" title="datalink between ut and regressor">ut2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>,<a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
| 207 | <a name="l00224"></a>00224 <a class="code" href="classbdm_1_1MpdfDS.html#6ccbcf01b1cd5bd3500aefc3091d9a2b" title="datalink between yt and regressor">yt2rgr</a>.<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> ( <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>,<a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
| 208 | <a name="l00225"></a>00225 <a class="code" href="classbdm_1_1MpdfDS.html#959cfe345bf0f165ff80f687826e1082" title="internal storage of data sample">yt</a>=<a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>->samplecond ( <a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); |
219 | | <a name="l00236"></a><a class="code" href="classbdm_1_1FileDS.html#a0bf36650e9d1af2d0743ffe8a3fcff14">00236</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#a0bf36650e9d1af2d0743ffe8a3fcff14" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { |
220 | | <a name="l00237"></a>00237 dt = <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.get_col ( <a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> ); |
| 216 | <a name="l00236"></a><a class="code" href="classbdm_1_1FileDS.html#0bf36650e9d1af2d0743ffe8a3fcff14">00236</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#0bf36650e9d1af2d0743ffe8a3fcff14" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { |
| 217 | <a name="l00237"></a>00237 dt = <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.get_col ( <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> ); |
223 | | <a name="l00240"></a><a class="code" href="classbdm_1_1FileDS.html#a3c546e8d9eb71e079e046e3d2f69c6c4">00240</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#a3c546e8d9eb71e079e046e3d2f69c6c4" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indices ) { |
224 | | <a name="l00241"></a>00241 vec tmp = <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.get_col ( <a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> ); |
| 220 | <a name="l00240"></a><a class="code" href="classbdm_1_1FileDS.html#3c546e8d9eb71e079e046e3d2f69c6c4">00240</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#3c546e8d9eb71e079e046e3d2f69c6c4" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indices ) { |
| 221 | <a name="l00241"></a>00241 vec tmp = <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.get_col ( <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> ); |
268 | | <a name="l00307"></a><a class="code" href="classbdm_1_1ArxDS.html#ac7b3cc6cd059ff3d7f4462cedff4bdeb">00307</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_1ArxDS.html#ac7b3cc6cd059ff3d7f4462cedff4bdeb" title="Rv of the regressor.">Rrv</a>; |
269 | | <a name="l00309"></a><a class="code" href="classbdm_1_1ArxDS.html#aa11a3f3fbeea1d17b66b073017964597">00309</a> vec <a class="code" href="classbdm_1_1ArxDS.html#aa11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>; |
270 | | <a name="l00311"></a><a class="code" href="classbdm_1_1ArxDS.html#a392b87be85675cb3d55fa4953d671bb5">00311</a> vec <a class="code" href="classbdm_1_1ArxDS.html#a392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>; |
271 | | <a name="l00313"></a><a class="code" href="classbdm_1_1ArxDS.html#ab2d7530264499b92c3aa32454b960abe">00313</a> vec <a class="code" href="classbdm_1_1ArxDS.html#ab2d7530264499b92c3aa32454b960abe" title="temporary variable for regressor">rgr</a>; |
272 | | <a name="l00315"></a><a class="code" href="classbdm_1_1ArxDS.html#afbe7b993ec5f75c195ae1b2ccd96a898">00315</a> <a class="code" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a> <a class="code" href="classbdm_1_1ArxDS.html#afbe7b993ec5f75c195ae1b2ccd96a898" title="data link: H -&gt; rgr">rgrlnk</a>; |
273 | | <a name="l00317"></a><a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb">00317</a> <a class="code" href="classbdm_1_1mlnorm.html">mlnorm<chmat></a> <a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>; |
274 | | <a name="l00319"></a><a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1">00319</a> <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a>; |
275 | | <a name="l00321"></a><a class="code" href="classbdm_1_1ArxDS.html#ae13e5ffdfe9d896089310b0fc54e0c85">00321</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1ArxDS.html#ae13e5ffdfe9d896089310b0fc54e0c85" title="loggers">L_theta</a>; |
| 265 | <a name="l00307"></a><a class="code" href="classbdm_1_1ArxDS.html#c7b3cc6cd059ff3d7f4462cedff4bdeb">00307</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_1ArxDS.html#c7b3cc6cd059ff3d7f4462cedff4bdeb" title="Rv of the regressor.">Rrv</a>; |
| 266 | <a name="l00309"></a><a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597">00309</a> vec <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>; |
| 267 | <a name="l00311"></a><a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5">00311</a> vec <a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>; |
| 268 | <a name="l00313"></a><a class="code" href="classbdm_1_1ArxDS.html#b2d7530264499b92c3aa32454b960abe">00313</a> vec <a class="code" href="classbdm_1_1ArxDS.html#b2d7530264499b92c3aa32454b960abe" title="temporary variable for regressor">rgr</a>; |
| 269 | <a name="l00315"></a><a class="code" href="classbdm_1_1ArxDS.html#fbe7b993ec5f75c195ae1b2ccd96a898">00315</a> <a class="code" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a> <a class="code" href="classbdm_1_1ArxDS.html#fbe7b993ec5f75c195ae1b2ccd96a898" title="data link: H -&gt; rgr">rgrlnk</a>; |
| 270 | <a name="l00317"></a><a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb">00317</a> <a class="code" href="classbdm_1_1mlnorm.html">mlnorm<chmat></a> <a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>; |
| 271 | <a name="l00319"></a><a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1">00319</a> <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a>; |
| 272 | <a name="l00321"></a><a class="code" href="classbdm_1_1ArxDS.html#e13e5ffdfe9d896089310b0fc54e0c85">00321</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1ArxDS.html#e13e5ffdfe9d896089310b0fc54e0c85" title="loggers">L_theta</a>; |
279 | | <a name="l00325"></a><a class="code" href="classbdm_1_1ArxDS.html#adb242e35812c311c8415bb7e31c3f595">00325</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#adb242e35812c311c8415bb7e31c3f595" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { |
280 | | <a name="l00326"></a>00326 dt = <a class="code" href="classbdm_1_1ArxDS.html#aa11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>; |
| 276 | <a name="l00325"></a><a class="code" href="classbdm_1_1ArxDS.html#db242e35812c311c8415bb7e31c3f595">00325</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#db242e35812c311c8415bb7e31c3f595" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &dt ) { |
| 277 | <a name="l00326"></a>00326 dt = <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>; |
283 | | <a name="l00329"></a><a class="code" href="classbdm_1_1ArxDS.html#a701151418bc5fc3861acef8359fb0d80">00329</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a701151418bc5fc3861acef8359fb0d80" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indices ) { |
284 | | <a name="l00330"></a>00330 dt = <a class="code" href="classbdm_1_1ArxDS.html#aa11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a> ( indices ); |
| 280 | <a name="l00329"></a><a class="code" href="classbdm_1_1ArxDS.html#701151418bc5fc3861acef8359fb0d80">00329</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#701151418bc5fc3861acef8359fb0d80" title="Returns data records at indeces.">getdata</a> ( vec &dt, <span class="keyword">const</span> ivec &indices ) { |
| 281 | <a name="l00330"></a>00330 dt = <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a> ( indices ); |
291 | | <a name="l00337"></a><a class="code" href="classbdm_1_1ArxDS.html#a477fd706639535f520e9dbbd19f73318">00337</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a477fd706639535f520e9dbbd19f73318" title="Accepts action variables at specific indeces.">write</a> ( vec &ut, <span class="keyword">const</span> ivec &indices ) { |
292 | | <a name="l00338"></a>00338 <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> ( ut.length() == indices.length(), <span class="stringliteral">"ArxDS"</span> ); |
293 | | <a name="l00339"></a>00339 set_subvector ( <a class="code" href="classbdm_1_1ArxDS.html#a392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>, indices, ut ); |
| 288 | <a name="l00337"></a><a class="code" href="classbdm_1_1ArxDS.html#477fd706639535f520e9dbbd19f73318">00337</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#477fd706639535f520e9dbbd19f73318" title="Accepts action variables at specific indeces.">write</a> ( vec &ut, <span class="keyword">const</span> ivec &indices ) { |
| 289 | <a name="l00338"></a>00338 <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> ( ut.length() == indices.length(), <span class="stringliteral">"ArxDS"</span> ); |
| 290 | <a name="l00339"></a>00339 set_subvector ( <a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>, indices, ut ); |
298 | | <a name="l00345"></a><a class="code" href="classbdm_1_1ArxDS.html#a7c8b418677a48041adacac8e8e9c9849">00345</a> <a class="code" href="classbdm_1_1ArxDS.html#a7c8b418677a48041adacac8e8e9c9849" title="Default constructor.">ArxDS</a> ( ) {}; |
299 | | <a name="l00347"></a><a class="code" href="classbdm_1_1ArxDS.html#a2d9abc62f1fee862f0e1c60c5c4a3c8a">00347</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a2d9abc62f1fee862f0e1c60c5c4a3c8a" title="Set parameters of the internal model, H is maximum time delay.">set_parameters</a> ( <span class="keyword">const</span> mat &Th0, <span class="keyword">const</span> vec mu0, <span class="keyword">const</span> <a class="code" href="classbdm_1_1chmat.html" title="Symmetric matrix stored in square root decomposition using upper cholesky.">chmat</a> &sqR0 ) { |
300 | | <a name="l00348"></a>00348 <a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#a04f7c6cda7b2f95161dd5fbcf15d1fd5" title="Set A and R.">set_parameters</a> ( Th0, mu0, sqR0 ); |
| 295 | <a name="l00345"></a><a class="code" href="classbdm_1_1ArxDS.html#7c8b418677a48041adacac8e8e9c9849">00345</a> <a class="code" href="classbdm_1_1ArxDS.html#7c8b418677a48041adacac8e8e9c9849" title="Default constructor.">ArxDS</a> ( ) {}; |
| 296 | <a name="l00347"></a><a class="code" href="classbdm_1_1ArxDS.html#2d9abc62f1fee862f0e1c60c5c4a3c8a">00347</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#2d9abc62f1fee862f0e1c60c5c4a3c8a" title="Set parameters of the internal model, H is maximum time delay.">set_parameters</a> ( <span class="keyword">const</span> mat &Th0, <span class="keyword">const</span> vec mu0, <span class="keyword">const</span> <a class="code" href="classbdm_1_1chmat.html" title="Symmetric matrix stored in square root decomposition using upper cholesky.">chmat</a> &sqR0 ) { |
| 297 | <a name="l00348"></a>00348 <a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#04f7c6cda7b2f95161dd5fbcf15d1fd5" title="Set A and R.">set_parameters</a> ( Th0, mu0, sqR0 ); |
302 | | <a name="l00351"></a><a class="code" href="classbdm_1_1ArxDS.html#ad57285965debab8a4bfc340d4477c853">00351</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#ad57285965debab8a4bfc340d4477c853" title="Set.">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, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rrv ) { |
303 | | <a name="l00352"></a>00352 <a class="code" href="classbdm_1_1ArxDS.html#ac7b3cc6cd059ff3d7f4462cedff4bdeb" title="Rv of the regressor.">Rrv</a> = rrv; |
304 | | <a name="l00353"></a>00353 <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a> = urv; |
305 | | <a name="l00354"></a>00354 dt_size = yrv.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() + urv.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(); |
| 299 | <a name="l00351"></a><a class="code" href="classbdm_1_1ArxDS.html#d57285965debab8a4bfc340d4477c853">00351</a> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#d57285965debab8a4bfc340d4477c853" title="Set.">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, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &rrv ) { |
| 300 | <a name="l00352"></a>00352 <a class="code" href="classbdm_1_1ArxDS.html#c7b3cc6cd059ff3d7f4462cedff4bdeb" title="Rv of the regressor.">Rrv</a> = rrv; |
| 301 | <a name="l00353"></a>00353 <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a> = urv; |
| 302 | <a name="l00354"></a>00354 dt_size = yrv.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() + urv.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(); |
308 | | <a name="l00357"></a>00357 <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> = drv; |
309 | | <a name="l00358"></a>00358 <span class="keywordtype">int</span> td = rrv.<a class="code" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>(); |
310 | | <a name="l00359"></a>00359 <a class="code" href="classbdm_1_1ArxDS.html#aa11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>.set_size ( drv.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() * ( -td + 1 ) ); |
311 | | <a name="l00360"></a>00360 <a class="code" href="classbdm_1_1ArxDS.html#a392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>.set_size ( <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>() ); |
| 305 | <a name="l00357"></a>00357 <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> = drv; |
| 306 | <a name="l00358"></a>00358 <span class="keywordtype">int</span> td = rrv.<a class="code" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>(); |
| 307 | <a name="l00359"></a>00359 <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>.set_size ( drv.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() * ( -td + 1 ) ); |
| 308 | <a name="l00360"></a>00360 <a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a>.set_size ( <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>() ); |
326 | | <a name="l00376"></a>00376 <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> ( 0, dt_size ), <span class="stringliteral">""</span> ); |
327 | | <a name="l00377"></a>00377 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> ); |
| 323 | <a name="l00376"></a>00376 <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> ( 0, dt_size ), <span class="stringliteral">""</span> ); |
| 324 | <a name="l00377"></a>00377 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> ); |
329 | | <a name="l00379"></a>00379 <span class="keyword">const</span> mat &A = <a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#a55e1bd7fa70b852bd7fe50ce72fb8f23" title="access function">_A</a>(); |
330 | | <a name="l00380"></a>00380 <span class="keyword">const</span> mat R = <a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#a9af0714b7b29ab1162ebc3291b7c4a43" title="access function">_R</a>(); |
331 | | <a name="l00381"></a>00381 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { |
332 | | <a name="l00382"></a>00382 <a class="code" href="classbdm_1_1ArxDS.html#ae13e5ffdfe9d896089310b0fc54e0c85" title="loggers">L_theta</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_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"{th }"</span>, vec_1 ( A.rows() * A.cols() ) ), <span class="stringliteral">"t"</span> ); |
| 326 | <a name="l00379"></a>00379 <span class="keyword">const</span> mat &A = <a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#55e1bd7fa70b852bd7fe50ce72fb8f23" title="access function">_A</a>(); |
| 327 | <a name="l00380"></a>00380 <span class="keyword">const</span> mat R = <a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#9af0714b7b29ab1162ebc3291b7c4a43" title="access function">_R</a>(); |
| 328 | <a name="l00381"></a>00381 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { |
| 329 | <a name="l00382"></a>00382 <a class="code" href="classbdm_1_1ArxDS.html#e13e5ffdfe9d896089310b0fc54e0c85" title="loggers">L_theta</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_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"{th }"</span>, vec_1 ( A.rows() * A.cols() ) ), <span class="stringliteral">"t"</span> ); |
334 | | <a name="l00384"></a>00384 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { |
335 | | <a name="l00385"></a>00385 L_R = 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">"{R }"</span>, vec_1 ( R.rows() * R.cols() ) ), <span class="stringliteral">"r"</span> ); |
| 331 | <a name="l00384"></a>00384 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { |
| 332 | <a name="l00385"></a>00385 L_R = 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">"{R }"</span>, vec_1 ( R.rows() * R.cols() ) ), <span class="stringliteral">"r"</span> ); |
340 | | <a name="l00390"></a>00390 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a>, <a class="code" href="classbdm_1_1ArxDS.html#aa11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>.left ( dt_size ) ); |
341 | | <a name="l00391"></a>00391 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( L_ut, <a class="code" href="classbdm_1_1ArxDS.html#a392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a> ); |
| 337 | <a name="l00390"></a>00390 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a>, <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>.left ( dt_size ) ); |
| 338 | <a name="l00391"></a>00391 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( L_ut, <a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a> ); |
343 | | <a name="l00393"></a>00393 <span class="keyword">const</span> mat &A = <a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#a55e1bd7fa70b852bd7fe50ce72fb8f23" title="access function">_A</a>(); |
344 | | <a name="l00394"></a>00394 <span class="keyword">const</span> mat R = <a class="code" href="classbdm_1_1ArxDS.html#a0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#a9af0714b7b29ab1162ebc3291b7c4a43" title="access function">_R</a>(); |
345 | | <a name="l00395"></a>00395 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { |
346 | | <a name="l00396"></a>00396 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1ArxDS.html#ae13e5ffdfe9d896089310b0fc54e0c85" title="loggers">L_theta</a>, vec ( A._data(), A.rows() *A.cols() ) ); |
| 340 | <a name="l00393"></a>00393 <span class="keyword">const</span> mat &A = <a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#55e1bd7fa70b852bd7fe50ce72fb8f23" title="access function">_A</a>(); |
| 341 | <a name="l00394"></a>00394 <span class="keyword">const</span> mat R = <a class="code" href="classbdm_1_1ArxDS.html#0aa9d8d35792159dc9611802f6c190eb" title="model of Y - linear Gaussian">model</a>.<a class="code" href="classbdm_1_1mlnorm.html#9af0714b7b29ab1162ebc3291b7c4a43" title="access function">_R</a>(); |
| 342 | <a name="l00395"></a>00395 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { |
| 343 | <a name="l00396"></a>00396 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1ArxDS.html#e13e5ffdfe9d896089310b0fc54e0c85" title="loggers">L_theta</a>, vec ( A._data(), A.rows() *A.cols() ) ); |
369 | | <a name="l00453"></a><a class="code" href="classbdm_1_1stateDS.html#a839bd9979c0aa407bc575e536f0a9918">00453</a> vec <a class="code" href="classbdm_1_1stateDS.html#a839bd9979c0aa407bc575e536f0a9918" title="result storage">dt</a>; |
370 | | <a name="l00455"></a><a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088">00455</a> vec <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a>; |
371 | | <a name="l00457"></a><a class="code" href="classbdm_1_1stateDS.html#aabbdb3dcf67a06f5a9003828819bafbf">00457</a> vec <a class="code" href="classbdm_1_1stateDS.html#aabbdb3dcf67a06f5a9003828819bafbf" title="input storage">ut</a>; |
372 | | <a name="l00459"></a><a class="code" href="classbdm_1_1stateDS.html#a16cdcdd5c878ebeebe7cad71c87f77ca">00459</a> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1stateDS.html#a16cdcdd5c878ebeebe7cad71c87f77ca" title="Logger.">L_xt</a>; |
| 366 | <a name="l00453"></a>00453 vec dt; |
| 367 | <a name="l00455"></a>00455 vec xt; |
| 368 | <a name="l00457"></a>00457 vec ut; |
| 369 | <a name="l00459"></a>00459 <span class="keywordtype">int</span> L_xt; |
383 | | <a name="l00470"></a>00470 <a class="code" href="classbdm_1_1stateDS.html">stateDS</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr<mpdf></a> &IM0, <span class="keyword">const</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr<mpdf></a> &OM0, <span class="keywordtype">int</span> usize ) : IM ( IM0 ), OM ( OM0 ), |
384 | | <a name="l00471"></a>00471 <a class="code" href="classbdm_1_1stateDS.html#a839bd9979c0aa407bc575e536f0a9918" title="result storage">dt</a> ( OM0->dimension() ), <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a> ( IM0->dimension() ), |
385 | | <a name="l00472"></a>00472 <a class="code" href="classbdm_1_1stateDS.html#aabbdb3dcf67a06f5a9003828819bafbf" title="input storage">ut</a> ( usize ), <a class="code" href="classbdm_1_1stateDS.html#a16cdcdd5c878ebeebe7cad71c87f77ca" title="Logger.">L_xt</a> ( 0 ) { } |
| 380 | <a name="l00470"></a>00470 stateDS ( <span class="keyword">const</span> shared_ptr<mpdf> &IM0, <span class="keyword">const</span> shared_ptr<mpdf> &OM0, <span class="keywordtype">int</span> usize ) : IM ( IM0 ), OM ( OM0 ), |
| 381 | <a name="l00471"></a>00471 dt ( OM0->dimension() ), xt ( IM0->dimension() ), |
| 382 | <a name="l00472"></a>00472 ut ( usize ), L_xt ( 0 ) { } |
389 | | <a name="l00476"></a><a class="code" href="classbdm_1_1stateDS.html#a1e98f3e362e35245d565c2508527ae14">00476</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stateDS.html#a1e98f3e362e35245d565c2508527ae14" title="Moves from to , i.e. perfroms the actions and reads response of the system.">step</a>() { |
390 | | <a name="l00477"></a>00477 <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a> = IM->samplecond ( concat ( <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a>, <a class="code" href="classbdm_1_1stateDS.html#aabbdb3dcf67a06f5a9003828819bafbf" title="input storage">ut</a> ) ); |
391 | | <a name="l00478"></a>00478 <a class="code" href="classbdm_1_1stateDS.html#a839bd9979c0aa407bc575e536f0a9918" title="result storage">dt</a> = OM->samplecond ( concat ( <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a>, <a class="code" href="classbdm_1_1stateDS.html#aabbdb3dcf67a06f5a9003828819bafbf" title="input storage">ut</a> ) ); |
| 386 | <a name="l00476"></a>00476 <span class="keyword">virtual</span> <span class="keywordtype">void</span> step() { |
| 387 | <a name="l00477"></a>00477 xt = IM->samplecond ( concat ( xt, ut ) ); |
| 388 | <a name="l00478"></a>00478 dt = OM->samplecond ( concat ( xt, ut ) ); |
394 | | <a name="l00481"></a><a class="code" href="classbdm_1_1stateDS.html#ac78f44b484128e73fe31ab6d118b5440">00481</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stateDS.html#ac78f44b484128e73fe31ab6d118b5440" 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 ) { |
395 | | <a name="l00482"></a>00482 <a class="code" href="classbdm_1_1stateDS.html#ac78f44b484128e73fe31ab6d118b5440" title="Register DS for logging into logger L.">DS::log_add</a> ( L ); |
396 | | <a name="l00483"></a>00483 <a class="code" href="classbdm_1_1stateDS.html#a16cdcdd5c878ebeebe7cad71c87f77ca" title="Logger.">L_xt</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> ( IM->_rv(), <span class="stringliteral">"true"</span> ); |
| 391 | <a name="l00481"></a>00481 <span class="keyword">virtual</span> <span class="keywordtype">void</span> log_add ( logger &L ) { |
| 392 | <a name="l00482"></a>00482 <a class="code" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e" title="Register DS for logging into logger L.">DS::log_add</a> ( L ); |
| 393 | <a name="l00483"></a>00483 L_xt = L.add ( IM->_rv(), <span class="stringliteral">"true"</span> ); |
398 | | <a name="l00485"></a><a class="code" href="classbdm_1_1stateDS.html#a3850341d9584df6b60cb05eeea6b38f4">00485</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stateDS.html#a3850341d9584df6b60cb05eeea6b38f4" 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 ) { |
399 | | <a name="l00486"></a>00486 <a class="code" href="classbdm_1_1stateDS.html#a3850341d9584df6b60cb05eeea6b38f4" title="Register DS for logging into logger L.">DS::logit</a> ( L ); |
400 | | <a name="l00487"></a>00487 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1stateDS.html#a16cdcdd5c878ebeebe7cad71c87f77ca" title="Logger.">L_xt</a>, <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a> ); |
| 395 | <a name="l00485"></a>00485 <span class="keyword">virtual</span> <span class="keywordtype">void</span> logit ( logger &L ) { |
| 396 | <a name="l00486"></a>00486 <a class="code" href="classbdm_1_1DS.html#e03d2c93cddd5c3a03107ddd3ae999cf" title="Register DS for logging into logger L.">DS::logit</a> ( L ); |
| 397 | <a name="l00487"></a>00487 L.logit ( L_xt, xt ); |