Show
Ignore:
Timestamp:
10/12/09 13:49:39 (15 years ago)
Author:
mido
Message:

\doc directory cleaned a bit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/datasources_8h_source.html

    r641 r651  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html xmlns="http://www.w3.org/1999/xhtml"> 
    3 <head> 
    4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
     2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
    53<title>mixpp: datasources.h Source File</title> 
    6 <link href="tabs.css" rel="stylesheet" type="text/css"/> 
    7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> 
    8 </head> 
    9 <body> 
    10 <!-- Generated by Doxygen 1.6.1 --> 
     4<link href="tabs.css" rel="stylesheet" type="text/css"> 
     5<link href="doxygen.css" rel="stylesheet" type="text/css"> 
     6</head><body> 
     7<!-- Generated by Doxygen 1.5.9 --> 
    118<script type="text/javascript"> 
    129<!-- 
     
    7067<a name="l00015"></a>00015 <span class="preprocessor"></span> 
    7168<a name="l00016"></a>00016  
    72 <a name="l00017"></a>00017 <span class="preprocessor">#include &quot;../base/bdmbase.h&quot;</span> 
    73 <a name="l00018"></a>00018 <span class="preprocessor">#include &quot;../stat/exp_family.h&quot;</span> 
    74 <a name="l00019"></a>00019 <span class="preprocessor">#include &quot;../base/user_info.h&quot;</span> 
     69<a name="l00017"></a>00017 <span class="preprocessor">#include "../base/bdmbase.h"</span> 
     70<a name="l00018"></a>00018 <span class="preprocessor">#include "../stat/exp_family.h"</span> 
     71<a name="l00019"></a>00019 <span class="preprocessor">#include "../base/user_info.h"</span> 
    7572<a name="l00020"></a>00020  
    7673<a name="l00021"></a>00021 <span class="keyword">namespace </span>bdm { 
    7774<a name="l00029"></a><a class="code" href="classbdm_1_1MemDS.html">00029</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1MemDS.html" title="Memory storage of off-line data column-wise.">MemDS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> { 
    7875<a name="l00030"></a>00030         <span class="keyword">protected</span>: 
    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>; 
    8279<a name="l00037"></a>00037  
    8380<a name="l00038"></a>00038         <span class="keyword">public</span>: 
    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 &amp;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 &amp;dt, <span class="keyword">const</span> ivec &amp;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 &amp;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 &amp;dt, <span class="keyword">const</span> ivec &amp;indeces ); 
    8784<a name="l00042"></a>00042                 <span class="keywordtype">void</span> set_rvs ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;drv, <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;urv ); 
    8885<a name="l00043"></a>00043  
    89 <a name="l00044"></a><a class="code" href="classbdm_1_1MemDS.html#a9a7f17598fe2b458707ba932865beef5">00044</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#a9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut ) { 
    90 <a name="l00045"></a>00045                         <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;MemDS::write is not supported&quot;</span> ); 
     86<a name="l00044"></a><a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5">00044</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut ) { 
     87<a name="l00045"></a>00045                         <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"MemDS::write is not supported"</span> ); 
    9188<a name="l00046"></a>00046                 } 
    9289<a name="l00047"></a>00047  
    93 <a name="l00048"></a>00048                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#a9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut, ivec &amp;indices ) { 
    94 <a name="l00049"></a>00049                         <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;MemDS::write is not supported&quot;</span> ); 
     90<a name="l00048"></a>00048                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MemDS.html#9a7f17598fe2b458707ba932865beef5" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut, ivec &amp;indices ) { 
     91<a name="l00049"></a>00049                         <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"MemDS::write is not supported"</span> ); 
    9592<a name="l00050"></a>00050                 } 
    9693<a name="l00051"></a>00051  
    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 &amp;Dat, ivec &amp;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 &amp;<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">&quot;Data&quot;</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">&quot;time&quot;</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">&quot;rowid&quot;</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&lt;RV&gt;</a> r=UI::build&lt;RV&gt;(<span class="keyword">set</span>,<span class="stringliteral">&quot;drv&quot;</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 &amp;Dat, ivec &amp;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 &amp;<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&lt;RV&gt;</a> r=UI::build&lt;RV&gt;(<span class="keyword">set</span>,<span class="stringliteral">"drv"</span>,UI::optional); 
    105102<a name="l00085"></a>00085                         <span class="keywordflow">if</span> (!r) {r=<span class="keyword">new</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(); 
    106 <a name="l00086"></a>00086                                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>.length(); i++){ r-&gt;add(<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(<span class="stringliteral">&quot;ch&quot;</span>+num2str(<a class="code" href="classbdm_1_1MemDS.html#a865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>(i)), 1, 0));} 
     103<a name="l00086"></a>00086                                 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i&lt;<a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>.length(); i++){ r-&gt;add(<a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>(<span class="stringliteral">"ch"</span>+num2str(<a class="code" href="classbdm_1_1MemDS.html#865814d49913dcf672bb20a4334d3dc4" title="vector of rows that are presented in Dt">rowid</a>(i)), 1, 0));} 
    107104<a name="l00087"></a>00087                         } 
    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-&gt;_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-&gt;_dsize(); 
     107<a name="l00090"></a>00090                         <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>=0; 
    111108<a name="l00091"></a>00091                 } 
    112109<a name="l00092"></a>00092 }; 
    113 <a name="l00093"></a>00093 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(MemDS); 
     110<a name="l00093"></a>00093 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a>(MemDS); 
    114111<a name="l00094"></a>00094  
    115112<a name="l00100"></a><a class="code" href="classbdm_1_1EpdfDS.html">00100</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1EpdfDS.html" title="Simulate data from a static pdf (epdf).">EpdfDS</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> { 
    116113<a name="l00101"></a>00101         <span class="keyword">protected</span>: 
    117 <a name="l00103"></a><a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5">00103</a>                 <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> <a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>; 
    118 <a name="l00105"></a><a class="code" href="classbdm_1_1EpdfDS.html#a67637d64bcabf6ecb4a80284dc60dc3f">00105</a>                 vec <a class="code" href="classbdm_1_1EpdfDS.html#a67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a>; 
     114<a name="l00103"></a><a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5">00103</a>                 <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> <a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>; 
     115<a name="l00105"></a><a class="code" href="classbdm_1_1EpdfDS.html#67637d64bcabf6ecb4a80284dc60dc3f">00105</a>                 vec <a class="code" href="classbdm_1_1EpdfDS.html#67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a>; 
    119116<a name="l00106"></a>00106         <span class="keyword">public</span>: 
    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>-&gt;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>-&gt;sample(); 
    122119<a name="l00109"></a>00109                 } 
    123 <a name="l00110"></a><a class="code" href="classbdm_1_1EpdfDS.html#a62c4a9d343dd773c4e75b5f2338b9ba7">00110</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#a62c4a9d343dd773c4e75b5f2338b9ba7" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &amp;dt_out ) { 
    124 <a name="l00111"></a>00111                         dt_out = <a class="code" href="classbdm_1_1EpdfDS.html#a67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a>; 
     120<a name="l00110"></a><a class="code" href="classbdm_1_1EpdfDS.html#62c4a9d343dd773c4e75b5f2338b9ba7">00110</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#62c4a9d343dd773c4e75b5f2338b9ba7" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &amp;dt_out ) { 
     121<a name="l00111"></a>00111                         dt_out = <a class="code" href="classbdm_1_1EpdfDS.html#67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a>; 
    125122<a name="l00112"></a>00112                 } 
    126 <a name="l00113"></a><a class="code" href="classbdm_1_1EpdfDS.html#a5b3d9370351ca393d4df6f6da6ac5f99">00113</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#a5b3d9370351ca393d4df6f6da6ac5f99" title="Returns data records at indeces.">getdata</a> ( vec &amp;dt_out, <span class="keyword">const</span> ivec &amp;ids ) { 
    127 <a name="l00114"></a>00114                         dt_out = <a class="code" href="classbdm_1_1EpdfDS.html#a67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a> ( ids ); 
     123<a name="l00113"></a><a class="code" href="classbdm_1_1EpdfDS.html#5b3d9370351ca393d4df6f6da6ac5f99">00113</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#5b3d9370351ca393d4df6f6da6ac5f99" title="Returns data records at indeces.">getdata</a> ( vec &amp;dt_out, <span class="keyword">const</span> ivec &amp;ids ) { 
     124<a name="l00114"></a>00114                         dt_out = <a class="code" href="classbdm_1_1EpdfDS.html#67637d64bcabf6ecb4a80284dc60dc3f" title="internal storage of data sample">dt</a> ( ids ); 
    128125<a name="l00115"></a>00115                 } 
    129126<a name="l00116"></a>00116                 <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; _drv() { 
    130 <a name="l00117"></a>00117                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1EpdfDS.html#a83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>-&gt;_rv(); 
     127<a name="l00117"></a>00117                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1EpdfDS.html#83784c6ca9d311a38ff768cb0718c5b5" title="internal pointer to epdf from which we samplecond">iepdf</a>-&gt;_rv(); 
    131128<a name="l00118"></a>00118                 } 
    132129<a name="l00119"></a>00119  
    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 &amp;<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&lt;epdf&gt; ( <span class="keyword">set</span>,<span class="stringliteral">&quot;epdf&quot;</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>-&gt;isnamed(), <span class="stringliteral">&quot;Input epdf must be named, check if RV is given correctly&quot;</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>-&gt;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>-&gt;_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 &amp;<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&lt;epdf&gt; ( <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>-&gt;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>-&gt;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>-&gt;_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>(); 
    141138<a name="l00135"></a>00135                 } 
    142 <a name="l00136"></a><a class="code" href="classbdm_1_1EpdfDS.html#a0a35af977871319479542183fde6a647">00136</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#a0a35af977871319479542183fde6a647" title="This method TODO.">validate</a>() { 
    143 <a name="l00137"></a>00137                         <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>-&gt;sample(); 
     139<a name="l00136"></a><a class="code" href="classbdm_1_1EpdfDS.html#0a35af977871319479542183fde6a647">00136</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1EpdfDS.html#0a35af977871319479542183fde6a647" title="This method TODO.">validate</a>() { 
     140<a name="l00137"></a>00137                         <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>-&gt;sample(); 
    144141<a name="l00138"></a>00138                 } 
    145142<a name="l00139"></a>00139 }; 
    146 <a name="l00140"></a>00140 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( EpdfDS ); 
     143<a name="l00140"></a>00140 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( EpdfDS ); 
    147144<a name="l00141"></a>00141  
    148145<a name="l00145"></a><a class="code" href="classbdm_1_1MpdfDS.html">00145</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1MpdfDS.html" title="Simulate data from conditional density Still having only one density but allowing...">MpdfDS</a> :<span class="keyword">public</span> <a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> { 
    149146<a name="l00146"></a>00146         <span class="keyword">protected</span>: 
    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&lt;mpdf&gt;</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&lt;mpdf&gt;</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>; 
    156153<a name="l00159"></a>00159                  
    157154<a name="l00160"></a>00160         <span class="keyword">public</span>: 
    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 &amp;quot;Up&amp;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 &amp;quot;Up&amp;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>-&gt;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 &amp;quot;Up&amp;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 &amp;quot;Up&amp;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>-&gt;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> 
    164161<a name="l00167"></a>00167                 } 
    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 &amp;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()&gt;=<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">&quot;Short output vector&quot;</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 &amp;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()&gt;=<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>); 
    169166<a name="l00172"></a>00172                 } 
    170 <a name="l00173"></a>00173                 <span class="keywordtype">void</span> write(<span class="keyword">const</span> vec &amp;ut0){<a class="code" href="classbdm_1_1MpdfDS.html#a27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>=ut0;} 
     167<a name="l00173"></a>00173                 <span class="keywordtype">void</span> write(<span class="keyword">const</span> vec &amp;ut0){<a class="code" href="classbdm_1_1MpdfDS.html#27751c04183acab85bdaf3598f47a417" title="input vector">ut</a>=ut0;} 
    171168<a name="l00174"></a>00174  
    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 &amp;<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&lt;mpdf&gt; ( <span class="keyword">set</span>,<span class="stringliteral">&quot;mpdf&quot;</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 &amp;<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&lt;mpdf&gt; ( <span class="keyword">set</span>,<span class="stringliteral">"mpdf"</span>,UI::compulsory ); 
    174171<a name="l00188"></a>00188                          
    175 <a name="l00189"></a>00189                         <a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a> = <a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>-&gt;_rv(); 
     172<a name="l00189"></a>00189                         <a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a> = <a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>-&gt;_rv(); 
    176173<a name="l00190"></a>00190                         <span class="comment">// get unique rvs form rvc</span> 
    177 <a name="l00191"></a>00191                         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rgrv0=<a class="code" href="classbdm_1_1MpdfDS.html#a7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>-&gt;_rvc().remove_time(); 
     174<a name="l00191"></a>00191                         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rgrv0=<a class="code" href="classbdm_1_1MpdfDS.html#7b91950fa4c2c323df69a6bc9a6a04ac" title="internal pointer to epdf from which we samplecond">impdf</a>-&gt;_rvc().remove_time(); 
    178175<a name="l00192"></a>00192                         <span class="comment">// input is what in not in Yrv</span> 
    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>); 
    181178<a name="l00195"></a>00195                         <span class="comment">// connect input and output to rvc</span> 
    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>-&gt;_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>-&gt;_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>-&gt;_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>-&gt;_rvc(), Yrv);  
    184181<a name="l00198"></a>00198                          
    185182<a name="l00199"></a>00199                         <span class="comment">//set history - if given</span> 
    186 <a name="l00200"></a>00200                         <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&lt;RV&gt;</a> rv_ini=UI::build&lt;RV&gt;(<span class="keyword">set</span>,<span class="stringliteral">&quot;init_rv&quot;</span>,UI::optional); 
     183<a name="l00200"></a>00200                         <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&lt;RV&gt;</a> rv_ini=UI::build&lt;RV&gt;(<span class="keyword">set</span>,<span class="stringliteral">"init_rv"</span>,UI::optional); 
    187184<a name="l00201"></a>00201                         <span class="keywordflow">if</span>(rv_ini){ <span class="comment">// check if </span> 
    188185<a name="l00202"></a>00202                                 vec val; 
    189 <a name="l00203"></a>00203                                 <a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(val, <span class="keyword">set</span>, <span class="stringliteral">&quot;init_values&quot;</span>, UI::optional); 
     186<a name="l00203"></a>00203                                 <a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a>(val, <span class="keyword">set</span>, <span class="stringliteral">"init_values"</span>, UI::optional); 
    190187<a name="l00204"></a>00204                                 <span class="keywordflow">if</span> (val.length()!=rv_ini-&gt;_dsize()){ 
    191 <a name="l00205"></a>00205                                         <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a>(<span class="stringliteral">&quot;init_rv and init_values fields have incompatible sizes&quot;</span>); 
     188<a name="l00205"></a>00205                                         <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a>(<span class="stringliteral">"init_rv and init_values fields have incompatible sizes"</span>); 
    192189<a name="l00206"></a>00206                                 } <span class="keywordflow">else</span> { 
    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); 
    195192<a name="l00209"></a>00209                                 } 
    196193<a name="l00210"></a>00210                         } 
    197194<a name="l00211"></a>00211  
    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>-&gt;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>-&gt;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>-&gt;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>-&gt;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>()); 
    201198<a name="l00215"></a>00215  
    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>(); 
    206203<a name="l00220"></a>00220                 } 
    207 <a name="l00221"></a><a class="code" href="classbdm_1_1MpdfDS.html#a225b78b246515bb36208309003ad4867">00221</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#a225b78b246515bb36208309003ad4867" title="This method TODO.">validate</a>() { 
     204<a name="l00221"></a><a class="code" href="classbdm_1_1MpdfDS.html#225b78b246515bb36208309003ad4867">00221</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1MpdfDS.html#225b78b246515bb36208309003ad4867" title="This method TODO.">validate</a>() { 
    208205<a name="l00222"></a>00222                         <span class="comment">//taken from sample() - shift of history is not done here</span> 
    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 &amp;quot;Up&amp;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 &amp;quot;Up&amp;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>-&gt;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 &amp;quot;Up&amp;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 &amp;quot;Up&amp;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>-&gt;samplecond ( <a class="code" href="classbdm_1_1MpdfDS.html#1fffeda455aa454c4509ff69fa9ccb3e" title="numeric values of regressor">rgr</a> ); 
    212209<a name="l00226"></a>00226                 } 
    213210<a name="l00227"></a>00227 }; 
    214 <a name="l00228"></a>00228 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( MpdfDS ); 
     211<a name="l00228"></a>00228 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( MpdfDS ); 
    215212<a name="l00229"></a>00229  
    216213<a name="l00233"></a><a class="code" href="classbdm_1_1FileDS.html">00233</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1FileDS.html">FileDS</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1MemDS.html" title="Memory storage of off-line data column-wise.">MemDS</a> { 
    217214<a name="l00234"></a>00234  
    218215<a name="l00235"></a>00235         <span class="keyword">public</span>: 
    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 &amp;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 &amp;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> ); 
    221218<a name="l00238"></a>00238                 } 
    222219<a name="l00239"></a>00239  
    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 &amp;dt, <span class="keyword">const</span> ivec &amp;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 &amp;dt, <span class="keyword">const</span> ivec &amp;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> ); 
    225222<a name="l00242"></a>00242                         dt = tmp ( indices ); 
    226223<a name="l00243"></a>00243                 } 
    227224<a name="l00244"></a>00244  
    228 <a name="l00246"></a><a class="code" href="classbdm_1_1FileDS.html#aa6af63065097147b390e684a7842a26a">00246</a>                 <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1FileDS.html#aa6af63065097147b390e684a7842a26a" title="returns number of data in the file;">ndat</a>() { 
    229 <a name="l00247"></a>00247                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.cols(); 
     225<a name="l00246"></a><a class="code" href="classbdm_1_1FileDS.html#a6af63065097147b390e684a7842a26a">00246</a>                 <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1FileDS.html#a6af63065097147b390e684a7842a26a" title="returns number of data in the file;">ndat</a>() { 
     226<a name="l00247"></a>00247                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>.cols(); 
    230227<a name="l00248"></a>00248                 } 
    231 <a name="l00250"></a><a class="code" href="classbdm_1_1FileDS.html#a998f590eeddee97ae6918671e40756b8">00250</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#a998f590eeddee97ae6918671e40756b8" title="no sense to log this type">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) {}; 
    232 <a name="l00252"></a><a class="code" href="classbdm_1_1FileDS.html#a59d44ef34a523127dd79c076461c43b6">00252</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#a59d44ef34a523127dd79c076461c43b6" title="no sense to log this type">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) {}; 
     228<a name="l00250"></a><a class="code" href="classbdm_1_1FileDS.html#998f590eeddee97ae6918671e40756b8">00250</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#998f590eeddee97ae6918671e40756b8" title="no sense to log this type">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) {}; 
     229<a name="l00252"></a><a class="code" href="classbdm_1_1FileDS.html#59d44ef34a523127dd79c076461c43b6">00252</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1FileDS.html#59d44ef34a523127dd79c076461c43b6" title="no sense to log this type">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) {}; 
    233230<a name="l00253"></a>00253 }; 
    234231<a name="l00254"></a>00254  
     
    239236<a name="l00265"></a>00265                         it_file it ( fname ); 
    240237<a name="l00266"></a>00266                         it &lt;&lt; Name ( varname ); 
    241 <a name="l00267"></a>00267                         it &gt;&gt; <a class="code" href="classbdm_1_1MemDS.html#aa724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>; 
    242 <a name="l00268"></a>00268                         <a class="code" href="classbdm_1_1MemDS.html#a681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> = 0; 
     238<a name="l00267"></a>00267                         it &gt;&gt; <a class="code" href="classbdm_1_1MemDS.html#a724f4cbfc32e79bacc044253234e260" title="internal matrix of data">Data</a>; 
     239<a name="l00268"></a>00268                         <a class="code" href="classbdm_1_1MemDS.html#681ee3831f68f4f20ed54e04e8b3f107" title="active column in the Data matrix">time</a> = 0; 
    243240<a name="l00269"></a>00269                         <span class="comment">//rowid and delays are ignored</span> 
    244241<a name="l00270"></a>00270                 }; 
     
    247244<a name="l00273"></a>00273                 }; 
    248245<a name="l00274"></a>00274  
    249 <a name="l00275"></a>00275                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ITppFileDS.html#afd192da176625a909fa853458b604566">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     246<a name="l00275"></a>00275                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ITppFileDS.html#fd192da176625a909fa853458b604566">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    250247<a name="l00276"></a>00276  
    251248<a name="l00277"></a>00277                 <span class="comment">// TODO dodelat void to_setting( Setting &amp;set ) const;</span> 
     
    253250<a name="l00279"></a>00279 }; 
    254251<a name="l00280"></a>00280  
    255 <a name="l00281"></a>00281 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( <a class="code" href="classbdm_1_1ITppFileDS.html" title="Read Data Matrix from an IT file.">ITppFileDS</a> ); 
     252<a name="l00281"></a>00281 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( <a class="code" href="classbdm_1_1ITppFileDS.html" title="Read Data Matrix from an IT file.">ITppFileDS</a> ); 
    256253<a name="l00282"></a>00282 SHAREDPTR ( <a class="code" href="classbdm_1_1ITppFileDS.html" title="Read Data Matrix from an IT file.">ITppFileDS</a> ); 
    257254<a name="l00283"></a>00283  
     
    259256<a name="l00292"></a>00292  
    260257<a name="l00293"></a>00293         <span class="keyword">public</span>: 
    261 <a name="l00295"></a>00295                 <a class="code" href="classbdm_1_1CsvFileDS.html#a8d9d56cdf6b8d0236e32a80e11c238b0" title="Constructor - create DS from a CSV file.">CsvFileDS</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; fname, <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; orientation = <span class="stringliteral">&quot;BY_COL&quot;</span> ); 
     258<a name="l00295"></a>00295                 <a class="code" href="classbdm_1_1CsvFileDS.html#8d9d56cdf6b8d0236e32a80e11c238b0" title="Constructor - create DS from a CSV file.">CsvFileDS</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; fname, <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; orientation = <span class="stringliteral">"BY_COL"</span> ); 
    262259<a name="l00296"></a>00296 }; 
    263260<a name="l00297"></a>00297  
     
    266263<a name="l00304"></a><a class="code" href="classbdm_1_1ArxDS.html">00304</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1ArxDS.html" title="Generator of ARX data.">ArxDS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> { 
    267264<a name="l00305"></a>00305         <span class="keyword">protected</span>: 
    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 -&amp;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&lt;chmat&gt;</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 -&amp;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&lt;chmat&gt;</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>; 
    276273<a name="l00322"></a>00322                 <span class="keywordtype">int</span> L_R; 
    277274<a name="l00323"></a>00323                 <span class="keywordtype">int</span> dt_size; 
    278275<a name="l00324"></a>00324         <span class="keyword">public</span>: 
    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 &amp;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 &amp;dt ) { 
     277<a name="l00326"></a>00326                         dt = <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a>; 
    281278<a name="l00327"></a>00327                 } 
    282279<a name="l00328"></a>00328  
    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 &amp;dt, <span class="keyword">const</span> ivec &amp;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 &amp;dt, <span class="keyword">const</span> ivec &amp;indices ) { 
     281<a name="l00330"></a>00330                         dt = <a class="code" href="classbdm_1_1ArxDS.html#a11a3f3fbeea1d17b66b073017964597" title="History, ordered as .">H</a> ( indices ); 
    285282<a name="l00331"></a>00331                 } 
    286283<a name="l00332"></a>00332  
    287 <a name="l00333"></a><a class="code" href="classbdm_1_1ArxDS.html#a8f6da8a00abba70bc58c7a4030bd8940">00333</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a8f6da8a00abba70bc58c7a4030bd8940" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut ) { 
    288 <a name="l00334"></a>00334                         <a class="code" href="classbdm_1_1ArxDS.html#a392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a> = ut; 
     284<a name="l00333"></a><a class="code" href="classbdm_1_1ArxDS.html#8f6da8a00abba70bc58c7a4030bd8940">00333</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#8f6da8a00abba70bc58c7a4030bd8940" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut ) { 
     285<a name="l00334"></a>00334                         <a class="code" href="classbdm_1_1ArxDS.html#392b87be85675cb3d55fa4953d671bb5" title="(future) input">U</a> = ut; 
    289286<a name="l00335"></a>00335                 } 
    290287<a name="l00336"></a>00336  
    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 &amp;ut, <span class="keyword">const</span> ivec &amp;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">&quot;ArxDS&quot;</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 &amp;ut, <span class="keyword">const</span> ivec &amp;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 ); 
    294291<a name="l00340"></a>00340                 } 
    295292<a name="l00341"></a>00341  
    296 <a name="l00342"></a>00342                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a57dfa26b23cc03d53b123fa7e0474b19" title="Moves from  to , i.e. perfroms the actions and reads response of the system.">step</a>(); 
     293<a name="l00342"></a>00342                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#57dfa26b23cc03d53b123fa7e0474b19" title="Moves from  to , i.e. perfroms the actions and reads response of the system.">step</a>(); 
    297294<a name="l00343"></a>00343  
    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 &amp;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> &amp;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 &amp;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> &amp;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 ); 
    301298<a name="l00349"></a>00349                 }; 
    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> &amp;yrv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;urv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;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> &amp;yrv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;urv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;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>(); 
    306303<a name="l00355"></a>00355  
    307304<a name="l00356"></a>00356                         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> drv = concat ( yrv, urv ); 
    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>() ); 
    312309<a name="l00361"></a>00361                         <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = -1; i &gt;= td; i-- ) { 
    313 <a name="l00362"></a>00362                                 drv.<a class="code" href="classbdm_1_1RV.html#a449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a> ( -1 ); 
    314 <a name="l00363"></a>00363                                 <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#a87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( drv ); <span class="comment">//shift u1</span> 
     310<a name="l00362"></a>00362                                 drv.<a class="code" href="classbdm_1_1RV.html#449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a> ( -1 ); 
     311<a name="l00363"></a>00363                                 <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#87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( drv ); <span class="comment">//shift u1</span> 
    315312<a name="l00364"></a>00364                         } 
    316 <a name="l00365"></a>00365                         <a class="code" href="classbdm_1_1ArxDS.html#afbe7b993ec5f75c195ae1b2ccd96a898" title="data link: H -&amp;gt; rgr">rgrlnk</a>.<a class="code" href="classbdm_1_1datalink.html#afb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rrv, <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> ); 
     313<a name="l00365"></a>00365                         <a class="code" href="classbdm_1_1ArxDS.html#fbe7b993ec5f75c195ae1b2ccd96a898" title="data link: H -&amp;gt; rgr">rgrlnk</a>.<a class="code" href="classbdm_1_1datalink.html#fb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rrv, <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> ); 
    317314<a name="l00366"></a>00366  
    318 <a name="l00367"></a>00367                         <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>(); 
    319 <a name="l00368"></a>00368                         <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>(); 
     315<a name="l00367"></a>00367                         <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>(); 
     316<a name="l00368"></a>00368                         <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>(); 
    320317<a name="l00369"></a>00369                 } 
    321 <a name="l00371"></a><a class="code" href="classbdm_1_1ArxDS.html#ae7438127de87c5a8128edfa12255b436">00371</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#ae7438127de87c5a8128edfa12255b436" title="set options from a string">set_options</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;s ) { 
    322 <a name="l00372"></a>00372                         <a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> = ( s.find ( <span class="stringliteral">&quot;L_theta&quot;</span> ) != string::npos ); 
     318<a name="l00371"></a><a class="code" href="classbdm_1_1ArxDS.html#e7438127de87c5a8128edfa12255b436">00371</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#e7438127de87c5a8128edfa12255b436" title="set options from a string">set_options</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;s ) { 
     319<a name="l00372"></a>00372                         <a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> = ( s.find ( <span class="stringliteral">"L_theta"</span> ) != string::npos ); 
    323320<a name="l00373"></a>00373                 }; 
    324 <a name="l00374"></a><a class="code" href="classbdm_1_1ArxDS.html#a64819633a1191fcaa60d0de26ade2e52">00374</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a64819633a1191fcaa60d0de26ade2e52" 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> &amp;L ) { 
     321<a name="l00374"></a><a class="code" href="classbdm_1_1ArxDS.html#64819633a1191fcaa60d0de26ade2e52">00374</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#64819633a1191fcaa60d0de26ade2e52" 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> &amp;L ) { 
    325322<a name="l00375"></a>00375                         <span class="comment">//DS::log_add ( L ); too long!!</span> 
    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">&quot;&quot;</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">&quot;&quot;</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> ); 
    328325<a name="l00378"></a>00378  
    329 <a name="l00379"></a>00379                         <span class="keyword">const</span> mat &amp;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">&quot;{th }&quot;</span>, vec_1 ( A.rows() * A.cols() ) ), <span class="stringliteral">&quot;t&quot;</span> ); 
     326<a name="l00379"></a>00379                         <span class="keyword">const</span> mat &amp;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> ); 
    333330<a name="l00383"></a>00383                         } 
    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">&quot;{R }&quot;</span>, vec_1 ( R.rows() * R.cols() ) ), <span class="stringliteral">&quot;r&quot;</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> ); 
    336333<a name="l00386"></a>00386                         } 
    337334<a name="l00387"></a>00387                 } 
    338 <a name="l00388"></a><a class="code" href="classbdm_1_1ArxDS.html#a4128f5dc3a04063d62fc7e35635aeb90">00388</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a4128f5dc3a04063d62fc7e35635aeb90" 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> &amp;L ) { 
     335<a name="l00388"></a><a class="code" href="classbdm_1_1ArxDS.html#4128f5dc3a04063d62fc7e35635aeb90">00388</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#4128f5dc3a04063d62fc7e35635aeb90" 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> &amp;L ) { 
    339336<a name="l00389"></a>00389                         <span class="comment">//DS::logit ( L );</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> ); 
    342339<a name="l00392"></a>00392  
    343 <a name="l00393"></a>00393                         <span class="keyword">const</span> mat &amp;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 &amp;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() ) ); 
    347344<a name="l00397"></a>00397                         }; 
    348 <a name="l00398"></a>00398                         <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#a064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { 
    349 <a name="l00399"></a>00399                                 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( L_R, vec ( R._data(), R.rows() *R.rows() ) ); 
     345<a name="l00398"></a>00398                         <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1ArxDS.html#064e5d3f2dc0b39459c7ca53d05223e1" title="options">opt_L_theta</a> ) { 
     346<a name="l00399"></a>00399                                 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( L_R, vec ( R._data(), R.rows() *R.rows() ) ); 
    350347<a name="l00400"></a>00400                         }; 
    351348<a name="l00401"></a>00401                 } 
    352349<a name="l00402"></a>00402  
    353350<a name="l00403"></a>00403                 <span class="comment">// TODO dokumentace - aktualizovat</span> 
    354 <a name="l00435"></a>00435 <span class="comment"></span>                <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#a9b109ee7bba9774057b107383b6ecc24">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     351<a name="l00435"></a>00435 <span class="comment"></span>                <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1ArxDS.html#9b109ee7bba9774057b107383b6ecc24">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    355352<a name="l00436"></a>00436  
    356353<a name="l00437"></a>00437                 <span class="comment">// TODO dodelat void to_setting( Setting &amp;set ) const;</span> 
    357354<a name="l00438"></a>00438 }; 
    358355<a name="l00439"></a>00439  
    359 <a name="l00440"></a>00440 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( ArxDS ); 
     356<a name="l00440"></a>00440 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( ArxDS ); 
    360357<a name="l00441"></a>00441 SHAREDPTR ( ArxDS ); 
    361358<a name="l00442"></a>00442  
    362 <a name="l00443"></a><a class="code" href="classbdm_1_1stateDS.html">00443</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1stateDS.html">stateDS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> { 
     359<a name="l00443"></a>00443 <span class="keyword">class </span>stateDS : <span class="keyword">public</span> DS { 
    363360<a name="l00444"></a>00444         <span class="keyword">private</span>: 
    364 <a name="l00446"></a>00446                 <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;mpdf&gt;</a> IM; 
     361<a name="l00446"></a>00446                 shared_ptr&lt;mpdf&gt; IM; 
    365362<a name="l00447"></a>00447  
    366 <a name="l00449"></a>00449                 <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;mpdf&gt;</a> OM; 
     363<a name="l00449"></a>00449                 shared_ptr&lt;mpdf&gt; OM; 
    367364<a name="l00450"></a>00450  
    368365<a name="l00451"></a>00451         <span class="keyword">protected</span>: 
    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; 
    373370<a name="l00460"></a>00460  
    374371<a name="l00461"></a>00461         <span class="keyword">public</span>: 
    375 <a name="l00462"></a><a class="code" href="classbdm_1_1stateDS.html#a5c9f4a93313f69adfa97375b58c0a6c2">00462</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stateDS.html#a5c9f4a93313f69adfa97375b58c0a6c2" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &amp;dt0 ) { 
    376 <a name="l00463"></a>00463                         dt0 = <a class="code" href="classbdm_1_1stateDS.html#a839bd9979c0aa407bc575e536f0a9918" title="result storage">dt</a>; 
     372<a name="l00462"></a>00462                 <span class="keywordtype">void</span> getdata ( vec &amp;dt0 ) { 
     373<a name="l00463"></a>00463                         dt0 = dt; 
    377374<a name="l00464"></a>00464                 } 
    378375<a name="l00465"></a>00465  
    379 <a name="l00466"></a><a class="code" href="classbdm_1_1stateDS.html#ad61e149db7c7b3a1289ac82f37c97700">00466</a>                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stateDS.html#ad61e149db7c7b3a1289ac82f37c97700" title="Returns data records at indeces.">getdata</a> ( vec &amp;dt0, <span class="keyword">const</span> ivec &amp;indices ) { 
    380 <a name="l00467"></a>00467                         dt0 = <a class="code" href="classbdm_1_1stateDS.html#a839bd9979c0aa407bc575e536f0a9918" title="result storage">dt</a> ( indices ); 
     376<a name="l00466"></a>00466                 <span class="keywordtype">void</span> getdata ( vec &amp;dt0, <span class="keyword">const</span> ivec &amp;indices ) { 
     377<a name="l00467"></a>00467                         dt0 = dt ( indices ); 
    381378<a name="l00468"></a>00468                 } 
    382379<a name="l00469"></a>00469  
    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&lt;mpdf&gt;</a> &amp;IM0, <span class="keyword">const</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;mpdf&gt;</a> &amp;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-&gt;dimension() ), <a class="code" href="classbdm_1_1stateDS.html#ac055a609e44f77300aa86e903df4f088" title="state storage">xt</a> ( IM0-&gt;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&lt;mpdf&gt; &amp;IM0, <span class="keyword">const</span> shared_ptr&lt;mpdf&gt; &amp;OM0, <span class="keywordtype">int</span> usize ) : IM ( IM0 ), OM ( OM0 ), 
     381<a name="l00471"></a>00471                                 dt ( OM0-&gt;dimension() ), xt ( IM0-&gt;dimension() ), 
     382<a name="l00472"></a>00472                                 ut ( usize ), L_xt ( 0 ) { } 
    386383<a name="l00473"></a>00473  
    387 <a name="l00474"></a>00474                 stateDS() : <a class="code" href="classbdm_1_1stateDS.html#a16cdcdd5c878ebeebe7cad71c87f77ca" title="Logger.">L_xt</a> ( 0 ) { } 
     384<a name="l00474"></a>00474                 stateDS() : L_xt ( 0 ) { } 
    388385<a name="l00475"></a>00475  
    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-&gt;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-&gt;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-&gt;samplecond ( concat ( xt, ut ) ); 
     388<a name="l00478"></a>00478                         dt = OM-&gt;samplecond ( concat ( xt, ut ) ); 
    392389<a name="l00479"></a>00479                 } 
    393390<a name="l00480"></a>00480  
    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> &amp;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-&gt;_rv(), <span class="stringliteral">&quot;true&quot;</span> ); 
     391<a name="l00481"></a>00481                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> log_add ( logger &amp;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-&gt;_rv(), <span class="stringliteral">"true"</span> ); 
    397394<a name="l00484"></a>00484                 } 
    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> &amp;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 &amp;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 ); 
    401398<a name="l00488"></a>00488                 } 
    402399<a name="l00489"></a>00489  
    403 <a name="l00519"></a>00519                 <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1stateDS.html#aa3792e751ff4d3f66f8feec16506197b">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     400<a name="l00519"></a>00519                 <span class="keywordtype">void</span> from_setting ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    404401<a name="l00520"></a>00520  
    405402<a name="l00521"></a>00521                 <span class="comment">// TODO dodelat void to_setting( Setting &amp;set ) const;</span> 
     
    407404<a name="l00523"></a>00523 }; 
    408405<a name="l00524"></a>00524  
    409 <a name="l00525"></a>00525 <a class="code" href="user__info_8h.html#a4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( stateDS ); 
     406<a name="l00525"></a>00525 <a class="code" href="user__info_8h.html#4f9de2f17e844047726487b99def99c6" title="Macro for registration of class into map of user-infos, registered class is scriptable...">UIREGISTER</a> ( stateDS ); 
    410407<a name="l00526"></a>00526 SHAREDPTR ( stateDS ); 
    411408<a name="l00527"></a>00527  
     
    414411<a name="l00530"></a>00530 <span class="preprocessor">#endif // DS_H</span> 
    415412</pre></div></div> 
    416 <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 27 00:49:04 2009 for mixpp by&nbsp; 
     413<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:43 2009 for mixpp by&nbsp; 
    417414<a href="http://www.doxygen.org/index.html"> 
    418 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> 
     415<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
    419416</body> 
    420417</html>