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/bdmbase_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: bdmbase.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<!-- 
     
    7168<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;map&gt;</span> 
    7269<a name="l00017"></a>00017  
    73 <a name="l00018"></a>00018 <span class="preprocessor">#include &quot;../itpp_ext.h&quot;</span> 
    74 <a name="l00019"></a>00019 <span class="preprocessor">#include &quot;../bdmroot.h&quot;</span> 
    75 <a name="l00020"></a>00020 <span class="preprocessor">#include &quot;../shared_ptr.h&quot;</span> 
    76 <a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="user__info_8h.html" title="UI (user info) class for loading/saving objects from/to configuration files. It is...">user_info.h</a>&quot;</span> 
     70<a name="l00018"></a>00018 <span class="preprocessor">#include "../itpp_ext.h"</span> 
     71<a name="l00019"></a>00019 <span class="preprocessor">#include "../bdmroot.h"</span> 
     72<a name="l00020"></a>00020 <span class="preprocessor">#include "../shared_ptr.h"</span> 
     73<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="user__info_8h.html" title="UI (user info) class for loading/saving objects from/to configuration files. It is...">user_info.h</a>"</span> 
    7774<a name="l00022"></a>00022  
    7875<a name="l00023"></a>00023 <span class="keyword">using namespace </span>libconfig; 
     
    8380<a name="l00029"></a><a class="code" href="classbdm_1_1str.html">00029</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a> { 
    8481<a name="l00030"></a>00030 <span class="keyword">public</span>: 
    85 <a name="l00032"></a><a class="code" href="classbdm_1_1str.html#a64675a73fc7324177175f19b3baeb0b0">00032</a>         ivec <a class="code" href="classbdm_1_1str.html#a64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a>; 
    86 <a name="l00034"></a><a class="code" href="classbdm_1_1str.html#a905dc0f240e40432c103708c4a34f80a">00034</a>         ivec <a class="code" href="classbdm_1_1str.html#a905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a>; 
    87 <a name="l00036"></a><a class="code" href="classbdm_1_1str.html#a7c6b9dccc6814d7bd1e8e2208a0d3f3f">00036</a>         <a class="code" href="classbdm_1_1str.html#a7c6b9dccc6814d7bd1e8e2208a0d3f3f" title="Default constructor.">str</a> ( ivec ids0, ivec times0 ) : <a class="code" href="classbdm_1_1str.html#a64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1str.html#a905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a> ( times0 ) { 
    88 <a name="l00037"></a>00037                 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( times0.length() == ids0.length(), <span class="stringliteral">&quot;Incompatible input&quot;</span> ); 
     82<a name="l00032"></a><a class="code" href="classbdm_1_1str.html#64675a73fc7324177175f19b3baeb0b0">00032</a>         ivec <a class="code" href="classbdm_1_1str.html#64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a>; 
     83<a name="l00034"></a><a class="code" href="classbdm_1_1str.html#905dc0f240e40432c103708c4a34f80a">00034</a>         ivec <a class="code" href="classbdm_1_1str.html#905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a>; 
     84<a name="l00036"></a><a class="code" href="classbdm_1_1str.html#7c6b9dccc6814d7bd1e8e2208a0d3f3f">00036</a>         <a class="code" href="classbdm_1_1str.html#7c6b9dccc6814d7bd1e8e2208a0d3f3f" title="Default constructor.">str</a> ( ivec ids0, ivec times0 ) : <a class="code" href="classbdm_1_1str.html#64675a73fc7324177175f19b3baeb0b0" title="vector id ids (non-unique!)">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1str.html#905dc0f240e40432c103708c4a34f80a" title="vector of times">times</a> ( times0 ) { 
     85<a name="l00037"></a>00037                 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( times0.length() == ids0.length(), <span class="stringliteral">"Incompatible input"</span> ); 
    8986<a name="l00038"></a>00038         }; 
    9087<a name="l00039"></a>00039 }; 
     
    104101<a name="l00095"></a>00095  
    105102<a name="l00096"></a>00096 <span class="keyword">protected</span>: 
    106 <a name="l00098"></a><a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb">00098</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>; 
    107 <a name="l00100"></a><a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385">00100</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; 
    108 <a name="l00102"></a><a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b">00102</a>         ivec <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>; 
    109 <a name="l00104"></a><a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896">00104</a>         ivec <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>; 
     103<a name="l00098"></a><a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb">00098</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>; 
     104<a name="l00100"></a><a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385">00100</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; 
     105<a name="l00102"></a><a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b">00102</a>         ivec <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>; 
     106<a name="l00104"></a><a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896">00104</a>         ivec <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>; 
    110107<a name="l00105"></a>00105  
    111108<a name="l00106"></a>00106 <span class="keyword">private</span>: 
     
    114111<a name="l00110"></a>00110         <span class="keywordtype">void</span> init ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names, <span class="keyword">const</span> ivec &amp;in_sizes, <span class="keyword">const</span> ivec &amp;in_times ); 
    115112<a name="l00111"></a>00111         <span class="keywordtype">int</span> init ( <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;name, <span class="keywordtype">int</span> size ); 
    116 <a name="l00114"></a>00114         <span class="keyword">explicit</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( <span class="keyword">const</span> ivec &amp;ids0, enum_dummy dum ) : <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a> ( ids0.<a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ), <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( zeros_i ( ids0.<a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ) ) { 
    117 <a name="l00115"></a>00115                 <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> = <a class="code" href="classbdm_1_1RV.html#a39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>(); 
     113<a name="l00114"></a>00114         <span class="keyword">explicit</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( <span class="keyword">const</span> ivec &amp;ids0, enum_dummy dum ) : <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a> ( ids0.<a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ), <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( ids0 ), <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( zeros_i ( ids0.<a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>() ) ) { 
     114<a name="l00115"></a>00115                 <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> = <a class="code" href="classbdm_1_1RV.html#39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>(); 
    118115<a name="l00116"></a>00116         } 
    119116<a name="l00117"></a>00117 <span class="keyword">public</span>: 
    120117<a name="l00120"></a>00120  
    121 <a name="l00122"></a><a class="code" href="classbdm_1_1RV.html#a3fa35c2744e687c74f7742990e6aa264">00122</a>         <a class="code" href="classbdm_1_1RV.html#a3fa35c2744e687c74f7742990e6aa264" title="Full constructor.">RV</a> ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names, <span class="keyword">const</span> ivec &amp;in_sizes, <span class="keyword">const</span> ivec &amp;in_times ) { 
     118<a name="l00122"></a><a class="code" href="classbdm_1_1RV.html#3fa35c2744e687c74f7742990e6aa264">00122</a>         <a class="code" href="classbdm_1_1RV.html#3fa35c2744e687c74f7742990e6aa264" title="Full constructor.">RV</a> ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names, <span class="keyword">const</span> ivec &amp;in_sizes, <span class="keyword">const</span> ivec &amp;in_times ) { 
    122119<a name="l00123"></a>00123                 init ( in_names, in_sizes, in_times ); 
    123120<a name="l00124"></a>00124         } 
    124121<a name="l00125"></a>00125  
    125 <a name="l00127"></a><a class="code" href="classbdm_1_1RV.html#a381f5d963bb54efd4e76815dc93d50ce">00127</a>         <a class="code" href="classbdm_1_1RV.html#a381f5d963bb54efd4e76815dc93d50ce" title="Constructor with times=0.">RV</a> ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names, <span class="keyword">const</span> ivec &amp;in_sizes ) { 
     122<a name="l00127"></a><a class="code" href="classbdm_1_1RV.html#381f5d963bb54efd4e76815dc93d50ce">00127</a>         <a class="code" href="classbdm_1_1RV.html#381f5d963bb54efd4e76815dc93d50ce" title="Constructor with times=0.">RV</a> ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names, <span class="keyword">const</span> ivec &amp;in_sizes ) { 
    126123<a name="l00128"></a>00128                 init ( in_names, in_sizes, zeros_i ( in_names.length() ) ); 
    127124<a name="l00129"></a>00129         } 
    128125<a name="l00130"></a>00130  
    129 <a name="l00132"></a><a class="code" href="classbdm_1_1RV.html#acb47d71d82639ec7ddf2635b21aafd00">00132</a>         <a class="code" href="classbdm_1_1RV.html#acb47d71d82639ec7ddf2635b21aafd00" title="Constructor with sizes=1, times=0.">RV</a> ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names ) { 
     126<a name="l00132"></a><a class="code" href="classbdm_1_1RV.html#cb47d71d82639ec7ddf2635b21aafd00">00132</a>         <a class="code" href="classbdm_1_1RV.html#cb47d71d82639ec7ddf2635b21aafd00" title="Constructor with sizes=1, times=0.">RV</a> ( <span class="keyword">const</span> Array&lt;std::string&gt; &amp;in_names ) { 
    130127<a name="l00133"></a>00133                 init ( in_names, ones_i ( in_names.length() ), zeros_i ( in_names.length() ) ); 
    131128<a name="l00134"></a>00134         } 
    132129<a name="l00135"></a>00135  
    133 <a name="l00137"></a><a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412">00137</a>         <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a>() : <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( 0 ) {} 
     130<a name="l00137"></a><a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412">00137</a>         <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a>() : <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( 0 ), <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( 0 ) {} 
    134131<a name="l00138"></a>00138  
    135 <a name="l00140"></a>00140         <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( <span class="keywordtype">string</span> name, <span class="keywordtype">int</span> sz, <span class="keywordtype">int</span> tm = 0 ); 
     132<a name="l00140"></a>00140         <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( <span class="keywordtype">string</span> name, <span class="keywordtype">int</span> sz, <span class="keywordtype">int</span> tm = 0 ); 
    136133<a name="l00141"></a>00141  
    137134<a name="l00142"></a>00142         <span class="comment">// compiler-generated copy constructor is used</span> 
    138135<a name="l00144"></a>00144 <span class="comment"></span> 
    139136<a name="l00147"></a>00147  
    140 <a name="l00149"></a>00149         <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classbdm_1_1RV.html#acad6f15535d10437f6690cb4492176a8" title="State output, e.g. for debugging.">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv ); 
     137<a name="l00149"></a>00149         <span class="keyword">friend</span> std::ostream &amp;<a class="code" href="classbdm_1_1RV.html#cad6f15535d10437f6690cb4492176a8" title="State output, e.g. for debugging.">operator&lt;&lt; </a>( std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv ); 
    141138<a name="l00150"></a>00150  
    142 <a name="l00151"></a><a class="code" href="classbdm_1_1RV.html#ab361a9044e6a43102c4f873b9f566a0f">00151</a>         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1RV.html#ab361a9044e6a43102c4f873b9f566a0f" title="This method returns a basic info about the current instance.">to_string</a>() {ostringstream o; o &lt;&lt; <span class="keyword">this</span>; <span class="keywordflow">return</span> o.str();} 
     139<a name="l00151"></a><a class="code" href="classbdm_1_1RV.html#b361a9044e6a43102c4f873b9f566a0f">00151</a>         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1RV.html#b361a9044e6a43102c4f873b9f566a0f" title="This method returns a basic info about the current instance.">to_string</a>() {ostringstream o; o &lt;&lt; <span class="keyword">this</span>; <span class="keywordflow">return</span> o.str();} 
    143140<a name="l00152"></a>00152          
    144 <a name="l00154"></a><a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089">00154</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>()<span class="keyword"> const </span>{ 
    145 <a name="l00155"></a>00155                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>; 
     141<a name="l00154"></a><a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089">00154</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>()<span class="keyword"> const </span>{ 
     142<a name="l00155"></a>00155                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>; 
    146143<a name="l00156"></a>00156         } 
    147144<a name="l00157"></a>00157  
    148 <a name="l00159"></a><a class="code" href="classbdm_1_1RV.html#a26318eb90cb172ea86d1f45de9131c4e">00159</a>         <span class="keyword">const</span> ivec&amp; <a class="code" href="classbdm_1_1RV.html#a26318eb90cb172ea86d1f45de9131c4e" title="access function">_ids</a>()<span class="keyword"> const </span>{ 
    149 <a name="l00160"></a>00160                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>; 
     145<a name="l00159"></a><a class="code" href="classbdm_1_1RV.html#26318eb90cb172ea86d1f45de9131c4e">00159</a>         <span class="keyword">const</span> ivec&amp; <a class="code" href="classbdm_1_1RV.html#26318eb90cb172ea86d1f45de9131c4e" title="access function">_ids</a>()<span class="keyword"> const </span>{ 
     146<a name="l00160"></a>00160                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>; 
    150147<a name="l00161"></a>00161         } 
    151148<a name="l00162"></a>00162  
    152 <a name="l00164"></a>00164         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#a39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>() <span class="keyword">const</span>; 
    153 <a name="l00166"></a>00166         ivec <a class="code" href="classbdm_1_1RV.html#a412d43294bac38fa1804829e38fa4eaf" title="Vector of cumulative sizes of RV.">cumsizes</a>() <span class="keyword">const</span>; 
    154 <a name="l00168"></a><a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b">00168</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#ae9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>()<span class="keyword"> const </span>{ 
    155 <a name="l00169"></a>00169                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ab11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; 
     149<a name="l00164"></a>00164         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#39f9b44752376f07e346579b5ff8cbbd" title="Recount size of the corresponding data vector.">countsize</a>() <span class="keyword">const</span>; 
     150<a name="l00166"></a>00166         ivec <a class="code" href="classbdm_1_1RV.html#412d43294bac38fa1804829e38fa4eaf" title="Vector of cumulative sizes of RV.">cumsizes</a>() <span class="keyword">const</span>; 
     151<a name="l00168"></a><a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b">00168</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#e9ec8c3e756651ff352ab5e3d3acda4b" title="Number of named parts.">length</a>()<span class="keyword"> const </span>{ 
     152<a name="l00169"></a>00169                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#b11bfdceb831ed30d33b852dd4a6b385" title="number of individual rvs">len</a>; 
    156153<a name="l00170"></a>00170         } 
    157154<a name="l00171"></a>00171         <span class="keywordtype">int</span> id ( <span class="keywordtype">int</span> at )<span class="keyword"> const </span>{ 
    158 <a name="l00172"></a>00172                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( at ); 
     155<a name="l00172"></a>00172                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( at ); 
    159156<a name="l00173"></a>00173         } 
    160157<a name="l00174"></a>00174         <span class="keywordtype">int</span> size ( <span class="keywordtype">int</span> at )<span class="keyword"> const </span>{ 
    161 <a name="l00175"></a>00175                 <span class="keywordflow">return</span> SIZES ( <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( at ) ); 
     158<a name="l00175"></a>00175                 <span class="keywordflow">return</span> SIZES ( <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( at ) ); 
    162159<a name="l00176"></a>00176         } 
    163160<a name="l00177"></a>00177         <span class="keywordtype">int</span> time ( <span class="keywordtype">int</span> at )<span class="keyword"> const </span>{ 
    164 <a name="l00178"></a>00178                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( at ); 
     161<a name="l00178"></a>00178                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( at ); 
    165162<a name="l00179"></a>00179         } 
    166163<a name="l00180"></a>00180         std::string name ( <span class="keywordtype">int</span> at )<span class="keyword"> const </span>{ 
    167 <a name="l00181"></a>00181                 <span class="keywordflow">return</span> NAMES ( <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( at ) ); 
     164<a name="l00181"></a>00181                 <span class="keywordflow">return</span> NAMES ( <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( at ) ); 
    168165<a name="l00182"></a>00182         } 
    169 <a name="l00184"></a><a class="code" href="classbdm_1_1RV.html#a9bae3443ded87dc9941d763e4c48cee0">00184</a>         std::string <a class="code" href="classbdm_1_1RV.html#a9bae3443ded87dc9941d763e4c48cee0" title="returns name of a scalar at position scalat, i.e. it can be in the middle of vector...">scalarname</a> ( <span class="keywordtype">int</span> scalat )<span class="keyword"> const </span>{ 
    170 <a name="l00185"></a>00185                 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(scalat&lt;<a class="code" href="classbdm_1_1RV.html#a0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>,<span class="stringliteral">&quot;Wrong input index&quot;</span>); 
     166<a name="l00184"></a><a class="code" href="classbdm_1_1RV.html#9bae3443ded87dc9941d763e4c48cee0">00184</a>         std::string <a class="code" href="classbdm_1_1RV.html#9bae3443ded87dc9941d763e4c48cee0" title="returns name of a scalar at position scalat, i.e. it can be in the middle of vector...">scalarname</a> ( <span class="keywordtype">int</span> scalat )<span class="keyword"> const </span>{ 
     167<a name="l00185"></a>00185                 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(scalat&lt;<a class="code" href="classbdm_1_1RV.html#0cfe477965243a89eb87a06b024e2fcb" title="size of the data vector">dsize</a>,<span class="stringliteral">"Wrong input index"</span>); 
    171168<a name="l00186"></a>00186                 <span class="keywordtype">int</span> <span class="keywordtype">id</span>=0; 
    172169<a name="l00187"></a>00187                 <span class="keywordtype">int</span> scalid=0; 
    173 <a name="l00188"></a>00188                 <span class="keywordflow">while</span> (scalid+SIZES(<a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>(<span class="keywordtype">id</span>))&lt;=scalat)  { scalid+=SIZES(<a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>(<span class="keywordtype">id</span>)); <span class="keywordtype">id</span>++;}; 
     170<a name="l00188"></a>00188                 <span class="keywordflow">while</span> (scalid+SIZES(<a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>(<span class="keywordtype">id</span>))&lt;=scalat)  { scalid+=SIZES(<a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a>(<span class="keywordtype">id</span>)); <span class="keywordtype">id</span>++;}; 
    174171<a name="l00189"></a>00189                 <span class="comment">//now id is the id of variable of interest</span> 
    175172<a name="l00190"></a>00190                 <span class="keywordflow">if</span> (size(<span class="keywordtype">id</span>)==1) 
    176 <a name="l00191"></a>00191                         <span class="keywordflow">return</span>  NAMES ( <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( <span class="keywordtype">id</span> ) ); 
     173<a name="l00191"></a>00191                         <span class="keywordflow">return</span>  NAMES ( <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( <span class="keywordtype">id</span> ) ); 
    177174<a name="l00192"></a>00192                 <span class="keywordflow">else</span> 
    178 <a name="l00193"></a>00193                         <span class="keywordflow">return</span>  NAMES ( <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( <span class="keywordtype">id</span> ) )+ <span class="stringliteral">&quot;_&quot;</span> + num2str(scalat-scalid); 
     175<a name="l00193"></a>00193                         <span class="keywordflow">return</span>  NAMES ( <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ( <span class="keywordtype">id</span> ) )+ <span class="stringliteral">"_"</span> + num2str(scalat-scalid); 
    179176<a name="l00194"></a>00194  
    180177<a name="l00195"></a>00195         } 
    181178<a name="l00196"></a>00196         <span class="keywordtype">void</span> set_time ( <span class="keywordtype">int</span> at, <span class="keywordtype">int</span> time0 ) { 
    182 <a name="l00197"></a>00197                 <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( at ) = time0; 
     179<a name="l00197"></a>00197                 <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a> ( at ) = time0; 
    183180<a name="l00198"></a>00198         } 
    184181<a name="l00200"></a>00200  
    185182<a name="l00203"></a>00203  
    186 <a name="l00205"></a>00205         ivec <a class="code" href="classbdm_1_1RV.html#a1367055b2608ad9d50d01a2da6cec869" title="Find indices of self in another rv,.">findself</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
    187 <a name="l00207"></a>00207         ivec <a class="code" href="classbdm_1_1RV.html#aa858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
    188 <a name="l00209"></a>00209         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#a3bb011af88ae98f5c97955bb2c95cfee" title="Compare if rv2 is identical to this RV.">equal</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
    189 <a name="l00211"></a>00211         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#a87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ); 
    190 <a name="l00213"></a>00213         <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#aaec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
    191 <a name="l00215"></a>00215         <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( <span class="keyword">const</span> ivec &amp;ind ) <span class="keyword">const</span>; 
     183<a name="l00205"></a>00205         ivec <a class="code" href="classbdm_1_1RV.html#1367055b2608ad9d50d01a2da6cec869" title="Find indices of self in another rv,.">findself</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
     184<a name="l00207"></a>00207         ivec <a class="code" href="classbdm_1_1RV.html#a858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
     185<a name="l00209"></a>00209         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#3bb011af88ae98f5c97955bb2c95cfee" title="Compare if rv2 is identical to this RV.">equal</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
     186<a name="l00211"></a>00211         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1RV.html#87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ); 
     187<a name="l00213"></a>00213         <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#aec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> &amp;rv2 ) <span class="keyword">const</span>; 
     188<a name="l00215"></a>00215         <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> <a class="code" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( <span class="keyword">const</span> ivec &amp;ind ) <span class="keyword">const</span>; 
    192189<a name="l00216"></a>00216  
    193 <a name="l00218"></a><a class="code" href="classbdm_1_1RV.html#a6f3daf0f857fff53a1c0a445fe160966">00218</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#a6f3daf0f857fff53a1c0a445fe160966" title="Select only variables at indices ind.">operator() </a>( <span class="keyword">const</span> ivec &amp;ind )<span class="keyword"> const </span>{ 
    194 <a name="l00219"></a>00219                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( ind ); 
     190<a name="l00218"></a><a class="code" href="classbdm_1_1RV.html#6f3daf0f857fff53a1c0a445fe160966">00218</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#6f3daf0f857fff53a1c0a445fe160966" title="Select only variables at indices ind.">operator() </a>( <span class="keyword">const</span> ivec &amp;ind )<span class="keyword"> const </span>{ 
     191<a name="l00219"></a>00219                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( ind ); 
    195192<a name="l00220"></a>00220         } 
    196193<a name="l00221"></a>00221  
    197 <a name="l00223"></a>00223         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#a6f3daf0f857fff53a1c0a445fe160966" title="Select only variables at indices ind.">operator() </a>( <span class="keywordtype">int</span> di1, <span class="keywordtype">int</span> di2 ) <span class="keyword">const</span>; 
     194<a name="l00223"></a>00223         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#6f3daf0f857fff53a1c0a445fe160966" title="Select only variables at indices ind.">operator() </a>( <span class="keywordtype">int</span> di1, <span class="keywordtype">int</span> di2 ) <span class="keyword">const</span>; 
    198195<a name="l00224"></a>00224  
    199 <a name="l00226"></a>00226         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#a449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a> ( <span class="keywordtype">int</span> delta ); 
     196<a name="l00226"></a>00226         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a> ( <span class="keywordtype">int</span> delta ); 
    200197<a name="l00228"></a>00228  
    201198<a name="l00231"></a>00231         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> remove_time()<span class="keyword"> const </span>{ 
    202 <a name="l00232"></a>00232                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ae319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( unique ( <a class="code" href="classbdm_1_1RV.html#a0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ), dummy ); 
     199<a name="l00232"></a>00232                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#e319ca900261a5005a9b4b353ec16412" title="Constructor of empty RV.">RV</a> ( unique ( <a class="code" href="classbdm_1_1RV.html#0a9a4769ab5a322495bea0cd8091500b" title="Vector of unique IDs.">ids</a> ), dummy ); 
    203200<a name="l00233"></a>00233         } 
    204 <a name="l00235"></a><a class="code" href="classbdm_1_1RV.html#a627222f49abc5d07e5e8aecac7708ee2">00235</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#a627222f49abc5d07e5e8aecac7708ee2" title="create new RV from the current one with time shifted by given value">copy_t</a>(<span class="keywordtype">int</span> dt)<span class="keyword"> const </span>{ 
     201<a name="l00235"></a><a class="code" href="classbdm_1_1RV.html#627222f49abc5d07e5e8aecac7708ee2">00235</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#627222f49abc5d07e5e8aecac7708ee2" title="create new RV from the current one with time shifted by given value">copy_t</a>(<span class="keywordtype">int</span> dt)<span class="keyword"> const </span>{ 
    205202<a name="l00236"></a>00236                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> tmp=*<span class="keyword">this</span>; 
    206 <a name="l00237"></a>00237                 tmp.<a class="code" href="classbdm_1_1RV.html#a449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a>(dt); 
     203<a name="l00237"></a>00237                 tmp.<a class="code" href="classbdm_1_1RV.html#449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a>(dt); 
    207204<a name="l00238"></a>00238                 <span class="keywordflow">return</span> tmp; 
    208205<a name="l00239"></a>00239         } 
    209 <a name="l00241"></a><a class="code" href="classbdm_1_1RV.html#ac5819f71d774649412c10b8e1716be1e">00241</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#ac5819f71d774649412c10b8e1716be1e" title="return rvs with expanded delayes and sorted in the order of:">expand_delayes</a>()<span class="keyword"> const </span>{ 
     206<a name="l00241"></a><a class="code" href="classbdm_1_1RV.html#c5819f71d774649412c10b8e1716be1e">00241</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1RV.html#c5819f71d774649412c10b8e1716be1e" title="return rvs with expanded delayes and sorted in the order of:">expand_delayes</a>()<span class="keyword"> const </span>{ 
    210207<a name="l00242"></a>00242                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rvt = this-&gt;remove_time(); <span class="comment">//rv at t=0</span> 
    211208<a name="l00243"></a>00243                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> tmp = rvt; 
    212 <a name="l00244"></a>00244                 <span class="keywordtype">int</span> td = <a class="code" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>(); 
     209<a name="l00244"></a>00244                 <span class="keywordtype">int</span> td = <a class="code" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>(); 
    213210<a name="l00245"></a>00245                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = -1; i &gt;= td; i-- ) { 
    214 <a name="l00246"></a>00246                         rvt.<a class="code" href="classbdm_1_1RV.html#a449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a> ( -1 ); 
    215 <a name="l00247"></a>00247                         tmp.<a class="code" href="classbdm_1_1RV.html#a87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( rvt ); <span class="comment">//shift u1</span> 
     211<a name="l00246"></a>00246                         rvt.<a class="code" href="classbdm_1_1RV.html#449c2b692957528976c189d27236e1ba" title="Shift time by delta.">t_plus</a> ( -1 ); 
     212<a name="l00247"></a>00247                         tmp.<a class="code" href="classbdm_1_1RV.html#87841b5ee43997b79789c0c22047e224" title="Add (concat) another variable to the current one,.">add</a> ( rvt ); <span class="comment">//shift u1</span> 
    216213<a name="l00248"></a>00248                 } 
    217214<a name="l00249"></a>00249                 <span class="keywordflow">return</span> tmp; 
     
    219216<a name="l00252"></a>00252  
    220217<a name="l00255"></a>00255  
    221 <a name="l00257"></a>00257         <a class="code" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a> <a class="code" href="classbdm_1_1RV.html#a8bdd7f4072749c7cc864b78a418ca388" title="generate str from rv, by expanding sizes">tostr</a>() <span class="keyword">const</span>; 
    222 <a name="l00260"></a>00260         ivec <a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;crv ) <span class="keyword">const</span>; 
    223 <a name="l00262"></a>00262         ivec <a class="code" href="classbdm_1_1RV.html#a0c6e3a1c54a612d2ea390c841aa5eb6f" title="same as dataind but this time crv should not be complete supperset of rv.">dataind_part</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;crv ) <span class="keyword">const</span>; 
    224 <a name="l00265"></a>00265         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv2, ivec &amp;selfi, ivec &amp;rv2i ) <span class="keyword">const</span>; 
    225 <a name="l00267"></a><a class="code" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241">00267</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#a9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>()<span class="keyword"> const </span>{ 
    226 <a name="l00268"></a>00268                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>.length()&gt;0 ? min (<a class="code" href="classbdm_1_1RV.html#aef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>) : 0; 
     218<a name="l00257"></a>00257         <a class="code" href="classbdm_1_1str.html" title="Structure of RV, i.e. RVs expanded into a flat list of IDs, used for debugging.">str</a> <a class="code" href="classbdm_1_1RV.html#8bdd7f4072749c7cc864b78a418ca388" title="generate str from rv, by expanding sizes">tostr</a>() <span class="keyword">const</span>; 
     219<a name="l00260"></a>00260         ivec <a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;crv ) <span class="keyword">const</span>; 
     220<a name="l00262"></a>00262         ivec <a class="code" href="classbdm_1_1RV.html#0c6e3a1c54a612d2ea390c841aa5eb6f" title="same as dataind but this time crv should not be complete supperset of rv.">dataind_part</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;crv ) <span class="keyword">const</span>; 
     221<a name="l00265"></a>00265         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv2, ivec &amp;selfi, ivec &amp;rv2i ) <span class="keyword">const</span>; 
     222<a name="l00267"></a><a class="code" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241">00267</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1RV.html#9a5c5aeeaf39299d07763377b05a8241" title="Minimum time-offset.">mint</a>()<span class="keyword"> const </span>{ 
     223<a name="l00268"></a>00268                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>.length()&gt;0 ? min (<a class="code" href="classbdm_1_1RV.html#ef6703854820bbf61736738f1bac6896" title="Vector of shifts from current time.">times</a>) : 0; 
    227224<a name="l00269"></a>00269         } 
    228225<a name="l00271"></a>00271  
    229 <a name="l00284"></a>00284         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#a6564bdd36b6845a51446a192d33e1194" title="UI for class RV (description of data vectors).">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     226<a name="l00284"></a>00284         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#6564bdd36b6845a51446a192d33e1194" title="UI for class RV (description of data vectors).">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    230227<a name="l00285"></a>00285  
    231228<a name="l00286"></a>00286         <span class="comment">// TODO dodelat void to_setting( Setting &amp;set ) const;</span> 
    232229<a name="l00287"></a>00287  
    233 <a name="l00289"></a>00289         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#aab92b361335a644df654cf7cf7e5ffc0" title="Invalidate all named RVs. Use before initializing any RV instances, with care...">clear_all</a>(); 
    234 <a name="l00291"></a>00291         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1RV.html#a0743ab524c18d0c6553b29b043fd42bd" title="function for debugging RV related stuff">show_all</a>(); 
     230<a name="l00289"></a>00289         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1RV.html#ab92b361335a644df654cf7cf7e5ffc0" title="Invalidate all named RVs. Use before initializing any RV instances, with care...">clear_all</a>(); 
     231<a name="l00291"></a>00291         <span class="keywordtype">string</span> <a class="code" href="classbdm_1_1RV.html#0743ab524c18d0c6553b29b043fd42bd" title="function for debugging RV related stuff">show_all</a>(); 
    235232<a name="l00292"></a>00292  
    236233<a name="l00293"></a>00293 }; 
    237 <a name="l00294"></a>00294 <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> ( RV ); 
     234<a name="l00294"></a>00294 <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> ( RV ); 
    238235<a name="l00295"></a>00295 SHAREDPTR ( RV ); 
    239236<a name="l00296"></a>00296  
     
    242239<a name="l00301"></a><a class="code" href="classbdm_1_1fnc.html">00301</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1fnc.html" title="Class representing function  of variable  represented by rv.">fnc</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> { 
    243240<a name="l00302"></a>00302 <span class="keyword">protected</span>: 
    244 <a name="l00304"></a><a class="code" href="classbdm_1_1fnc.html#a52156cb4a52a62d51fc7455985797a62">00304</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1fnc.html#a52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>; 
     241<a name="l00304"></a><a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62">00304</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>; 
    245242<a name="l00305"></a>00305 <span class="keyword">public</span>: 
    246 <a name="l00307"></a><a class="code" href="classbdm_1_1fnc.html#a65e9fb11f6cc7884018d8f229bcabbb7">00307</a>         <a class="code" href="classbdm_1_1fnc.html#a65e9fb11f6cc7884018d8f229bcabbb7" title="default constructor">fnc</a>() {}; 
    247 <a name="l00309"></a><a class="code" href="classbdm_1_1fnc.html#a6277b11d7fffc7ef8a2fa3e84ae5bad4">00309</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1fnc.html#a6277b11d7fffc7ef8a2fa3e84ae5bad4" title="function evaluates numerical value of  at  cond ">eval</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
     243<a name="l00307"></a><a class="code" href="classbdm_1_1fnc.html#65e9fb11f6cc7884018d8f229bcabbb7">00307</a>         <a class="code" href="classbdm_1_1fnc.html#65e9fb11f6cc7884018d8f229bcabbb7" title="default constructor">fnc</a>() {}; 
     244<a name="l00309"></a><a class="code" href="classbdm_1_1fnc.html#6277b11d7fffc7ef8a2fa3e84ae5bad4">00309</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1fnc.html#6277b11d7fffc7ef8a2fa3e84ae5bad4" title="function evaluates numerical value of  at  cond ">eval</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
    248245<a name="l00310"></a>00310                 <span class="keywordflow">return</span> vec ( 0 ); 
    249246<a name="l00311"></a>00311         }; 
    250247<a name="l00312"></a>00312  
    251 <a name="l00314"></a><a class="code" href="classbdm_1_1fnc.html#a0786e40fade2663a70d654c1dda5d73e">00314</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fnc.html#a0786e40fade2663a70d654c1dda5d73e" title="function substitutes given value into an appropriate position">condition</a> ( <span class="keyword">const</span> vec &amp;val ) {}; 
     248<a name="l00314"></a><a class="code" href="classbdm_1_1fnc.html#0786e40fade2663a70d654c1dda5d73e">00314</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1fnc.html#0786e40fade2663a70d654c1dda5d73e" title="function substitutes given value into an appropriate position">condition</a> ( <span class="keyword">const</span> vec &amp;val ) {}; 
    252249<a name="l00315"></a>00315  
    253 <a name="l00317"></a><a class="code" href="classbdm_1_1fnc.html#a083832294da9d1e40804158b979c4341">00317</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1fnc.html#a083832294da9d1e40804158b979c4341" title="access function">dimension</a>()<span class="keyword"> const </span>{ 
    254 <a name="l00318"></a>00318                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1fnc.html#a52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>; 
     250<a name="l00317"></a><a class="code" href="classbdm_1_1fnc.html#083832294da9d1e40804158b979c4341">00317</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1fnc.html#083832294da9d1e40804158b979c4341" title="access function">dimension</a>()<span class="keyword"> const </span>{ 
     251<a name="l00318"></a>00318                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1fnc.html#52156cb4a52a62d51fc7455985797a62" title="Length of the output vector.">dimy</a>; 
    255252<a name="l00319"></a>00319         } 
    256253<a name="l00320"></a>00320 }; 
     
    261258<a name="l00326"></a><a class="code" href="classbdm_1_1epdf.html">00326</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> { 
    262259<a name="l00327"></a>00327 <span class="keyword">protected</span>: 
    263 <a name="l00329"></a><a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">00329</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a>; 
    264 <a name="l00331"></a><a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">00331</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; 
     260<a name="l00329"></a><a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">00329</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a>; 
     261<a name="l00331"></a><a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">00331</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; 
    265262<a name="l00332"></a>00332  
    266263<a name="l00333"></a>00333 <span class="keyword">public</span>: 
    267 <a name="l00345"></a>00345         <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>() : <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( 0 ), <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>() {}; 
    268 <a name="l00346"></a>00346         <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> &amp;e ) : <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( e.<a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ), <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ( e.<a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) {}; 
    269 <a name="l00347"></a>00347         epdf ( <span class="keyword">const</span> RV &amp;rv0 ) : <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( rv0._dsize() ) { 
    270 <a name="l00348"></a>00348                 <a class="code" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</a> ( rv0 ); 
     264<a name="l00345"></a>00345         <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>() : <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( 0 ), <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>() {}; 
     265<a name="l00346"></a>00346         <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> &amp;e ) : <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( e.<a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ), <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ( e.<a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) {}; 
     266<a name="l00347"></a>00347         epdf ( <span class="keyword">const</span> RV &amp;rv0 ) : <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> ( rv0._dsize() ) { 
     267<a name="l00348"></a>00348                 <a class="code" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</a> ( rv0 ); 
    271268<a name="l00349"></a>00349         }; 
    272269<a name="l00350"></a>00350         <span class="keywordtype">void</span> set_parameters ( <span class="keywordtype">int</span> dim0 ) { 
    273 <a name="l00351"></a>00351                 <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> = dim0; 
     270<a name="l00351"></a>00351                 <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> = dim0; 
    274271<a name="l00352"></a>00352         } 
    275272<a name="l00354"></a>00354  
    276273<a name="l00357"></a>00357  
    277 <a name="l00359"></a><a class="code" href="classbdm_1_1epdf.html#a75ba57a89681a8efec488f5796c7cc1b">00359</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#a75ba57a89681a8efec488f5796c7cc1b" title="Returns a sample,  from density .">sample</a>()<span class="keyword"> const </span>{ 
    278 <a name="l00360"></a>00360                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;not implemented&quot;</span> ); 
     274<a name="l00359"></a><a class="code" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b">00359</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b" title="Returns a sample,  from density .">sample</a>()<span class="keyword"> const </span>{ 
     275<a name="l00360"></a>00360                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"not implemented"</span> ); 
    279276<a name="l00361"></a>00361                 <span class="keywordflow">return</span> vec(); 
    280277<a name="l00362"></a>00362         } 
    281278<a name="l00363"></a>00363  
    282 <a name="l00365"></a>00365         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058" title="Returns N samples,  from density .">sample_m</a> ( <span class="keywordtype">int</span> N ) <span class="keyword">const</span>; 
     279<a name="l00365"></a>00365         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058" title="Returns N samples,  from density .">sample_m</a> ( <span class="keywordtype">int</span> N ) <span class="keyword">const</span>; 
    283280<a name="l00366"></a>00366  
    284 <a name="l00369"></a><a class="code" href="classbdm_1_1epdf.html#adeab266d63c236c277538867d5c3f249">00369</a>         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1epdf.html#adeab266d63c236c277538867d5c3f249" title="Compute log-probability of argument val In case the argument is out of suport return...">evallog</a> ( <span class="keyword">const</span> vec &amp;val )<span class="keyword"> const </span>{ 
    285 <a name="l00370"></a>00370                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;not implemented&quot;</span> ); 
     281<a name="l00369"></a><a class="code" href="classbdm_1_1epdf.html#deab266d63c236c277538867d5c3f249">00369</a>         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1epdf.html#deab266d63c236c277538867d5c3f249" title="Compute log-probability of argument val In case the argument is out of suport return...">evallog</a> ( <span class="keyword">const</span> vec &amp;val )<span class="keyword"> const </span>{ 
     282<a name="l00370"></a>00370                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"not implemented"</span> ); 
    286283<a name="l00371"></a>00371                 <span class="keywordflow">return</span> 0.0; 
    287284<a name="l00372"></a>00372         } 
    288285<a name="l00373"></a>00373  
    289 <a name="l00375"></a>00375         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#ad08b68a5abd461f1b6519597e344caf8" title="Compute log-probability of multiple values argument val.">evallog_m</a> ( <span class="keyword">const</span> mat &amp;Val ) <span class="keyword">const</span>; 
     286<a name="l00375"></a>00375         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#d08b68a5abd461f1b6519597e344caf8" title="Compute log-probability of multiple values argument val.">evallog_m</a> ( <span class="keyword">const</span> mat &amp;Val ) <span class="keyword">const</span>; 
    290287<a name="l00376"></a>00376  
    291 <a name="l00378"></a>00378         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#ad08b68a5abd461f1b6519597e344caf8" title="Compute log-probability of multiple values argument val.">evallog_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Avec ) <span class="keyword">const</span>; 
     288<a name="l00378"></a>00378         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#d08b68a5abd461f1b6519597e344caf8" title="Compute log-probability of multiple values argument val.">evallog_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Avec ) <span class="keyword">const</span>; 
    292289<a name="l00379"></a>00379  
    293 <a name="l00381"></a>00381         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;mpdf&gt;</a> <a class="code" href="classbdm_1_1epdf.html#a1499d35b79bce0cfa64fc5cafb9c03b2" title="Return conditional density on the given RV, the remaining rvs will be in conditioning...">condition</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;<a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) <span class="keyword">const</span>; 
     290<a name="l00381"></a>00381         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;mpdf&gt;</a> <a class="code" href="classbdm_1_1epdf.html#1499d35b79bce0cfa64fc5cafb9c03b2" title="Return conditional density on the given RV, the remaining rvs will be in conditioning...">condition</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;<a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) <span class="keyword">const</span>; 
    294291<a name="l00382"></a>00382  
    295 <a name="l00384"></a>00384         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> <a class="code" href="classbdm_1_1epdf.html#aa84b05f5293cab2aeb4e07faffa60906" title="Return marginal density on the given RV, the remainig rvs are intergrated out.">marginal</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;<a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) <span class="keyword">const</span>; 
     292<a name="l00384"></a>00384         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> <a class="code" href="classbdm_1_1epdf.html#a84b05f5293cab2aeb4e07faffa60906" title="Return marginal density on the given RV, the remainig rvs are intergrated out.">marginal</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;<a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> ) <span class="keyword">const</span>; 
    296293<a name="l00385"></a>00385  
    297 <a name="l00387"></a><a class="code" href="classbdm_1_1epdf.html#a0c8d13d788094605b3cdab20a6e22b75">00387</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#a0c8d13d788094605b3cdab20a6e22b75" title="return expected value">mean</a>()<span class="keyword"> const </span>{ 
    298 <a name="l00388"></a>00388                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;not implemneted&quot;</span> ); 
     294<a name="l00387"></a><a class="code" href="classbdm_1_1epdf.html#0c8d13d788094605b3cdab20a6e22b75">00387</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#0c8d13d788094605b3cdab20a6e22b75" title="return expected value">mean</a>()<span class="keyword"> const </span>{ 
     295<a name="l00388"></a>00388                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"not implemneted"</span> ); 
    299296<a name="l00389"></a>00389                 <span class="keywordflow">return</span> vec(); 
    300297<a name="l00390"></a>00390         } 
    301298<a name="l00391"></a>00391  
    302 <a name="l00393"></a><a class="code" href="classbdm_1_1epdf.html#a4543d40ccfc5d549b0c831a57a3ed84c">00393</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#a4543d40ccfc5d549b0c831a57a3ed84c" title="return expected variance (not covariance!)">variance</a>()<span class="keyword"> const </span>{ 
    303 <a name="l00394"></a>00394                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;not implemneted&quot;</span> ); 
     299<a name="l00393"></a><a class="code" href="classbdm_1_1epdf.html#4543d40ccfc5d549b0c831a57a3ed84c">00393</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1epdf.html#4543d40ccfc5d549b0c831a57a3ed84c" title="return expected variance (not covariance!)">variance</a>()<span class="keyword"> const </span>{ 
     300<a name="l00394"></a>00394                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"not implemneted"</span> ); 
    304301<a name="l00395"></a>00395                 <span class="keywordflow">return</span> vec(); 
    305302<a name="l00396"></a>00396         } 
    306303<a name="l00397"></a>00397  
    307 <a name="l00399"></a><a class="code" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">00399</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( vec &amp;lb, vec &amp;ub, <span class="keywordtype">double</span> percentage = 0.95 )<span class="keyword"> const </span>{ 
    308 <a name="l00400"></a>00400                 vec mea = <a class="code" href="classbdm_1_1epdf.html#a0c8d13d788094605b3cdab20a6e22b75" title="return expected value">mean</a>(); 
    309 <a name="l00401"></a>00401                 vec std = sqrt ( <a class="code" href="classbdm_1_1epdf.html#a4543d40ccfc5d549b0c831a57a3ed84c" title="return expected variance (not covariance!)">variance</a>() ); 
     304<a name="l00399"></a><a class="code" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539">00399</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( vec &amp;lb, vec &amp;ub, <span class="keywordtype">double</span> percentage = 0.95 )<span class="keyword"> const </span>{ 
     305<a name="l00400"></a>00400                 vec mea = <a class="code" href="classbdm_1_1epdf.html#0c8d13d788094605b3cdab20a6e22b75" title="return expected value">mean</a>(); 
     306<a name="l00401"></a>00401                 vec std = sqrt ( <a class="code" href="classbdm_1_1epdf.html#4543d40ccfc5d549b0c831a57a3ed84c" title="return expected variance (not covariance!)">variance</a>() ); 
    310307<a name="l00402"></a>00402                 lb = mea - 2 * std; 
    311308<a name="l00403"></a>00403                 ub = mea + 2 * std; 
     
    313310<a name="l00406"></a>00406  
    314311<a name="l00412"></a>00412  
    315 <a name="l00414"></a><a class="code" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff">00414</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</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;rv0 ) { 
    316 <a name="l00415"></a>00415                 <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = rv0; 
     312<a name="l00414"></a><a class="code" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff">00414</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</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;rv0 ) { 
     313<a name="l00415"></a>00415                 <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = rv0; 
    317314<a name="l00416"></a>00416         } 
    318315<a name="l00417"></a>00417  
    319 <a name="l00419"></a><a class="code" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">00419</a>         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9" title="True if rv is assigned.">isnamed</a>()<span class="keyword"> const </span>{ 
    320 <a name="l00420"></a>00420                 <span class="keywordtype">bool</span> b = ( <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> == <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); 
     316<a name="l00419"></a><a class="code" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">00419</a>         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9" title="True if rv is assigned.">isnamed</a>()<span class="keyword"> const </span>{ 
     317<a name="l00420"></a>00420                 <span class="keywordtype">bool</span> b = ( <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a> == <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); 
    321318<a name="l00421"></a>00421                 <span class="keywordflow">return</span> b; 
    322319<a name="l00422"></a>00422         } 
    323320<a name="l00423"></a>00423  
    324 <a name="l00425"></a><a class="code" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21">00425</a>         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>()<span class="keyword"> const </span>{ 
    325 <a name="l00426"></a>00426                 <span class="comment">//bdm_assert_debug ( isnamed(), &quot;&quot; );</span> 
    326 <a name="l00427"></a>00427                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; 
     321<a name="l00425"></a><a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">00425</a>         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>()<span class="keyword"> const </span>{ 
     322<a name="l00426"></a>00426                 <span class="comment">//bdm_assert_debug ( isnamed(), "" );</span> 
     323<a name="l00427"></a>00427                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a>; 
    327324<a name="l00428"></a>00428         } 
    328325<a name="l00430"></a>00430  
    329326<a name="l00433"></a>00433  
    330 <a name="l00435"></a><a class="code" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">00435</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c" title="Size of the random variable.">dimension</a>()<span class="keyword"> const </span>{ 
    331 <a name="l00436"></a>00436                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a>; 
     327<a name="l00435"></a><a class="code" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">00435</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c" title="Size of the random variable.">dimension</a>()<span class="keyword"> const </span>{ 
     328<a name="l00436"></a>00436                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce" title="dimension of the random variable">dim</a>; 
    332329<a name="l00437"></a>00437         } 
    333 <a name="l00445"></a><a class="code" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">00445</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ) { 
    334 <a name="l00446"></a>00446                 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr&lt;RV&gt;</a> r = UI::build&lt;RV&gt; ( <span class="keyword">set</span>, <span class="stringliteral">&quot;rv&quot;</span>, UI::optional ); 
     330<a name="l00445"></a><a class="code" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">00445</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ) { 
     331<a name="l00446"></a>00446                 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr&lt;RV&gt;</a> r = UI::build&lt;RV&gt; ( <span class="keyword">set</span>, <span class="stringliteral">"rv"</span>, UI::optional ); 
    335332<a name="l00447"></a>00447                 <span class="keywordflow">if</span> ( r ) { 
    336 <a name="l00448"></a>00448                         <a class="code" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</a> ( *r ); 
     333<a name="l00448"></a>00448                         <a class="code" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv</a> ( *r ); 
    337334<a name="l00449"></a>00449                 } 
    338335<a name="l00450"></a>00450         } 
     
    343340<a name="l00456"></a><a class="code" href="classbdm_1_1mpdf.html">00456</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> { 
    344341<a name="l00457"></a>00457 <span class="keyword">protected</span>: 
    345 <a name="l00459"></a><a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6">00459</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a>; 
    346 <a name="l00461"></a><a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288">00461</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>; 
     342<a name="l00459"></a><a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">00459</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a>; 
     343<a name="l00461"></a><a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">00461</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>; 
    347344<a name="l00462"></a>00462 <span class="keyword">private</span>: 
    348345<a name="l00464"></a>00464         <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* ep; 
    349346<a name="l00465"></a>00465  
    350347<a name="l00466"></a>00466 <span class="keyword">protected</span>: 
    351 <a name="l00468"></a><a class="code" href="classbdm_1_1mpdf.html#a147afacb393324bb3f9a7a89e33f835e">00468</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf.html#a147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> &amp;iepdf ) { 
     348<a name="l00468"></a><a class="code" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e">00468</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> &amp;iepdf ) { 
    352349<a name="l00469"></a>00469                 ep = &amp;iepdf; 
    353350<a name="l00470"></a>00470         } 
    354 <a name="l00472"></a><a class="code" href="classbdm_1_1mpdf.html#a7555b377f8b5895c9b759c9628ee3e20">00472</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf.html#a7555b377f8b5895c9b759c9628ee3e20" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> *iepdfp ) { 
     351<a name="l00472"></a><a class="code" href="classbdm_1_1mpdf.html#7555b377f8b5895c9b759c9628ee3e20">00472</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf.html#7555b377f8b5895c9b759c9628ee3e20" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> *iepdfp ) { 
    355352<a name="l00473"></a>00473                 ep = iepdfp; 
    356353<a name="l00474"></a>00474         } 
     
    358355<a name="l00476"></a>00476 <span class="keyword">public</span>: 
    359356<a name="l00479"></a>00479  
    360 <a name="l00480"></a>00480         <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a>() : <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ( 0 ), <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>(), ep ( NULL ) { } 
     357<a name="l00480"></a>00480         <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a>() : <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ( 0 ), <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>(), ep ( NULL ) { } 
    361358<a name="l00481"></a>00481  
    362 <a name="l00482"></a>00482         mpdf ( <span class="keyword">const</span> mpdf &amp;m ) : <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ( m.<a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ), <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> ( m.<a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> ), ep ( m.ep ) { } 
     359<a name="l00482"></a>00482         mpdf ( <span class="keyword">const</span> mpdf &amp;m ) : <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ( m.<a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> ), <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> ( m.<a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> ), ep ( m.ep ) { } 
    363360<a name="l00484"></a>00484  
    364361<a name="l00487"></a>00487  
    365 <a name="l00489"></a><a class="code" href="classbdm_1_1mpdf.html#af0c1db6fcbb3aae2dd6123884457a367">00489</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#af0c1db6fcbb3aae2dd6123884457a367" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
    366 <a name="l00490"></a>00490                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     362<a name="l00489"></a><a class="code" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367">00489</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367" title="Returns a sample from the density conditioned on cond, .">samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
     363<a name="l00490"></a>00490                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    367364<a name="l00491"></a>00491                 <span class="keywordflow">return</span> vec(); 
    368365<a name="l00492"></a>00492         } 
    369366<a name="l00493"></a>00493  
    370 <a name="l00495"></a>00495         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1mpdf.html#a6e497d501331057309d2fddf63259d1a" title="Returns.">samplecond_m</a> ( <span class="keyword">const</span> vec &amp;cond, <span class="keywordtype">int</span> N ); 
     367<a name="l00495"></a>00495         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1mpdf.html#6e497d501331057309d2fddf63259d1a" title="Returns.">samplecond_m</a> ( <span class="keyword">const</span> vec &amp;cond, <span class="keywordtype">int</span> N ); 
    371368<a name="l00496"></a>00496  
    372 <a name="l00498"></a><a class="code" href="classbdm_1_1mpdf.html#a6336a8a72462e2a56a3989a220f18b1b">00498</a>         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf.html#a6336a8a72462e2a56a3989a220f18b1b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( <span class="keyword">const</span> vec &amp;dt, <span class="keyword">const</span> vec &amp;cond ) { 
    373 <a name="l00499"></a>00499                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     369<a name="l00498"></a><a class="code" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b">00498</a>         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( <span class="keyword">const</span> vec &amp;dt, <span class="keyword">const</span> vec &amp;cond ) { 
     370<a name="l00499"></a>00499                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    374371<a name="l00500"></a>00500                 <span class="keywordflow">return</span> 0.0; 
    375372<a name="l00501"></a>00501         } 
    376373<a name="l00502"></a>00502  
    377 <a name="l00504"></a><a class="code" href="classbdm_1_1mpdf.html#a0b0ed1ed663071bb7cf4a1349eb94fcb">00504</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#a0b0ed1ed663071bb7cf4a1349eb94fcb" title="Matrix version of evallogcond.">evallogcond_m</a> ( <span class="keyword">const</span> mat &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
     374<a name="l00504"></a><a class="code" href="classbdm_1_1mpdf.html#0b0ed1ed663071bb7cf4a1349eb94fcb">00504</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#0b0ed1ed663071bb7cf4a1349eb94fcb" title="Matrix version of evallogcond.">evallogcond_m</a> ( <span class="keyword">const</span> mat &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
    378375<a name="l00505"></a>00505                 vec v ( Dt.cols() ); 
    379376<a name="l00506"></a>00506                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; Dt.cols(); i++ ) { 
    380 <a name="l00507"></a>00507                         v ( i ) = <a class="code" href="classbdm_1_1mpdf.html#a6336a8a72462e2a56a3989a220f18b1b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( Dt.get_col ( i ), cond ); 
     377<a name="l00507"></a>00507                         v ( i ) = <a class="code" href="classbdm_1_1mpdf.html#6336a8a72462e2a56a3989a220f18b1b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( Dt.get_col ( i ), cond ); 
    381378<a name="l00508"></a>00508                 } 
    382379<a name="l00509"></a>00509                 <span class="keywordflow">return</span> v; 
    383380<a name="l00510"></a>00510         } 
    384381<a name="l00511"></a>00511  
    385 <a name="l00513"></a><a class="code" href="classbdm_1_1mpdf.html#a2a0d03756f59924fd038980ee60bd904">00513</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#a2a0d03756f59924fd038980ee60bd904" title="Array&amp;lt;vec&amp;gt; version of evallogcond.">evallogcond_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
    386 <a name="l00514"></a>00514                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     382<a name="l00513"></a><a class="code" href="classbdm_1_1mpdf.html#2a0d03756f59924fd038980ee60bd904">00513</a>         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf.html#2a0d03756f59924fd038980ee60bd904" title="Array&amp;lt;vec&amp;gt; version of evallogcond.">evallogcond_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
     383<a name="l00514"></a>00514                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    387384<a name="l00515"></a>00515                 <span class="keywordflow">return</span> vec(); 
    388385<a name="l00516"></a>00516         } 
     
    390387<a name="l00520"></a>00520  
    391388<a name="l00521"></a>00521         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; _rv()<span class="keyword"> const </span>{ 
    392 <a name="l00522"></a>00522                 <span class="keywordflow">return</span> ep-&gt;<a class="code" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>(); 
     389<a name="l00522"></a>00522                 <span class="keywordflow">return</span> ep-&gt;<a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>(); 
    393390<a name="l00523"></a>00523         } 
    394391<a name="l00524"></a>00524         <span class="keyword">const</span> RV&amp; _rvc()<span class="keyword"> const </span>{ 
    395 <a name="l00525"></a>00525                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>; 
     392<a name="l00525"></a>00525                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>; 
    396393<a name="l00526"></a>00526         } 
    397394<a name="l00527"></a>00527  
     
    400397<a name="l00530"></a>00530         } 
    401398<a name="l00531"></a>00531         <span class="keywordtype">int</span> dimensionc() { 
    402 <a name="l00532"></a>00532                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a>; 
     399<a name="l00532"></a>00532                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a>; 
    403400<a name="l00533"></a>00533         } 
    404401<a name="l00534"></a>00534  
    405 <a name="l00544"></a>00544         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf.html#a30a0bceb948e287d497c578e371b1667" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     402<a name="l00544"></a>00544         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf.html#30a0bceb948e287d497c578e371b1667" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    406403<a name="l00546"></a>00546  
    407404<a name="l00549"></a>00549         <span class="keywordtype">void</span> set_rvc ( <span class="keyword">const</span> RV &amp;rvc0 ) { 
    408 <a name="l00550"></a>00550                 <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> = rvc0; 
     405<a name="l00550"></a>00550                 <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a> = rvc0; 
    409406<a name="l00551"></a>00551         } 
    410407<a name="l00552"></a>00552         <span class="keywordtype">void</span> set_rv ( <span class="keyword">const</span> RV &amp;rv0 ) { 
     
    412409<a name="l00554"></a>00554         } 
    413410<a name="l00555"></a>00555         <span class="keywordtype">bool</span> isnamed() { 
    414 <a name="l00556"></a>00556                 <span class="keywordflow">return</span> ( ep-&gt;isnamed() ) &amp;&amp; ( <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> == <a class="code" href="classbdm_1_1mpdf.html#a5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>._dsize() ); 
     411<a name="l00556"></a>00556                 <span class="keywordflow">return</span> ( ep-&gt;isnamed() ) &amp;&amp; ( <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> == <a class="code" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288" title="random variable in condition">rvc</a>._dsize() ); 
    415412<a name="l00557"></a>00557         } 
    416413<a name="l00559"></a>00559 }; 
     
    420417<a name="l00564"></a><a class="code" href="classbdm_1_1mpdf__internal.html">00564</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1mpdf__internal.html" title="Mpdf with internal epdf that is modified by function condition.">mpdf_internal</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a> { 
    421418<a name="l00565"></a>00565 <span class="keyword">protected</span> : 
    422 <a name="l00567"></a><a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468">00567</a>         EPDF <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>; 
     419<a name="l00567"></a><a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468">00567</a>         EPDF <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>; 
    423420<a name="l00568"></a>00568 <span class="keyword">public</span>: 
    424 <a name="l00570"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ae054b86262261abe0724f5890218689f">00570</a>         <a class="code" href="classbdm_1_1mpdf__internal.html#ae054b86262261abe0724f5890218689f" title="constructor">mpdf_internal</a>() : <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a>(), <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>() { 
    425 <a name="l00571"></a>00571                 <a class="code" href="classbdm_1_1mpdf.html#a147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a> ); 
     421<a name="l00570"></a><a class="code" href="classbdm_1_1mpdf__internal.html#e054b86262261abe0724f5890218689f">00570</a>         <a class="code" href="classbdm_1_1mpdf__internal.html#e054b86262261abe0724f5890218689f" title="constructor">mpdf_internal</a>() : <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a>(), <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>() { 
     422<a name="l00571"></a>00571                 <a class="code" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a> ); 
    426423<a name="l00572"></a>00572         } 
    427424<a name="l00573"></a>00573  
    428 <a name="l00576"></a><a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e">00576</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
    429 <a name="l00577"></a>00577                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     425<a name="l00576"></a><a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e">00576</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
     426<a name="l00577"></a>00577                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    430427<a name="l00578"></a>00578         } 
    431428<a name="l00579"></a>00579  
    432 <a name="l00581"></a><a class="code" href="classbdm_1_1mpdf__internal.html#a6b4d1cb8d7e230e313b4f0c905874d5a">00581</a>         EPDF&amp; <a class="code" href="classbdm_1_1mpdf__internal.html#a6b4d1cb8d7e230e313b4f0c905874d5a" title="access function to iepdf">e</a>() { 
    433 <a name="l00582"></a>00582                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>; 
     429<a name="l00581"></a><a class="code" href="classbdm_1_1mpdf__internal.html#6b4d1cb8d7e230e313b4f0c905874d5a">00581</a>         EPDF&amp; <a class="code" href="classbdm_1_1mpdf__internal.html#6b4d1cb8d7e230e313b4f0c905874d5a" title="access function to iepdf">e</a>() { 
     430<a name="l00582"></a>00582                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>; 
    434431<a name="l00583"></a>00583         } 
    435432<a name="l00584"></a>00584  
    436 <a name="l00586"></a>00586         vec <a class="code" href="classbdm_1_1mpdf__internal.html#ad8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ); 
    437 <a name="l00588"></a>00588         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a89076e62b8d7df7616bad68c94591948" title="Reimplements evallogcond using condition().">evallogcond</a> ( <span class="keyword">const</span> vec &amp;val, <span class="keyword">const</span> vec &amp;cond ); 
    438 <a name="l00590"></a>00590         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> mat &amp;Dt, <span class="keyword">const</span> vec &amp;cond ); 
    439 <a name="l00592"></a>00592         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Dt, <span class="keyword">const</span> vec &amp;cond ); 
    440 <a name="l00594"></a>00594         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">samplecond_m</a> ( <span class="keyword">const</span> vec &amp;cond, <span class="keywordtype">int</span> N ); 
     433<a name="l00586"></a>00586         vec <a class="code" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ); 
     434<a name="l00588"></a>00588         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf__internal.html#89076e62b8d7df7616bad68c94591948" title="Reimplements evallogcond using condition().">evallogcond</a> ( <span class="keyword">const</span> vec &amp;val, <span class="keyword">const</span> vec &amp;cond ); 
     435<a name="l00590"></a>00590         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> mat &amp;Dt, <span class="keyword">const</span> vec &amp;cond ); 
     436<a name="l00592"></a>00592         <span class="keyword">virtual</span> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">evallogcond_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Dt, <span class="keyword">const</span> vec &amp;cond ); 
     437<a name="l00594"></a>00594         <span class="keyword">virtual</span> mat <a class="code" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">samplecond_m</a> ( <span class="keyword">const</span> vec &amp;cond, <span class="keywordtype">int</span> N ); 
    441438<a name="l00595"></a>00595 }; 
    442439<a name="l00596"></a>00596  
    443440<a name="l00622"></a><a class="code" href="classbdm_1_1datalink.html">00622</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a> { 
    444441<a name="l00623"></a>00623 <span class="keyword">protected</span>: 
    445 <a name="l00625"></a><a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c">00625</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>; 
     442<a name="l00625"></a><a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c">00625</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>; 
    446443<a name="l00626"></a>00626  
    447 <a name="l00628"></a><a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045">00628</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a>; 
     444<a name="l00628"></a><a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045">00628</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a>; 
    448445<a name="l00629"></a>00629  
    449 <a name="l00631"></a><a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb">00631</a>         ivec <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>; 
     446<a name="l00631"></a><a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb">00631</a>         ivec <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>; 
    450447<a name="l00632"></a>00632  
    451448<a name="l00633"></a>00633 <span class="keyword">public</span>: 
    452 <a name="l00635"></a><a class="code" href="classbdm_1_1datalink.html#ab8b5d5074fc1310a37c3713d58b900e2">00635</a>         <a class="code" href="classbdm_1_1datalink.html#ab8b5d5074fc1310a37c3713d58b900e2" title="Constructor.">datalink</a>() : <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ( 0 ), <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> ( 0 ) { } 
     449<a name="l00635"></a><a class="code" href="classbdm_1_1datalink.html#b8b5d5074fc1310a37c3713d58b900e2">00635</a>         <a class="code" href="classbdm_1_1datalink.html#b8b5d5074fc1310a37c3713d58b900e2" title="Constructor.">datalink</a>() : <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ( 0 ), <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> ( 0 ) { } 
    453450<a name="l00636"></a>00636  
    454 <a name="l00638"></a><a class="code" href="classbdm_1_1datalink.html#a4016403730eb742462614d60393565cd">00638</a>         <a class="code" href="classbdm_1_1datalink.html#a4016403730eb742462614d60393565cd" title="Convenience constructor.">datalink</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ) { 
    455 <a name="l00639"></a>00639                 <a class="code" href="classbdm_1_1datalink.html#afb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up ); 
     451<a name="l00638"></a><a class="code" href="classbdm_1_1datalink.html#4016403730eb742462614d60393565cd">00638</a>         <a class="code" href="classbdm_1_1datalink.html#4016403730eb742462614d60393565cd" title="Convenience constructor.">datalink</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ) { 
     452<a name="l00639"></a>00639                 <a class="code" href="classbdm_1_1datalink.html#fb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up ); 
    456453<a name="l00640"></a>00640         } 
    457454<a name="l00641"></a>00641  
    458 <a name="l00643"></a>00643         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#afb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ); 
     455<a name="l00643"></a>00643         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#fb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ); 
    459456<a name="l00644"></a>00644  
    460 <a name="l00646"></a>00646         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#afb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keywordtype">int</span> ds, <span class="keywordtype">int</span> us, <span class="keyword">const</span> ivec &amp;upind ); 
     457<a name="l00646"></a>00646         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#fb8337aac8329eb0ca96bfb3ff73ec67" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keywordtype">int</span> ds, <span class="keywordtype">int</span> us, <span class="keyword">const</span> ivec &amp;upind ); 
    461458<a name="l00647"></a>00647  
    462 <a name="l00649"></a><a class="code" href="classbdm_1_1datalink.html#a5b5368c3899eed2f670d09142c2548e5">00649</a>         vec <a class="code" href="classbdm_1_1datalink.html#a5b5368c3899eed2f670d09142c2548e5" title="Get val for myself from val of &amp;quot;Up&amp;quot;.">pushdown</a> ( <span class="keyword">const</span> vec &amp;val_up ) { 
    463 <a name="l00650"></a>00650                 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); 
    464 <a name="l00651"></a>00651                 <a class="code" href="classbdm_1_1datalink.html#ad49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val_up, tmp ); 
     459<a name="l00649"></a><a class="code" href="classbdm_1_1datalink.html#5b5368c3899eed2f670d09142c2548e5">00649</a>         vec <a class="code" href="classbdm_1_1datalink.html#5b5368c3899eed2f670d09142c2548e5" title="Get val for myself from val of &amp;quot;Up&amp;quot;.">pushdown</a> ( <span class="keyword">const</span> vec &amp;val_up ) { 
     460<a name="l00650"></a>00650                 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); 
     461<a name="l00651"></a>00651                 <a class="code" href="classbdm_1_1datalink.html#d49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val_up, tmp ); 
    465462<a name="l00652"></a>00652                 <span class="keywordflow">return</span> tmp; 
    466463<a name="l00653"></a>00653         } 
    467 <a name="l00655"></a><a class="code" href="classbdm_1_1datalink.html#ad49a14b65969f8fa1ae8ecab7ce77d6d">00655</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#ad49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( <span class="keyword">const</span> vec &amp;val_up, vec &amp;val_down ) { 
    468 <a name="l00656"></a>00656                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">&quot;Wrong val_up&quot;</span> ); 
    469 <a name="l00657"></a>00657                 val_down = val_up ( <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ); 
     464<a name="l00655"></a><a class="code" href="classbdm_1_1datalink.html#d49a14b65969f8fa1ae8ecab7ce77d6d">00655</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#d49a14b65969f8fa1ae8ecab7ce77d6d" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( <span class="keyword">const</span> vec &amp;val_up, vec &amp;val_down ) { 
     465<a name="l00656"></a>00656                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">"Wrong val_up"</span> ); 
     466<a name="l00657"></a>00657                 val_down = val_up ( <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ); 
    470467<a name="l00658"></a>00658         } 
    471 <a name="l00660"></a><a class="code" href="classbdm_1_1datalink.html#a736ec57cb8efce5f58b8f776a2d30d30">00660</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#a736ec57cb8efce5f58b8f776a2d30d30" title="Fill val of &amp;quot;Up&amp;quot; by my pieces.">pushup</a> ( vec &amp;val_up, <span class="keyword">const</span> vec &amp;val ) { 
    472 <a name="l00661"></a>00661                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> == val.length(), <span class="stringliteral">&quot;Wrong val&quot;</span> ); 
    473 <a name="l00662"></a>00662                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">&quot;Wrong val_up&quot;</span> ); 
    474 <a name="l00663"></a>00663                 set_subvector ( val_up, <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>, val ); 
     468<a name="l00660"></a><a class="code" href="classbdm_1_1datalink.html#736ec57cb8efce5f58b8f776a2d30d30">00660</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink.html#736ec57cb8efce5f58b8f776a2d30d30" title="Fill val of &amp;quot;Up&amp;quot; by my pieces.">pushup</a> ( vec &amp;val_up, <span class="keyword">const</span> vec &amp;val ) { 
     469<a name="l00661"></a>00661                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> == val.length(), <span class="stringliteral">"Wrong val"</span> ); 
     470<a name="l00662"></a>00662                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> == val_up.length(), <span class="stringliteral">"Wrong val_up"</span> ); 
     471<a name="l00663"></a>00663                 set_subvector ( val_up, <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>, val ); 
    475472<a name="l00664"></a>00664         } 
    476 <a name="l00666"></a><a class="code" href="classbdm_1_1datalink.html#a340c5a253544a1dc2fd87932a5341c32">00666</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#a340c5a253544a1dc2fd87932a5341c32" title="access functions">_upsize</a>() { 
    477 <a name="l00667"></a>00667                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a>; 
     473<a name="l00666"></a><a class="code" href="classbdm_1_1datalink.html#340c5a253544a1dc2fd87932a5341c32">00666</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#340c5a253544a1dc2fd87932a5341c32" title="access functions">_upsize</a>() { 
     474<a name="l00667"></a>00667                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a>; 
    478475<a name="l00668"></a>00668         } 
    479 <a name="l00670"></a><a class="code" href="classbdm_1_1datalink.html#a8f0cce4477e906f3090bb803e06d8698">00670</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#a8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>() { 
    480 <a name="l00671"></a>00671                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>; 
     476<a name="l00670"></a><a class="code" href="classbdm_1_1datalink.html#8f0cce4477e906f3090bb803e06d8698">00670</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink.html#8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>() { 
     477<a name="l00671"></a>00671                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>; 
    481478<a name="l00672"></a>00672         } 
    482479<a name="l00673"></a>00673 }; 
     
    484481<a name="l00677"></a><a class="code" href="classbdm_1_1datalink__part.html">00677</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1datalink__part.html">datalink_part</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a> { 
    485482<a name="l00678"></a>00678 <span class="keyword">protected</span>: 
    486 <a name="l00680"></a><a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943">00680</a>         ivec <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>; 
     483<a name="l00680"></a><a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943">00680</a>         ivec <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>; 
    487484<a name="l00681"></a>00681 <span class="keyword">public</span>: 
    488 <a name="l00682"></a>00682         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#a6cef1083755c27e4476501abe6f49dce" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ); 
    489 <a name="l00684"></a><a class="code" href="classbdm_1_1datalink__part.html#aaba9b673ef82584e1bc06cc7a32b0a59">00684</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#aaba9b673ef82584e1bc06cc7a32b0a59" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( <span class="keyword">const</span> vec &amp;val_up, vec &amp;val_down ) { 
    490 <a name="l00685"></a>00685                 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); 
     485<a name="l00682"></a>00682         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#6cef1083755c27e4476501abe6f49dce" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ); 
     486<a name="l00684"></a><a class="code" href="classbdm_1_1datalink__part.html#aba9b673ef82584e1bc06cc7a32b0a59">00684</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__part.html#aba9b673ef82584e1bc06cc7a32b0a59" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( <span class="keyword">const</span> vec &amp;val_up, vec &amp;val_down ) { 
     487<a name="l00685"></a>00685                 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); 
    491488<a name="l00686"></a>00686         } 
    492489<a name="l00687"></a>00687 }; 
     
    494491<a name="l00693"></a><a class="code" href="classbdm_1_1datalink__buffered.html">00693</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1datalink__buffered.html" title="Datalink that buffers delayed values - do not forget to call step().">datalink_buffered</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1datalink__part.html">datalink_part</a> { 
    495492<a name="l00694"></a>00694 <span class="keyword">protected</span>: 
    496 <a name="l00696"></a><a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988">00696</a>         vec <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>; 
    497 <a name="l00698"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc">00698</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>; 
    498 <a name="l00700"></a><a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7">00700</a>         ivec <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>; 
    499 <a name="l00702"></a><a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5">00702</a>         ivec <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a>; 
    500 <a name="l00704"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc">00704</a>         ivec <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>; 
     493<a name="l00696"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988">00696</a>         vec <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>; 
     494<a name="l00698"></a><a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc">00698</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>; 
     495<a name="l00700"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7">00700</a>         ivec <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>; 
     496<a name="l00702"></a><a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5">00702</a>         ivec <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a>; 
     497<a name="l00704"></a><a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc">00704</a>         ivec <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>; 
    501498<a name="l00705"></a>00705 <span class="keyword">public</span>: 
    502499<a name="l00706"></a>00706  
    503 <a name="l00707"></a>00707         <a class="code" href="classbdm_1_1datalink__buffered.html" title="Datalink that buffers delayed values - do not forget to call step().">datalink_buffered</a>() : <a class="code" href="classbdm_1_1datalink__part.html">datalink_part</a>(), <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ( 0 ) {}; 
    504 <a name="l00709"></a><a class="code" href="classbdm_1_1datalink__buffered.html#af137706c55891ba8a8aecc52ea96865f">00709</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#af137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a> ( <span class="keyword">const</span> vec &amp;val_up ) { 
    505 <a name="l00710"></a>00710                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() &gt; 0 ) { 
    506 <a name="l00711"></a>00711                         <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.shift_right ( 0, <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() ); 
    507 <a name="l00712"></a>00712                   <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.set_subvector ( 0, val_up(<a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>) );  
     500<a name="l00707"></a>00707         <a class="code" href="classbdm_1_1datalink__buffered.html" title="Datalink that buffers delayed values - do not forget to call step().">datalink_buffered</a>() : <a class="code" href="classbdm_1_1datalink__part.html">datalink_part</a>(), <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a> ( 0 ), <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ( 0 ) {}; 
     501<a name="l00709"></a><a class="code" href="classbdm_1_1datalink__buffered.html#f137706c55891ba8a8aecc52ea96865f">00709</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#f137706c55891ba8a8aecc52ea96865f" title="push current data to history">step</a> ( <span class="keyword">const</span> vec &amp;val_up ) { 
     502<a name="l00710"></a>00710                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() &gt; 0 ) { 
     503<a name="l00711"></a>00711                         <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.shift_right ( 0, <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>.length() ); 
     504<a name="l00712"></a>00712                   <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>.set_subvector ( 0, val_up(<a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a>) );  
    508505<a name="l00713"></a>00713                 } 
    509506<a name="l00714"></a>00714         } 
    510 <a name="l00716"></a><a class="code" href="classbdm_1_1datalink__buffered.html#ae665d66cb42862c1181645c438110a96">00716</a>         vec <a class="code" href="classbdm_1_1datalink__buffered.html#ae665d66cb42862c1181645c438110a96" title="Get val for myself from val of &amp;quot;Up&amp;quot;.">pushdown</a> ( <span class="keyword">const</span> vec &amp;val_up ) { 
    511 <a name="l00717"></a>00717                 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); 
    512 <a name="l00718"></a>00718                 <a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val_up, tmp ); 
     507<a name="l00716"></a><a class="code" href="classbdm_1_1datalink__buffered.html#e665d66cb42862c1181645c438110a96">00716</a>         vec <a class="code" href="classbdm_1_1datalink__buffered.html#e665d66cb42862c1181645c438110a96" title="Get val for myself from val of &amp;quot;Up&amp;quot;.">pushdown</a> ( <span class="keyword">const</span> vec &amp;val_up ) { 
     508<a name="l00717"></a>00717                 vec tmp ( <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> ); 
     509<a name="l00718"></a>00718                 <a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val_up, tmp ); 
    513510<a name="l00719"></a>00719                 <span class="keywordflow">return</span> tmp; 
    514511<a name="l00720"></a>00720         } 
    515512<a name="l00721"></a>00721  
    516 <a name="l00722"></a><a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f">00722</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( <span class="keyword">const</span> vec &amp;val_up, vec &amp;val_down ) { 
    517 <a name="l00723"></a>00723                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() &gt;= <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>, <span class="stringliteral">&quot;short val_down&quot;</span> ); 
     513<a name="l00722"></a><a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f">00722</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( <span class="keyword">const</span> vec &amp;val_up, vec &amp;val_down ) { 
     514<a name="l00723"></a>00723                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() &gt;= <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a>, <span class="stringliteral">"short val_down"</span> ); 
    518515<a name="l00724"></a>00724  
    519 <a name="l00725"></a>00725                 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); <span class="comment">// copy direct values</span> 
    520 <a name="l00726"></a>00726                 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>, <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ) ); <span class="comment">// copy delayed values</span> 
     516<a name="l00725"></a>00725                 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>, val_up ( <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a> ) ); <span class="comment">// copy direct values</span> 
     517<a name="l00726"></a>00726                 set_subvector ( val_down, <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>, <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> ( <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a> ) ); <span class="comment">// copy delayed values</span> 
    521518<a name="l00727"></a>00727         } 
    522519<a name="l00728"></a>00728  
    523 <a name="l00729"></a><a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a">00729</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ) { 
     520<a name="l00729"></a><a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a">00729</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ) { 
    524521<a name="l00730"></a>00730                 <span class="comment">// create link between up and down</span> 
    525 <a name="l00731"></a>00731                 <a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">datalink_part::set_connection</a> ( rv, rv_up ); 
     522<a name="l00731"></a>00731                 <a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">datalink_part::set_connection</a> ( rv, rv_up ); 
    526523<a name="l00732"></a>00732  
    527524<a name="l00733"></a>00733                 <span class="comment">// create rvs of history</span> 
    528525<a name="l00734"></a>00734                 <span class="comment">// we can store only what we get in rv_up - everything else is removed</span> 
    529 <a name="l00735"></a>00735                 ivec valid_ids = rv.<a class="code" href="classbdm_1_1RV.html#aa858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( rv_up ); 
    530 <a name="l00736"></a>00736                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rv_hist = rv.<a class="code" href="classbdm_1_1RV.html#ac0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( find ( valid_ids &gt;= 0 ) ); <span class="comment">// select only rvs that are in rv_up</span> 
     526<a name="l00735"></a>00735                 ivec valid_ids = rv.<a class="code" href="classbdm_1_1RV.html#a858d36d0264e1f1c89500531162fdf1" title="Find indices of self in another rv, ignore time,.">findself_ids</a> ( rv_up ); 
     527<a name="l00736"></a>00736                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rv_hist = rv.<a class="code" href="classbdm_1_1RV.html#c0c04ab99ded62e1e05bcefb151ebeb9" title="Select only variables at indices ind.">subselect</a> ( find ( valid_ids &gt;= 0 ) ); <span class="comment">// select only rvs that are in rv_up</span> 
    531528<a name="l00737"></a>00737                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> rv_hist0 =rv_hist.remove_time();  <span class="comment">// these RVs will form history at time =0</span> 
    532529<a name="l00738"></a>00738                 <span class="comment">// now we need to know what is needed from Up</span> 
    533 <a name="l00739"></a>00739                 rv_hist = rv_hist.<a class="code" href="classbdm_1_1RV.html#ac5819f71d774649412c10b8e1716be1e" title="return rvs with expanded delayes and sorted in the order of:">expand_delayes</a>(); <span class="comment">// full regressor - including time 0</span> 
    534 <a name="l00740"></a>00740                 <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>=rv_hist.<a class="code" href="classbdm_1_1RV.html#aaec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a>(rv_hist0);   <span class="comment">// remove time 0</span> 
    535 <a name="l00741"></a>00741                 <a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> = zeros ( <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); 
     530<a name="l00739"></a>00739                 rv_hist = rv_hist.<a class="code" href="classbdm_1_1RV.html#c5819f71d774649412c10b8e1716be1e" title="return rvs with expanded delayes and sorted in the order of:">expand_delayes</a>(); <span class="comment">// full regressor - including time 0</span> 
     531<a name="l00740"></a>00740                 <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>=rv_hist.<a class="code" href="classbdm_1_1RV.html#aec44dabdf0a6d90fbae95e1356eda39" title="Subtract another variable from the current one.">subt</a>(rv_hist0);   <span class="comment">// remove time 0</span> 
     532<a name="l00741"></a>00741                 <a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a> = zeros ( <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); 
    536533<a name="l00742"></a>00742  
    537534<a name="l00743"></a>00743                 <span class="comment">// decide if we need to copy val to history</span> 
    538 <a name="l00744"></a>00744                 <span class="keywordflow">if</span> (<a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() &gt;0) { 
    539 <a name="l00745"></a>00745                         <a class="code" href="classbdm_1_1datalink__buffered.html#a0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a> = rv_hist0.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv_up); <span class="comment">// indeces of elements of rv_up to be copied</span> 
     535<a name="l00744"></a>00744                 <span class="keywordflow">if</span> (<a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() &gt;0) { 
     536<a name="l00745"></a>00745                         <a class="code" href="classbdm_1_1datalink__buffered.html#0b09e10e42212497170ed5642bce7dbc" title="v2h: indeces of up too be pushed to h">v2h_up</a> = rv_hist0.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv_up); <span class="comment">// indeces of elements of rv_up to be copied</span> 
    540537<a name="l00746"></a>00746                 } <span class="comment">// else v2h_up is empty</span> 
    541538<a name="l00747"></a>00747                  
    542 <a name="l00748"></a>00748                 <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( rv, <a class="code" href="classbdm_1_1datalink__buffered.html#ada58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a>, <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a> ); 
     539<a name="l00748"></a>00748                 <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( rv, <a class="code" href="classbdm_1_1datalink__buffered.html#da58df16761169992059b8cd91d070c5" title="h2v : indeces in history">h2v_hist</a>, <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a> ); 
    543540<a name="l00749"></a>00749  
    544 <a name="l00750"></a>00750                 <a class="code" href="classbdm_1_1datalink.html#abc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> = <a class="code" href="classbdm_1_1datalink__part.html#a64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>.length() + <a class="code" href="classbdm_1_1datalink__buffered.html#aa1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>.length(); 
    545 <a name="l00751"></a>00751                 <a class="code" href="classbdm_1_1datalink.html#a0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> = <a class="code" href="classbdm_1_1datalink.html#a240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>.length(); 
     541<a name="l00750"></a>00750                 <a class="code" href="classbdm_1_1datalink.html#bc8ff50395fc1066a1e486dea18d987c" title="Remember how long val should be.">downsize</a> = <a class="code" href="classbdm_1_1datalink__part.html#64f64e7e6357419240bc2b1b0749c943" title="indeces of values in vector downsize">v2v_down</a>.length() + <a class="code" href="classbdm_1_1datalink__buffered.html#a1ce2032fe5c86fa87d80baccb9aacd7" title="h2v : indeces in down">h2v_down</a>.length(); 
     542<a name="l00751"></a>00751                 <a class="code" href="classbdm_1_1datalink.html#0f0d0af6848114d96108d3a6af25a045" title="Remember how long val of &amp;quot;Up&amp;quot; should be.">upsize</a> = <a class="code" href="classbdm_1_1datalink.html#240b37d793c6bdc32824ed0a0541b1eb" title="val-to-val link, indices of the upper val">v2v_up</a>.length(); 
    546543<a name="l00752"></a>00752         } 
    547 <a name="l00754"></a><a class="code" href="classbdm_1_1datalink__buffered.html#ac95435dc0781d14529cddde9b2894b6d">00754</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#ac95435dc0781d14529cddde9b2894b6d" title="set history of variable given by rv1 to values of hist.">set_history</a>(<span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; rv1, <span class="keyword">const</span> vec &amp;hist0){ 
    548 <a name="l00755"></a>00755                 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(rv1.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>()==hist0.length(),<span class="stringliteral">&quot;hist is not compatible with given rv1&quot;</span>); 
     544<a name="l00754"></a><a class="code" href="classbdm_1_1datalink__buffered.html#c95435dc0781d14529cddde9b2894b6d">00754</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__buffered.html#c95435dc0781d14529cddde9b2894b6d" title="set history of variable given by rv1 to values of hist.">set_history</a>(<span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; rv1, <span class="keyword">const</span> vec &amp;hist0){ 
     545<a name="l00755"></a>00755                 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a>(rv1.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>()==hist0.length(),<span class="stringliteral">"hist is not compatible with given rv1"</span>); 
    549546<a name="l00756"></a>00756                 ivec ind_H; 
    550547<a name="l00757"></a>00757                 ivec ind_h0; 
    551 <a name="l00758"></a>00758                 <a class="code" href="classbdm_1_1datalink__buffered.html#a211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv1, ind_H, ind_h0); <span class="comment">// find indeces of rv in </span> 
    552 <a name="l00759"></a>00759                 set_subvector(<a class="code" href="classbdm_1_1datalink__buffered.html#aa7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>, ind_H, hist0(ind_h0)); <span class="comment">// copy given hist to appropriate places</span> 
     548<a name="l00758"></a>00758                 <a class="code" href="classbdm_1_1datalink__buffered.html#211c56b68be3864d535a8b75d735ebdc" title="rv of the history">Hrv</a>.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a>(rv1, ind_H, ind_h0); <span class="comment">// find indeces of rv in </span> 
     549<a name="l00759"></a>00759                 set_subvector(<a class="code" href="classbdm_1_1datalink__buffered.html#a7cb8a47b88b95fde0255a041d076988" title="History, ordered as .">history</a>, ind_H, hist0(ind_h0)); <span class="comment">// copy given hist to appropriate places</span> 
    553550<a name="l00760"></a>00760         } 
    554551<a name="l00761"></a>00761 }; 
     
    559556<a name="l00767"></a>00767         <a class="code" href="classbdm_1_1datalink__buffered.html" title="Datalink that buffers delayed values - do not forget to call step().">datalink_buffered</a> dl2; 
    560557<a name="l00768"></a>00768 <span class="keyword">public</span>: 
    561 <a name="l00770"></a><a class="code" href="classbdm_1_1datalink__2to1__buffered.html#aef1441b4885ae4d8e95b3ff28e575364">00770</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__2to1__buffered.html#aef1441b4885ae4d8e95b3ff28e575364" title="set connection between RVs">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up1, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up2 ) { 
    562 <a name="l00771"></a>00771                 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up1 ); 
    563 <a name="l00772"></a>00772                 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#aadefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up2 ); 
     558<a name="l00770"></a><a class="code" href="classbdm_1_1datalink__2to1__buffered.html#ef1441b4885ae4d8e95b3ff28e575364">00770</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__2to1__buffered.html#ef1441b4885ae4d8e95b3ff28e575364" title="set connection between RVs">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up1, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up2 ) { 
     559<a name="l00771"></a>00771                 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up1 ); 
     560<a name="l00772"></a>00772                 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#adefa427312905425ebab8531da1846a" title="set connection, rv must be fully present in rv_up">set_connection</a> ( rv, rv_up2 ); 
    564561<a name="l00773"></a>00773         } 
    565562<a name="l00774"></a>00774         <span class="keywordtype">void</span> filldown ( <span class="keyword">const</span> vec &amp;val1, <span class="keyword">const</span> vec &amp;val2, vec &amp;val_down ) { 
    566 <a name="l00775"></a>00775                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() &gt;= dl1.<a class="code" href="classbdm_1_1datalink.html#a8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>() + dl2.<a class="code" href="classbdm_1_1datalink.html#a8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>(), <span class="stringliteral">&quot;short val_down&quot;</span> ); 
    567 <a name="l00776"></a>00776                 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val1, val_down ); 
    568 <a name="l00777"></a>00777                 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#a681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val2, val_down ); 
     563<a name="l00775"></a>00775                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( val_down.length() &gt;= dl1.<a class="code" href="classbdm_1_1datalink.html#8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>() + dl2.<a class="code" href="classbdm_1_1datalink.html#8f0cce4477e906f3090bb803e06d8698" title="access functions">_downsize</a>(), <span class="stringliteral">"short val_down"</span> ); 
     564<a name="l00776"></a>00776                 dl1.<a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val1, val_down ); 
     565<a name="l00777"></a>00777                 dl2.<a class="code" href="classbdm_1_1datalink__buffered.html#681745a319728a416486df38aacd579f" title="Get val for vector val_down from val of &amp;quot;Up&amp;quot;.">filldown</a> ( val2, val_down ); 
    569566<a name="l00778"></a>00778         } 
    570567<a name="l00779"></a>00779         <span class="keywordtype">void</span> step ( <span class="keyword">const</span> vec &amp;dt, <span class="keyword">const</span> vec &amp;ut ) { 
     
    578575<a name="l00788"></a><a class="code" href="classbdm_1_1datalink__m2e.html">00788</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1datalink__m2e.html" title="Data link with a condition.">datalink_m2e</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a> { 
    579576<a name="l00789"></a>00789 <span class="keyword">protected</span>: 
    580 <a name="l00791"></a><a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9">00791</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a>; 
     577<a name="l00791"></a><a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9">00791</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a>; 
    581578<a name="l00792"></a>00792  
    582 <a name="l00794"></a><a class="code" href="classbdm_1_1datalink__m2e.html#a43fe3e2d7aa04134053ec15793722783">00794</a>         ivec <a class="code" href="classbdm_1_1datalink__m2e.html#a43fe3e2d7aa04134053ec15793722783" title="upper_val-to-local_cond link, indices of the upper val">v2c_up</a>; 
     579<a name="l00794"></a><a class="code" href="classbdm_1_1datalink__m2e.html#43fe3e2d7aa04134053ec15793722783">00794</a>         ivec <a class="code" href="classbdm_1_1datalink__m2e.html#43fe3e2d7aa04134053ec15793722783" title="upper_val-to-local_cond link, indices of the upper val">v2c_up</a>; 
    583580<a name="l00795"></a>00795  
    584 <a name="l00797"></a><a class="code" href="classbdm_1_1datalink__m2e.html#a9e0048d87bda78e9b8d38761440c7abc">00797</a>         ivec <a class="code" href="classbdm_1_1datalink__m2e.html#a9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>; 
     581<a name="l00797"></a><a class="code" href="classbdm_1_1datalink__m2e.html#9e0048d87bda78e9b8d38761440c7abc">00797</a>         ivec <a class="code" href="classbdm_1_1datalink__m2e.html#9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>; 
    585582<a name="l00798"></a>00798  
    586583<a name="l00799"></a>00799 <span class="keyword">public</span>: 
    587 <a name="l00801"></a><a class="code" href="classbdm_1_1datalink__m2e.html#a5ad951e9cf850c9bfe4e492e91a50af6">00801</a>         <a class="code" href="classbdm_1_1datalink__m2e.html#a5ad951e9cf850c9bfe4e492e91a50af6" title="Constructor.">datalink_m2e</a>() : <a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a> ( 0 ) { } 
     584<a name="l00801"></a><a class="code" href="classbdm_1_1datalink__m2e.html#5ad951e9cf850c9bfe4e492e91a50af6">00801</a>         <a class="code" href="classbdm_1_1datalink__m2e.html#5ad951e9cf850c9bfe4e492e91a50af6" title="Constructor.">datalink_m2e</a>() : <a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a> ( 0 ) { } 
    588585<a name="l00802"></a>00802  
    589 <a name="l00804"></a>00804         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2e.html#aadd918bf877c48714cff51ee4ad989b0" title="Set connection between vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ); 
     586<a name="l00804"></a>00804         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2e.html#add918bf877c48714cff51ee4ad989b0" title="Set connection between vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up ); 
    590587<a name="l00805"></a>00805  
    591 <a name="l00807"></a>00807         vec <a class="code" href="classbdm_1_1datalink__m2e.html#a7ba850822e3cf9a4b079afc7e7c01703" title="Construct condition.">get_cond</a> ( <span class="keyword">const</span> vec &amp;val_up ); 
     588<a name="l00807"></a>00807         vec <a class="code" href="classbdm_1_1datalink__m2e.html#7ba850822e3cf9a4b079afc7e7c01703" title="Construct condition.">get_cond</a> ( <span class="keyword">const</span> vec &amp;val_up ); 
    592589<a name="l00808"></a>00808  
    593 <a name="l00810"></a>00810         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2e.html#ab29bc3c7bf2a1d87e77ccaa793d097d5" title="Copy corresponding values to Up.condition.">pushup_cond</a> ( vec &amp;val_up, <span class="keyword">const</span> vec &amp;val, <span class="keyword">const</span> vec &amp;cond ); 
     590<a name="l00810"></a>00810         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2e.html#b29bc3c7bf2a1d87e77ccaa793d097d5" title="Copy corresponding values to Up.condition.">pushup_cond</a> ( vec &amp;val_up, <span class="keyword">const</span> vec &amp;val, <span class="keyword">const</span> vec &amp;cond ); 
    594591<a name="l00811"></a>00811 }; 
    595592<a name="l00812"></a>00812  
    596593<a name="l00815"></a><a class="code" href="classbdm_1_1datalink__m2m.html">00815</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1datalink__m2m.html" title="DataLink is a connection between mpdf and its superordinate (Up) This class links...">datalink_m2m</a>: <span class="keyword">public</span> <a class="code" href="classbdm_1_1datalink__m2e.html" title="Data link with a condition.">datalink_m2e</a> { 
    597594<a name="l00816"></a>00816 <span class="keyword">protected</span>: 
    598 <a name="l00818"></a><a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d">00818</a>         ivec <a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a>; 
    599 <a name="l00820"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5">00820</a>         ivec <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>; 
     595<a name="l00818"></a><a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d">00818</a>         ivec <a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a>; 
     596<a name="l00820"></a><a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5">00820</a>         ivec <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>; 
    600597<a name="l00821"></a>00821  
    601598<a name="l00822"></a>00822 <span class="keyword">public</span>: 
    602 <a name="l00824"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a3baed32cb66f0e2f731032cec0a4d287">00824</a>         <a class="code" href="classbdm_1_1datalink__m2m.html#a3baed32cb66f0e2f731032cec0a4d287" title="Constructor.">datalink_m2m</a>() {}; 
    603 <a name="l00826"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a0ed49a99e8a3be264b952558b6f515d4">00826</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2m.html#a0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc_up ) { 
    604 <a name="l00827"></a>00827                 <a class="code" href="classbdm_1_1datalink__m2m.html#a0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">datalink_m2e::set_connection</a> ( rv, rvc, rv_up ); 
     599<a name="l00824"></a><a class="code" href="classbdm_1_1datalink__m2m.html#3baed32cb66f0e2f731032cec0a4d287">00824</a>         <a class="code" href="classbdm_1_1datalink__m2m.html#3baed32cb66f0e2f731032cec0a4d287" title="Constructor.">datalink_m2m</a>() {}; 
     600<a name="l00826"></a><a class="code" href="classbdm_1_1datalink__m2m.html#0ed49a99e8a3be264b952558b6f515d4">00826</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1datalink__m2m.html#0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">set_connection</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv_up, <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rvc_up ) { 
     601<a name="l00827"></a>00827                 <a class="code" href="classbdm_1_1datalink__m2m.html#0ed49a99e8a3be264b952558b6f515d4" title="Set connection between the vectors.">datalink_m2e::set_connection</a> ( rv, rvc, rv_up ); 
    605602<a name="l00828"></a>00828                 <span class="comment">//establish c2c connection</span> 
    606 <a name="l00829"></a>00829                 rvc.<a class="code" href="classbdm_1_1RV.html#acbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( rvc_up, <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, <a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ); 
    607 <a name="l00830"></a>00830                 <a class="code" href="bdmerror_8h.html#a89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>.length() + <a class="code" href="classbdm_1_1datalink__m2e.html#a9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>.length() == <a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a>, <span class="stringliteral">&quot;cond is not fully given&quot;</span> ); 
     603<a name="l00829"></a>00829                 rvc.<a class="code" href="classbdm_1_1RV.html#cbebdb5e0d30101a6eb63550ef701c55" title="when this rv is a part of bigger rv, this function returns indices of self in the...">dataind</a> ( rvc_up, <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, <a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ); 
     604<a name="l00830"></a>00830                 <a class="code" href="bdmerror_8h.html#89a0f906b242b79c5d3d342291b2cab4" title="Throw std::runtime_exception if t is not true and NDEBUG is not defined.">bdm_assert_debug</a> ( <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>.length() + <a class="code" href="classbdm_1_1datalink__m2e.html#9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>.length() == <a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a>, <span class="stringliteral">"cond is not fully given"</span> ); 
    608605<a name="l00831"></a>00831         } 
    609606<a name="l00832"></a>00832  
    610 <a name="l00834"></a><a class="code" href="classbdm_1_1datalink__m2m.html#a911fb7fcfa80d4e31db8e0cc03141a90">00834</a>         vec <a class="code" href="classbdm_1_1datalink__m2m.html#a911fb7fcfa80d4e31db8e0cc03141a90" title="Get cond for myself from val and cond of &amp;quot;Up&amp;quot;.">get_cond</a> ( <span class="keyword">const</span> vec &amp;val_up, <span class="keyword">const</span> vec &amp;cond_up ) { 
    611 <a name="l00835"></a>00835                 vec tmp ( <a class="code" href="classbdm_1_1datalink__m2e.html#a3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a> ); 
    612 <a name="l00836"></a>00836                 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2e.html#a9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>, val_up ( <a class="code" href="classbdm_1_1datalink__m2e.html#a43fe3e2d7aa04134053ec15793722783" title="upper_val-to-local_cond link, indices of the upper val">v2c_up</a> ) ); 
    613 <a name="l00837"></a>00837                 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2m.html#a0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, cond_up ( <a class="code" href="classbdm_1_1datalink__m2m.html#ad64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ) ); 
     607<a name="l00834"></a><a class="code" href="classbdm_1_1datalink__m2m.html#911fb7fcfa80d4e31db8e0cc03141a90">00834</a>         vec <a class="code" href="classbdm_1_1datalink__m2m.html#911fb7fcfa80d4e31db8e0cc03141a90" title="Get cond for myself from val and cond of &amp;quot;Up&amp;quot;.">get_cond</a> ( <span class="keyword">const</span> vec &amp;val_up, <span class="keyword">const</span> vec &amp;cond_up ) { 
     608<a name="l00835"></a>00835                 vec tmp ( <a class="code" href="classbdm_1_1datalink__m2e.html#3fb26525e0bfa7932a37c5cd404801f9" title="Remember how long cond should be.">condsize</a> ); 
     609<a name="l00836"></a>00836                 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2e.html#9e0048d87bda78e9b8d38761440c7abc" title="upper_val-to-local_cond link, indices of the local cond">v2c_lo</a>, val_up ( <a class="code" href="classbdm_1_1datalink__m2e.html#43fe3e2d7aa04134053ec15793722783" title="upper_val-to-local_cond link, indices of the upper val">v2c_up</a> ) ); 
     610<a name="l00837"></a>00837                 set_subvector ( tmp, <a class="code" href="classbdm_1_1datalink__m2m.html#0ea05c47de4538b7042ff878e6e309a5" title="cond-to-cond link, indices of the local cond">c2c_lo</a>, cond_up ( <a class="code" href="classbdm_1_1datalink__m2m.html#d64dda6f92654628276bbcebb7600d0d" title="cond-to-cond link, indices of the upper cond">c2c_up</a> ) ); 
    614611<a name="l00838"></a>00838                 <span class="keywordflow">return</span> tmp; 
    615612<a name="l00839"></a>00839         } 
     
    619616<a name="l00849"></a><a class="code" href="classbdm_1_1logger.html">00849</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> { 
    620617<a name="l00850"></a>00850 <span class="keyword">protected</span>: 
    621 <a name="l00852"></a><a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f">00852</a>         Array&lt;RV&gt; <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>; 
    622 <a name="l00854"></a><a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02">00854</a>         Array&lt;string&gt; <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>; 
     618<a name="l00852"></a><a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f">00852</a>         Array&lt;RV&gt; <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>; 
     619<a name="l00854"></a><a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02">00854</a>         Array&lt;string&gt; <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>; 
    623620<a name="l00855"></a>00855 <span class="keyword">public</span>: 
    624 <a name="l00857"></a><a class="code" href="classbdm_1_1logger.html#af9c2fe7db5ddbda0098a4a5bd2c29fbf">00857</a>         <a class="code" href="classbdm_1_1logger.html#af9c2fe7db5ddbda0098a4a5bd2c29fbf" title="Default constructor.">logger</a>() : <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( 0 ), <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> ( 0 ) {} 
     621<a name="l00857"></a><a class="code" href="classbdm_1_1logger.html#f9c2fe7db5ddbda0098a4a5bd2c29fbf">00857</a>         <a class="code" href="classbdm_1_1logger.html#f9c2fe7db5ddbda0098a4a5bd2c29fbf" title="Default constructor.">logger</a>() : <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( 0 ), <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> ( 0 ) {} 
    625622<a name="l00858"></a>00858  
    626 <a name="l00861"></a><a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7">00861</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <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> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keywordtype">string</span> prefix = <span class="stringliteral">&quot;&quot;</span> ) { 
     623<a name="l00861"></a><a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7">00861</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <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> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &amp;rv, <span class="keywordtype">string</span> prefix = <span class="stringliteral">""</span> ) { 
    627624<a name="l00862"></a>00862                 <span class="keywordtype">int</span> id; 
    628 <a name="l00863"></a>00863                 <span class="keywordflow">if</span> ( rv.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() &gt; 0 ) { 
    629 <a name="l00864"></a>00864                         <span class="keywordtype">id</span> = <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length(); 
    630 <a name="l00865"></a>00865                         <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> = concat ( <a class="code" href="classbdm_1_1logger.html#a68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>, prefix ); <span class="comment">// diff</span> 
    631 <a name="l00866"></a>00866                         <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.set_length ( <span class="keywordtype">id</span> + 1, <span class="keyword">true</span> ); 
    632 <a name="l00867"></a>00867                         <a class="code" href="classbdm_1_1logger.html#ac54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( <span class="keywordtype">id</span> ) = rv; 
     625<a name="l00863"></a>00863                 <span class="keywordflow">if</span> ( rv.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() &gt; 0 ) { 
     626<a name="l00864"></a>00864                         <span class="keywordtype">id</span> = <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.length(); 
     627<a name="l00865"></a>00865                         <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a> = concat ( <a class="code" href="classbdm_1_1logger.html#68ca1f05cf3d414ba0f39211977b8d02" title="Names of logged quantities, e.g. names of algorithm variants.">names</a>, prefix ); <span class="comment">// diff</span> 
     628<a name="l00866"></a>00866                         <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a>.set_length ( <span class="keywordtype">id</span> + 1, <span class="keyword">true</span> ); 
     629<a name="l00867"></a>00867                         <a class="code" href="classbdm_1_1logger.html#c54566a4554089443a20b2a49ed1a61f" title="RVs of all logged variables.">entries</a> ( <span class="keywordtype">id</span> ) = rv; 
    633630<a name="l00868"></a>00868                 } <span class="keywordflow">else</span> { 
    634631<a name="l00869"></a>00869                         <span class="keywordtype">id</span> = -1; 
     
    637634<a name="l00872"></a>00872         } 
    638635<a name="l00873"></a>00873  
    639 <a name="l00875"></a><a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309">00875</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> vec &amp;v ) { 
    640 <a name="l00876"></a>00876                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     636<a name="l00875"></a><a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309">00875</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> vec &amp;v ) { 
     637<a name="l00876"></a>00876                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    641638<a name="l00877"></a>00877         }; 
    642 <a name="l00879"></a><a class="code" href="classbdm_1_1logger.html#aaa1d72cd3d2ff6bbf87340154af02ea6">00879</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#aaa1d72cd3d2ff6bbf87340154af02ea6" title="log this double">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;d ) { 
    643 <a name="l00880"></a>00880                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     639<a name="l00879"></a><a class="code" href="classbdm_1_1logger.html#aa1d72cd3d2ff6bbf87340154af02ea6">00879</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#aa1d72cd3d2ff6bbf87340154af02ea6" title="log this double">logit</a> ( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;d ) { 
     640<a name="l00880"></a>00880                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    644641<a name="l00881"></a>00881         }; 
    645642<a name="l00882"></a>00882  
    646 <a name="l00884"></a><a class="code" href="classbdm_1_1logger.html#af137e9a0c905357c5c3fbb16eac34a99">00884</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#af137e9a0c905357c5c3fbb16eac34a99" title="Shifts storage position for another time step.">step</a>() { 
    647 <a name="l00885"></a>00885                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemneted&quot;</span> ); 
     643<a name="l00884"></a><a class="code" href="classbdm_1_1logger.html#f137e9a0c905357c5c3fbb16eac34a99">00884</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#f137e9a0c905357c5c3fbb16eac34a99" title="Shifts storage position for another time step.">step</a>() { 
     644<a name="l00885"></a>00885                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemneted"</span> ); 
    648645<a name="l00886"></a>00886         }; 
    649646<a name="l00887"></a>00887  
    650 <a name="l00889"></a><a class="code" href="classbdm_1_1logger.html#a0e3fc7d13e23a8f71fc7c8a5ea68559d">00889</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#a0e3fc7d13e23a8f71fc7c8a5ea68559d" title="Finalize storing information.">finalize</a>() {}; 
     647<a name="l00889"></a><a class="code" href="classbdm_1_1logger.html#0e3fc7d13e23a8f71fc7c8a5ea68559d">00889</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#0e3fc7d13e23a8f71fc7c8a5ea68559d" title="Finalize storing information.">finalize</a>() {}; 
    651648<a name="l00890"></a>00890  
    652 <a name="l00892"></a><a class="code" href="classbdm_1_1logger.html#acd6291a73491f755dc7bc88d022eb2fc">00892</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#acd6291a73491f755dc7bc88d022eb2fc" title="Initialize the storage.">init</a>() {}; 
     649<a name="l00892"></a><a class="code" href="classbdm_1_1logger.html#cd6291a73491f755dc7bc88d022eb2fc">00892</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1logger.html#cd6291a73491f755dc7bc88d022eb2fc" title="Initialize the storage.">init</a>() {}; 
    653650<a name="l00893"></a>00893  
    654651<a name="l00894"></a>00894 }; 
     
    657654<a name="l00901"></a>00901         <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> iepdf; 
    658655<a name="l00902"></a>00902 <span class="keyword">public</span>: 
    659 <a name="l00904"></a><a class="code" href="classbdm_1_1mepdf.html#a4a2b01e7bb510c6b8946757cae6c9155">00904</a>         <a class="code" href="classbdm_1_1mepdf.html#a4a2b01e7bb510c6b8946757cae6c9155" title="Default constructor.">mepdf</a>() { } 
    660 <a name="l00906"></a><a class="code" href="classbdm_1_1mepdf.html#a1f94e70702ff676f53d95ca7ec38e25c">00906</a>         <a class="code" href="classbdm_1_1mepdf.html#a1f94e70702ff676f53d95ca7ec38e25c" title="Set internal shared pointer.">mepdf</a> ( <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> em ) { 
     656<a name="l00904"></a><a class="code" href="classbdm_1_1mepdf.html#4a2b01e7bb510c6b8946757cae6c9155">00904</a>         <a class="code" href="classbdm_1_1mepdf.html#4a2b01e7bb510c6b8946757cae6c9155" title="Default constructor.">mepdf</a>() { } 
     657<a name="l00906"></a><a class="code" href="classbdm_1_1mepdf.html#1f94e70702ff676f53d95ca7ec38e25c">00906</a>         <a class="code" href="classbdm_1_1mepdf.html#1f94e70702ff676f53d95ca7ec38e25c" title="Set internal shared pointer.">mepdf</a> ( <a class="code" href="classbdm_1_1shared__ptr.html">shared_ptr&lt;epdf&gt;</a> em ) { 
    661658<a name="l00907"></a>00907                 iepdf = em; 
    662 <a name="l00908"></a>00908                 <a class="code" href="classbdm_1_1mpdf.html#a147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( *iepdf.<a class="code" href="classbdm_1_1shared__ptr.html#a37ebcfb6750dd7b5630f1d2354c07a96">get</a>() ); 
    663 <a name="l00909"></a>00909                 <a class="code" href="classbdm_1_1mpdf.html#a7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> = 0; 
     659<a name="l00908"></a>00908                 <a class="code" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e" title="set internal pointer ep to point to given iepdf ">set_ep</a> ( *iepdf.<a class="code" href="classbdm_1_1shared__ptr.html#37ebcfb6750dd7b5630f1d2354c07a96">get</a>() ); 
     660<a name="l00909"></a>00909                 <a class="code" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6" title="dimension of the condition">dimc</a> = 0; 
    664661<a name="l00910"></a>00910         } 
    665662<a name="l00911"></a>00911  
    666 <a name="l00913"></a><a class="code" href="classbdm_1_1mepdf.html#ab904a90ef78294040b498717cc13015e">00913</a>         vec <a class="code" href="classbdm_1_1mepdf.html#ab904a90ef78294040b498717cc13015e" title="empty">samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
     663<a name="l00913"></a><a class="code" href="classbdm_1_1mepdf.html#b904a90ef78294040b498717cc13015e">00913</a>         vec <a class="code" href="classbdm_1_1mepdf.html#b904a90ef78294040b498717cc13015e" title="empty">samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
    667664<a name="l00914"></a>00914                 <span class="keywordflow">return</span> iepdf-&gt;sample(); 
    668665<a name="l00915"></a>00915         } 
    669 <a name="l00916"></a><a class="code" href="classbdm_1_1mepdf.html#a57decd7718f3789e9d1f10f19def935b">00916</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mepdf.html#a57decd7718f3789e9d1f10f19def935b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( <span class="keyword">const</span> vec &amp;val, <span class="keyword">const</span> vec &amp;cond ) { 
     666<a name="l00916"></a><a class="code" href="classbdm_1_1mepdf.html#57decd7718f3789e9d1f10f19def935b">00916</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mepdf.html#57decd7718f3789e9d1f10f19def935b" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond</a> ( <span class="keyword">const</span> vec &amp;val, <span class="keyword">const</span> vec &amp;cond ) { 
    670667<a name="l00917"></a>00917                 <span class="keywordflow">return</span> iepdf-&gt;evallog ( val ); 
    671668<a name="l00918"></a>00918         } 
    672669<a name="l00919"></a>00919  
    673 <a name="l00927"></a>00927         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mepdf.html#a27ef18a3e3b1b5de02739d1324bf25fb" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
     670<a name="l00927"></a>00927         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1mepdf.html#27ef18a3e3b1b5de02739d1324bf25fb" title="Load from structure with elements:.">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ); 
    674671<a name="l00928"></a>00928 }; 
    675 <a name="l00929"></a>00929 <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> ( mepdf ); 
     672<a name="l00929"></a>00929 <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> ( mepdf ); 
    676673<a name="l00930"></a>00930 SHAREDPTR ( mepdf ); 
    677674<a name="l00931"></a>00931  
     
    680677<a name="l00950"></a><a class="code" href="classbdm_1_1DS.html">00950</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> { 
    681678<a name="l00951"></a>00951 <span class="keyword">protected</span>: 
    682 <a name="l00953"></a><a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9">00953</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>; 
    683 <a name="l00955"></a><a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983">00955</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>; 
    684 <a name="l00957"></a><a class="code" href="classbdm_1_1DS.html#a22a4b29aa6e9f3bf17bcc4b28567e8bd">00957</a>                 <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#a22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>; 
    685 <a name="l00959"></a><a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec">00959</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>; 
    686 <a name="l00961"></a><a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702">00961</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; <span class="comment">//</span> 
    687 <a name="l00963"></a><a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995">00963</a> <span class="comment"></span>                <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>; <span class="comment">//</span> 
    688 <a name="l00965"></a><a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867">00965</a> <span class="comment"></span>        <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a>, L_ut; 
     679<a name="l00953"></a><a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9">00953</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a>; 
     680<a name="l00955"></a><a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983">00955</a>         <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a>; 
     681<a name="l00957"></a><a class="code" href="classbdm_1_1DS.html#22a4b29aa6e9f3bf17bcc4b28567e8bd">00957</a>                 <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#22a4b29aa6e9f3bf17bcc4b28567e8bd" title="size of output">ytsize</a>; 
     682<a name="l00959"></a><a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec">00959</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>; 
     683<a name="l00961"></a><a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702">00961</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; <span class="comment">//</span> 
     684<a name="l00963"></a><a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995">00963</a> <span class="comment"></span>                <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>; <span class="comment">//</span> 
     685<a name="l00965"></a><a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867">00965</a> <span class="comment"></span>        <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a>, L_ut; 
    689686<a name="l00966"></a>00966 <span class="keyword">public</span>: 
    690 <a name="l00968"></a><a class="code" href="classbdm_1_1DS.html#abedd82e08ae6686b4b1732a122c2201a">00968</a>                 <a class="code" href="classbdm_1_1DS.html#abedd82e08ae6686b4b1732a122c2201a" title="default constructors">DS</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_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>(),<a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>() {}; 
     687<a name="l00968"></a><a class="code" href="classbdm_1_1DS.html#bedd82e08ae6686b4b1732a122c2201a">00968</a>                 <a class="code" href="classbdm_1_1DS.html#bedd82e08ae6686b4b1732a122c2201a" title="default constructors">DS</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_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>(),<a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>() {}; 
    691688<a name="l00969"></a>00969  
    692 <a name="l00971"></a><a class="code" href="classbdm_1_1DS.html#a76d11928675f276f805655ae2a05d773">00971</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#a76d11928675f276f805655ae2a05d773" title="Returns maximum number of provided data, by default it is set to maximum allowed...">max_length</a>() {<span class="keywordflow">return</span> std::numeric_limits&lt; int &gt;::max();} 
    693 <a name="l00973"></a><a class="code" href="classbdm_1_1DS.html#ac1ec862dec7164fee3284c6f9a51b0ba">00973</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#ac1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &amp;dt ) { 
    694 <a name="l00974"></a>00974                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;abstract class&quot;</span> ); 
     689<a name="l00971"></a><a class="code" href="classbdm_1_1DS.html#76d11928675f276f805655ae2a05d773">00971</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classbdm_1_1DS.html#76d11928675f276f805655ae2a05d773" title="Returns maximum number of provided data, by default it is set to maximum allowed...">max_length</a>() {<span class="keywordflow">return</span> std::numeric_limits&lt; int &gt;::max();} 
     690<a name="l00973"></a><a class="code" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba">00973</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( vec &amp;dt ) { 
     691<a name="l00974"></a>00974                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); 
    695692<a name="l00975"></a>00975         } 
    696 <a name="l00977"></a><a class="code" href="classbdm_1_1DS.html#aa0bf451c7fea73ff4150ff9e83da4832">00977</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#aa0bf451c7fea73ff4150ff9e83da4832" title="Returns data records at indeces.">getdata</a> ( vec &amp;dt, <span class="keyword">const</span> ivec &amp;indeces ) { 
    697 <a name="l00978"></a>00978                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;abstract class&quot;</span> ); 
     693<a name="l00977"></a><a class="code" href="classbdm_1_1DS.html#a0bf451c7fea73ff4150ff9e83da4832">00977</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a0bf451c7fea73ff4150ff9e83da4832" title="Returns data records at indeces.">getdata</a> ( vec &amp;dt, <span class="keyword">const</span> ivec &amp;indeces ) { 
     694<a name="l00978"></a>00978                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); 
    698695<a name="l00979"></a>00979         } 
    699696<a name="l00980"></a>00980  
    700 <a name="l00982"></a><a class="code" href="classbdm_1_1DS.html#af5baeee8528e5e4c5c7a344b2e3f192a">00982</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#af5baeee8528e5e4c5c7a344b2e3f192a" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut ) { 
    701 <a name="l00983"></a>00983                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;abstract class&quot;</span> ); 
     697<a name="l00982"></a><a class="code" href="classbdm_1_1DS.html#f5baeee8528e5e4c5c7a344b2e3f192a">00982</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#f5baeee8528e5e4c5c7a344b2e3f192a" title="Accepts action variable and schedule it for application.">write</a> ( vec &amp;ut ) { 
     698<a name="l00983"></a>00983                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); 
    702699<a name="l00984"></a>00984         } 
    703700<a name="l00985"></a>00985  
    704 <a name="l00987"></a><a class="code" href="classbdm_1_1DS.html#a6bced13f84f6bf04449728817e049e1d">00987</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a6bced13f84f6bf04449728817e049e1d" title="Accepts action variables at specific indeces.">write</a> ( vec &amp;ut, <span class="keyword">const</span> ivec &amp;indeces ) { 
    705 <a name="l00988"></a>00988                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;abstract class&quot;</span> ); 
     701<a name="l00987"></a><a class="code" href="classbdm_1_1DS.html#6bced13f84f6bf04449728817e049e1d">00987</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#6bced13f84f6bf04449728817e049e1d" title="Accepts action variables at specific indeces.">write</a> ( vec &amp;ut, <span class="keyword">const</span> ivec &amp;indeces ) { 
     702<a name="l00988"></a>00988                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); 
    706703<a name="l00989"></a>00989         } 
    707704<a name="l00990"></a>00990  
    708 <a name="l00992"></a><a class="code" href="classbdm_1_1DS.html#a4df78b21d352013d8804a8dda860b7ea">00992</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a4df78b21d352013d8804a8dda860b7ea" title="Moves from  to , i.e. perfroms the actions and reads response of the system.">step</a>()  
     705<a name="l00992"></a><a class="code" href="classbdm_1_1DS.html#4df78b21d352013d8804a8dda860b7ea">00992</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#4df78b21d352013d8804a8dda860b7ea" title="Moves from  to , i.e. perfroms the actions and reads response of the system.">step</a>()  
    709706<a name="l00993"></a>00993         { 
    710 <a name="l00994"></a>00994                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;abstract class&quot;</span> ); 
     707<a name="l00994"></a>00994                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"abstract class"</span> ); 
    711708<a name="l00995"></a>00995         } 
    712709<a name="l00996"></a>00996  
    713 <a name="l00998"></a><a class="code" href="classbdm_1_1DS.html#a3c9e417d85052396fe74c164857ee67e">00998</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a3c9e417d85052396fe74c164857ee67e" title="Register DS for logging into logger L.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) { 
    714 <a name="l00999"></a>00999                 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> == <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">&quot;invalid DS: dtsize (&quot;</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#af96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> ) + <span class="stringliteral">&quot;) different from Drv &quot;</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); 
    715 <a name="l01000"></a>01000                 <a class="code" href="bdmerror_8h.html#a7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> == <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">&quot;invalid DS: utsize (&quot;</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#ad7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> ) + <span class="stringliteral">&quot;) different from Urv &quot;</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); 
     710<a name="l00998"></a><a class="code" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e">00998</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#3c9e417d85052396fe74c164857ee67e" title="Register DS for logging into logger L.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) { 
     711<a name="l00999"></a>00999                 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> == <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">"invalid DS: dtsize ("</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#f96cae44624e79638a91ec4f2c7c81a9" title="size of data returned by getdata() ">dtsize</a> ) + <span class="stringliteral">") different from Drv "</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); 
     712<a name="l01000"></a>01000                 <a class="code" href="bdmerror_8h.html#7a3399d182b8e3065532596e76f84849" title="Throw std::runtime_exception if t is not true.">bdm_assert</a> ( <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> == <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <span class="stringliteral">"invalid DS: utsize ("</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#d7467046a0bd05bc992cc5e1bdedb983" title="size of data">utsize</a> ) + <span class="stringliteral">") different from Urv "</span> + num2str ( <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); 
    716713<a name="l01001"></a>01001  
    717 <a name="l01002"></a>01002                 <a class="code" href="classbdm_1_1DS.html#ab4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a> = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>, <span class="stringliteral">&quot;&quot;</span> ); 
    718 <a name="l01003"></a>01003                 L_ut = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>, <span class="stringliteral">&quot;&quot;</span> ); 
     714<a name="l01002"></a>01002                 <a class="code" href="classbdm_1_1DS.html#b4b7bdb9d98a11ab587aa0ad803bb867" title="Remember its own index in Logger L.">L_dt</a> = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>, <span class="stringliteral">""</span> ); 
     715<a name="l01003"></a>01003                 L_ut = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>, <span class="stringliteral">""</span> ); 
    719716<a name="l01004"></a>01004         } 
    720 <a name="l01006"></a><a class="code" href="classbdm_1_1DS.html#ae03d2c93cddd5c3a03107ddd3ae999cf">01006</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#ae03d2c93cddd5c3a03107ddd3ae999cf" title="Register DS for logging into logger L.">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) { 
    721 <a name="l01007"></a>01007                 vec tmp ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() + <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); 
    722 <a name="l01008"></a>01008                 <a class="code" href="classbdm_1_1DS.html#ac1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( tmp ); 
     717<a name="l01006"></a><a class="code" href="classbdm_1_1DS.html#e03d2c93cddd5c3a03107ddd3ae999cf">01006</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#e03d2c93cddd5c3a03107ddd3ae999cf" title="Register DS for logging into logger L.">logit</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) { 
     718<a name="l01007"></a>01007                 vec tmp ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() + <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ); 
     719<a name="l01008"></a>01008                 <a class="code" href="classbdm_1_1DS.html#c1ec862dec7164fee3284c6f9a51b0ba" title="Returns full vector of observed data=[output, input].">getdata</a> ( tmp ); 
    723720<a name="l01009"></a>01009                 <span class="comment">// d is first in getdata</span> 
    724 <a name="l01010"></a>01010                 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>, tmp.left ( <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>() ) ); 
     721<a name="l01010"></a>01010                 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>, tmp.left ( <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>() ) ); 
    725722<a name="l01011"></a>01011                 <span class="comment">// u follows after d in getdata</span> 
    726 <a name="l01012"></a>01012                 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( L_ut, tmp.mid ( <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#ade30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); 
     723<a name="l01012"></a>01012                 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( L_ut, tmp.mid ( <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>(), <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>.<a class="code" href="classbdm_1_1RV.html#de30156104f61d86c94f758861418089" title="total size of a random variable">_dsize</a>() ) ); 
    727724<a name="l01013"></a>01013         } 
    728 <a name="l01015"></a><a class="code" href="classbdm_1_1DS.html#a069497b610296be053d862a2493be0ce">01015</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1DS.html#a069497b610296be053d862a2493be0ce" title="access function">_drv</a>()<span class="keyword"> const </span>{ 
     725<a name="l01015"></a><a class="code" href="classbdm_1_1DS.html#069497b610296be053d862a2493be0ce">01015</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1DS.html#069497b610296be053d862a2493be0ce" title="access function">_drv</a>()<span class="keyword"> const </span>{ 
    729726<a name="l01016"></a>01016                 <span class="comment">//              return concat (Drv, Urv);// why!!!</span> 
    730 <a name="l01017"></a>01017                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>;<span class="comment">// why!!!</span> 
     727<a name="l01017"></a>01017                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a>;<span class="comment">// why!!!</span> 
    731728<a name="l01018"></a>01018         } 
    732 <a name="l01020"></a><a class="code" href="classbdm_1_1DS.html#aa6a9a375da64c82fc227bda3418a1f33">01020</a>         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1DS.html#aa6a9a375da64c82fc227bda3418a1f33" title="access function">_urv</a>()<span class="keyword"> const </span>{ 
    733 <a name="l01021"></a>01021                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; 
     729<a name="l01020"></a><a class="code" href="classbdm_1_1DS.html#a6a9a375da64c82fc227bda3418a1f33">01020</a>         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1DS.html#a6a9a375da64c82fc227bda3418a1f33" title="access function">_urv</a>()<span class="keyword"> const </span>{ 
     730<a name="l01021"></a>01021                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a>; 
    734731<a name="l01022"></a>01022         } 
    735 <a name="l01024"></a><a class="code" href="classbdm_1_1DS.html#ac09878f86907329ac631a3df8755c558">01024</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; <a class="code" href="classbdm_1_1DS.html#ac09878f86907329ac631a3df8755c558" title="access function">_yrv</a>()<span class="keyword"> const </span>{ 
    736 <a name="l01025"></a>01025                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>; 
     732<a name="l01024"></a><a class="code" href="classbdm_1_1DS.html#c09878f86907329ac631a3df8755c558">01024</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; <a class="code" href="classbdm_1_1DS.html#c09878f86907329ac631a3df8755c558" title="access function">_yrv</a>()<span class="keyword"> const </span>{ 
     733<a name="l01025"></a>01025                         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a>; 
    737734<a name="l01026"></a>01026                 } 
    738 <a name="l01028"></a><a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc">01028</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#a3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a> (<span class="keyword">const</span>  <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &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) { 
    739 <a name="l01029"></a>01029                     <a class="code" href="classbdm_1_1DS.html#aeb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a> = yrv; 
    740 <a name="l01030"></a>01030                         <a class="code" href="classbdm_1_1DS.html#ad8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> = concat(yrv,urv); 
    741 <a name="l01031"></a>01031                 <a class="code" href="classbdm_1_1DS.html#a9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a> = urv; 
     735<a name="l01028"></a><a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc">01028</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1DS.html#3a92d77fd97fdb6bf1c8edb1e38c6bbc" title="set random variables">set_drv</a> (<span class="keyword">const</span>  <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> &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) { 
     736<a name="l01029"></a>01029                     <a class="code" href="classbdm_1_1DS.html#eb9de2a85f0d8257d79d9b68c05c4995" title="Description of output data.">Yrv</a> = yrv; 
     737<a name="l01030"></a>01030                         <a class="code" href="classbdm_1_1DS.html#d8db125ac35f3b8eeb773fc9a4cb45ec" title="Description of data returned by getdata().">Drv</a> = concat(yrv,urv); 
     738<a name="l01031"></a>01031                 <a class="code" href="classbdm_1_1DS.html#9ac5970128fd39f4f6226723cd1de702" title="Description of data witten by by write().">Urv</a> = urv; 
    742739<a name="l01032"></a>01032         } 
    743740<a name="l01033"></a>01033 }; 
     
    745742<a name="l01056"></a><a class="code" href="classbdm_1_1BM.html">01056</a> <span class="keyword">class </span><a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> : <span class="keyword">public</span> <a class="code" href="classbdm_1_1root.html" title="Root class of BDM objects.">root</a> { 
    746743<a name="l01057"></a>01057 <span class="keyword">protected</span>: 
    747 <a name="l01059"></a><a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed">01059</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a>; 
    748 <a name="l01061"></a><a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a">01061</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a>; 
    749 <a name="l01063"></a><a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee">01063</a>         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a>; 
     744<a name="l01059"></a><a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed">01059</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a>; 
     745<a name="l01061"></a><a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a">01061</a>         <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a>; 
     746<a name="l01063"></a><a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee">01063</a>         <span class="keywordtype">bool</span> <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a>; 
    750747<a name="l01064"></a>01064 <span class="keyword">public</span>: 
    751748<a name="l01067"></a>01067  
    752 <a name="l01068"></a>01068         <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>() : <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( 0 ), <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( true ), <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 4 ), <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 4 ) { 
    753 <a name="l01069"></a>01069                 <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> = -1;<span class="comment">/*empty IDs*/</span> 
    754 <a name="l01070"></a>01070                 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> = 0; 
    755 <a name="l01071"></a>01071                 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1;  <span class="comment">/*log only mean*/</span> 
     749<a name="l01068"></a>01068         <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>() : <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( 0 ), <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( true ), <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 4 ), <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 4 ) { 
     750<a name="l01069"></a>01069                 <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> = -1;<span class="comment">/*empty IDs*/</span> 
     751<a name="l01070"></a>01070                 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> = 0; 
     752<a name="l01071"></a>01071                 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1;  <span class="comment">/*log only mean*/</span> 
    756753<a name="l01072"></a>01072         }; 
    757 <a name="l01073"></a>01073         <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> &amp;B ) :  <a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ( B.<a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ), <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( B.<a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ), <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( B.<a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ) {} 
    758 <a name="l01076"></a><a class="code" href="classbdm_1_1BM.html#a40f01563651c1e4fe926189e41a6b8ab">01076</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>* <a class="code" href="classbdm_1_1BM.html#a40f01563651c1e4fe926189e41a6b8ab">_copy_</a>()<span class="keyword"> const </span>{ 
     754<a name="l01073"></a>01073         <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> ( <span class="keyword">const</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> &amp;B ) :  <a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ( B.<a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> ), <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ( B.<a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ), <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ( B.<a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> ) {} 
     755<a name="l01076"></a><a class="code" href="classbdm_1_1BM.html#40f01563651c1e4fe926189e41a6b8ab">01076</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a>* <a class="code" href="classbdm_1_1BM.html#40f01563651c1e4fe926189e41a6b8ab">_copy_</a>()<span class="keyword"> const </span>{ 
    759756<a name="l01077"></a>01077                 <span class="keywordflow">return</span> NULL; 
    760757<a name="l01078"></a>01078         }; 
    761758<a name="l01080"></a>01080  
    762759<a name="l01083"></a>01083  
    763 <a name="l01087"></a>01087         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a60b1779a577367c369a932cabd3a6188" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &amp;dt ) = 0; 
    764 <a name="l01089"></a>01089         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a1dee3fddaf021e62d925289660a707dc" title="Batch Bayes rule (columns of Dt are observations).">bayesB</a> ( <span class="keyword">const</span> mat &amp;Dt ); 
    765 <a name="l01092"></a><a class="code" href="classbdm_1_1BM.html#a50257e0c1e5b5c73153ea6e716ad8ae0">01092</a>         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#a50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> ( <span class="keyword">const</span> vec &amp;dt )<span class="keyword"> const </span>{ 
    766 <a name="l01093"></a>01093                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     760<a name="l01087"></a>01087         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#60b1779a577367c369a932cabd3a6188" title="Incremental Bayes rule.">bayes</a> ( <span class="keyword">const</span> vec &amp;dt ) = 0; 
     761<a name="l01089"></a>01089         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#1dee3fddaf021e62d925289660a707dc" title="Batch Bayes rule (columns of Dt are observations).">bayesB</a> ( <span class="keyword">const</span> mat &amp;Dt ); 
     762<a name="l01092"></a><a class="code" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">01092</a>         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> ( <span class="keyword">const</span> vec &amp;dt )<span class="keyword"> const </span>{ 
     763<a name="l01093"></a>01093                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    767764<a name="l01094"></a>01094                 <span class="keywordflow">return</span> 0.0; 
    768765<a name="l01095"></a>01095         } 
    769766<a name="l01096"></a>01096  
    770 <a name="l01098"></a><a class="code" href="classbdm_1_1BM.html#a0e8ebe61fb14990abe1254bd3dda5fae">01098</a>         vec <a class="code" href="classbdm_1_1BM.html#a0e8ebe61fb14990abe1254bd3dda5fae" title="Matrix version of logpred.">logpred_m</a> ( <span class="keyword">const</span> mat &amp;dt )<span class="keyword"> const </span>{ 
     767<a name="l01098"></a><a class="code" href="classbdm_1_1BM.html#0e8ebe61fb14990abe1254bd3dda5fae">01098</a>         vec <a class="code" href="classbdm_1_1BM.html#0e8ebe61fb14990abe1254bd3dda5fae" title="Matrix version of logpred.">logpred_m</a> ( <span class="keyword">const</span> mat &amp;dt )<span class="keyword"> const </span>{ 
    771768<a name="l01099"></a>01099                 vec tmp ( dt.cols() ); 
    772769<a name="l01100"></a>01100                 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; dt.cols(); i++ ) { 
    773 <a name="l01101"></a>01101                         tmp ( i ) = <a class="code" href="classbdm_1_1BM.html#a50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> ( dt.get_col ( i ) ); 
     770<a name="l01101"></a>01101                         tmp ( i ) = <a class="code" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> ( dt.get_col ( i ) ); 
    774771<a name="l01102"></a>01102                 } 
    775772<a name="l01103"></a>01103                 <span class="keywordflow">return</span> tmp; 
    776773<a name="l01104"></a>01104         } 
    777774<a name="l01105"></a>01105  
    778 <a name="l01107"></a><a class="code" href="classbdm_1_1BM.html#a688d7a2aced1e06aa1c468d73a9e5eba">01107</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* <a class="code" href="classbdm_1_1BM.html#a688d7a2aced1e06aa1c468d73a9e5eba" title="Constructs a predictive density .">epredictor</a>()<span class="keyword"> const </span>{ 
    779 <a name="l01108"></a>01108                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     775<a name="l01107"></a><a class="code" href="classbdm_1_1BM.html#688d7a2aced1e06aa1c468d73a9e5eba">01107</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>* <a class="code" href="classbdm_1_1BM.html#688d7a2aced1e06aa1c468d73a9e5eba" title="Constructs a predictive density .">epredictor</a>()<span class="keyword"> const </span>{ 
     776<a name="l01108"></a>01108                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    780777<a name="l01109"></a>01109                 <span class="keywordflow">return</span> NULL; 
    781778<a name="l01110"></a>01110         }; 
    782 <a name="l01112"></a><a class="code" href="classbdm_1_1BM.html#a598b25e3f3d96a5bc00a5faeb5b3c912">01112</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a>* <a class="code" href="classbdm_1_1BM.html#a598b25e3f3d96a5bc00a5faeb5b3c912" title="Constructs conditional density of 1-step ahead predictor .">predictor</a>()<span class="keyword"> const </span>{ 
    783 <a name="l01113"></a>01113                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented&quot;</span> ); 
     779<a name="l01112"></a><a class="code" href="classbdm_1_1BM.html#598b25e3f3d96a5bc00a5faeb5b3c912">01112</a>         <span class="keyword">virtual</span> <a class="code" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where  is random variable, rv, and...">mpdf</a>* <a class="code" href="classbdm_1_1BM.html#598b25e3f3d96a5bc00a5faeb5b3c912" title="Constructs conditional density of 1-step ahead predictor .">predictor</a>()<span class="keyword"> const </span>{ 
     780<a name="l01113"></a>01113                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented"</span> ); 
    784781<a name="l01114"></a>01114                 <span class="keywordflow">return</span> NULL; 
    785782<a name="l01115"></a>01115         }; 
    786783<a name="l01117"></a>01117  
    787784<a name="l01122"></a>01122  
    788 <a name="l01124"></a><a class="code" href="classbdm_1_1BM.html#ade95c590d650b2db423d53992f0906cb">01124</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#ade95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; 
    789 <a name="l01126"></a><a class="code" href="classbdm_1_1BM.html#ab5e8e016be16e4029c789063cb3f3b33">01126</a>         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1BM.html#ab5e8e016be16e4029c789063cb3f3b33" title="access function">_rvc</a>()<span class="keyword"> const </span>{ 
    790 <a name="l01127"></a>01127                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#ade95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; 
     785<a name="l01124"></a><a class="code" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb">01124</a>         <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> <a class="code" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; 
     786<a name="l01126"></a><a class="code" href="classbdm_1_1BM.html#b5e8e016be16e4029c789063cb3f3b33">01126</a>         <span class="keyword">const</span> <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>&amp; <a class="code" href="classbdm_1_1BM.html#b5e8e016be16e4029c789063cb3f3b33" title="access function">_rvc</a>()<span class="keyword"> const </span>{ 
     787<a name="l01127"></a>01127                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb" title="Name of extension variable.">rvc</a>; 
    791788<a name="l01128"></a>01128         } 
    792789<a name="l01129"></a>01129  
    793 <a name="l01131"></a><a class="code" href="classbdm_1_1BM.html#a6799f4b16a6a59ed58b1d0d6e17116f4">01131</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a6799f4b16a6a59ed58b1d0d6e17116f4" title="Substitute val for rvc.">condition</a> ( <span class="keyword">const</span> vec &amp;val ) { 
    794 <a name="l01132"></a>01132                 <a class="code" href="bdmerror_8h.html#a7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">&quot;Not implemented!&quot;</span> ); 
     790<a name="l01131"></a><a class="code" href="classbdm_1_1BM.html#6799f4b16a6a59ed58b1d0d6e17116f4">01131</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#6799f4b16a6a59ed58b1d0d6e17116f4" title="Substitute val for rvc.">condition</a> ( <span class="keyword">const</span> vec &amp;val ) { 
     791<a name="l01132"></a>01132                 <a class="code" href="bdmerror_8h.html#7c43f3a72afe68ab0c85663a1bb3521a" title="Unconditionally throw std::runtime_error.">bdm_error</a> ( <span class="stringliteral">"Not implemented!"</span> ); 
    795792<a name="l01133"></a>01133         } 
    796793<a name="l01134"></a>01134  
     
    799796<a name="l01140"></a>01140  
    800797<a name="l01141"></a>01141         <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()<span class="keyword"> const </span>{ 
    801 <a name="l01142"></a>01142                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a>; 
     798<a name="l01142"></a>01142                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a>; 
    802799<a name="l01143"></a>01143         } 
    803800<a name="l01144"></a>01144         <span class="keywordtype">void</span> set_drv ( <span class="keyword">const</span> RV &amp;rv ) { 
    804 <a name="l01145"></a>01145                 <a class="code" href="classbdm_1_1BM.html#ac400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> = rv; 
     801<a name="l01145"></a>01145                 <a class="code" href="classbdm_1_1BM.html#c400357e37d27a4834b2b1d9211009ed" title="Random variable of the data (optional).">drv</a> = rv; 
    805802<a name="l01146"></a>01146         } 
    806803<a name="l01147"></a>01147         <span class="keywordtype">void</span> set_rv ( <span class="keyword">const</span> RV &amp;rv ) { 
     
    808805<a name="l01149"></a>01149         } 
    809806<a name="l01150"></a>01150         <span class="keywordtype">double</span> _ll()<span class="keyword"> const </span>{ 
    810 <a name="l01151"></a>01151                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a>; 
     807<a name="l01151"></a>01151                 <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a>; 
    811808<a name="l01152"></a>01152         } 
    812809<a name="l01153"></a>01153         <span class="keywordtype">void</span> set_evalll ( <span class="keywordtype">bool</span> evl0 ) { 
    813 <a name="l01154"></a>01154                 <a class="code" href="classbdm_1_1BM.html#afaff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> = evl0; 
     810<a name="l01154"></a>01154                 <a class="code" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee" title="If true, the filter will compute likelihood of the data record and store it in ll...">evalll</a> = evl0; 
    814811<a name="l01155"></a>01155         } 
    815812<a name="l01156"></a>01156         <span class="keyword">virtual</span> <span class="keyword">const</span> epdf&amp; posterior() <span class="keyword">const</span> = 0; 
    816813<a name="l01158"></a>01158  
    817814<a name="l01161"></a>01161  
    818 <a name="l01163"></a><a class="code" href="classbdm_1_1BM.html#aadb539fa2585c8a2a91c54e5aebf330e">01163</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#aadb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &amp;quot;logbounds,logll&amp;quot;.">set_options</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;opt ) { 
    819 <a name="l01164"></a>01164                 <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1; 
    820 <a name="l01165"></a>01165                 <span class="keywordflow">if</span> ( opt.find ( <span class="stringliteral">&quot;logbounds&quot;</span> ) != string::npos ) { 
    821 <a name="l01166"></a>01166                         <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) = 1; 
    822 <a name="l01167"></a>01167                         <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) = 1; 
     815<a name="l01163"></a><a class="code" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e">01163</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &amp;quot;logbounds,logll&amp;quot;.">set_options</a> ( <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;opt ) { 
     816<a name="l01164"></a>01164                 <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) = 1; 
     817<a name="l01165"></a>01165                 <span class="keywordflow">if</span> ( opt.find ( <span class="stringliteral">"logbounds"</span> ) != string::npos ) { 
     818<a name="l01166"></a>01166                         <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) = 1; 
     819<a name="l01167"></a>01167                         <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) = 1; 
    823820<a name="l01168"></a>01168                 } 
    824 <a name="l01169"></a>01169                 <span class="keywordflow">if</span> ( opt.find ( <span class="stringliteral">&quot;logll&quot;</span> ) != string::npos ) { 
    825 <a name="l01170"></a>01170                         <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) = 1; 
     821<a name="l01169"></a>01169                 <span class="keywordflow">if</span> ( opt.find ( <span class="stringliteral">"logll"</span> ) != string::npos ) { 
     822<a name="l01170"></a>01170                         <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) = 1; 
    826823<a name="l01171"></a>01171                 } 
    827824<a name="l01172"></a>01172         } 
    828 <a name="l01174"></a><a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca">01174</a>         ivec <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a>; 
     825<a name="l01174"></a><a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca">01174</a>         ivec <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a>; 
    829826<a name="l01175"></a>01175  
    830 <a name="l01177"></a><a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207">01177</a>         ivec <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a>; 
    831 <a name="l01179"></a><a class="code" href="classbdm_1_1BM.html#a2298ca6af9b13a78a4c9e18ab43f1827">01179</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a2298ca6af9b13a78a4c9e18ab43f1827" title="Add all logged variables to a logger.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;name = <span class="stringliteral">&quot;&quot;</span> ) { 
     827<a name="l01177"></a><a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207">01177</a>         ivec <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a>; 
     828<a name="l01179"></a><a class="code" href="classbdm_1_1BM.html#2298ca6af9b13a78a4c9e18ab43f1827">01179</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#2298ca6af9b13a78a4c9e18ab43f1827" title="Add all logged variables to a logger.">log_add</a> ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L, <span class="keyword">const</span> <span class="keywordtype">string</span> &amp;name = <span class="stringliteral">""</span> ) { 
    832829<a name="l01180"></a>01180                 <span class="comment">// internal</span> 
    833830<a name="l01181"></a>01181                 <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> r; 
    834831<a name="l01182"></a>01182                 <span class="keywordflow">if</span> ( posterior().isnamed() ) { 
    835 <a name="l01183"></a>01183                         r = posterior().<a class="code" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>(); 
     832<a name="l01183"></a>01183                         r = posterior().<a class="code" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21" title="Return name (fails when isnamed is false).">_rv</a>(); 
    836833<a name="l01184"></a>01184                 } <span class="keywordflow">else</span> { 
    837 <a name="l01185"></a>01185                         r = <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">&quot;est&quot;</span>, posterior().dimension() ); 
     834<a name="l01185"></a>01185                         r = <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"est"</span>, posterior().dimension() ); 
    838835<a name="l01186"></a>01186                 }; 
    839836<a name="l01187"></a>01187  
    840837<a name="l01188"></a>01188                 <span class="comment">// Add mean value</span> 
    841 <a name="l01189"></a>01189                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">&quot;mean_&quot;</span> ); 
    842 <a name="l01190"></a>01190                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">&quot;lb_&quot;</span> ); 
    843 <a name="l01191"></a>01191                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">&quot;ub_&quot;</span> ); 
    844 <a name="l01192"></a>01192                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ) = L.<a class="code" href="classbdm_1_1logger.html#a47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">&quot;ll&quot;</span>, 1 ), name );    <span class="comment">//TODO: &quot;local&quot; RV</span> 
     838<a name="l01189"></a>01189                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 0 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"mean_"</span> ); 
     839<a name="l01190"></a>01190                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"lb_"</span> ); 
     840<a name="l01191"></a>01191                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( r, name + <span class="stringliteral">"ub_"</span> ); 
     841<a name="l01192"></a>01192                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ) = L.<a class="code" href="classbdm_1_1logger.html#47aa3b098a81d02a8ffaea2c9fa09ac7" title="returns an identifier which will be later needed for calling the logit() function...">add</a> ( <a class="code" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a> ( <span class="stringliteral">"ll"</span>, 1 ), name );    <span class="comment">//TODO: "local" RV</span> 
    845842<a name="l01193"></a>01193         } 
    846843<a name="l01194"></a>01194         <span class="keyword">virtual</span> <span class="keywordtype">void</span> logit ( <a class="code" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a> &amp;L ) { 
    847 <a name="l01195"></a>01195                 L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ), posterior().mean() ); 
    848 <a name="l01196"></a>01196                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) || <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) {  <span class="comment">//if one of them is off, its LID==-1 and will not be stored</span> 
     844<a name="l01195"></a>01195                 L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 0 ), posterior().mean() ); 
     845<a name="l01196"></a>01196                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 1 ) || <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 2 ) ) {  <span class="comment">//if one of them is off, its LID==-1 and will not be stored</span> 
    849846<a name="l01197"></a>01197                         vec ub, lb; 
    850 <a name="l01198"></a>01198                         posterior().<a class="code" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( lb, ub ); 
    851 <a name="l01199"></a>01199                         L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ), lb ); 
    852 <a name="l01200"></a>01200                         L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ), ub ); 
     847<a name="l01198"></a>01198                         posterior().<a class="code" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539" title="Lower and upper bounds of percentage % quantile, returns mean-2*sigma as default...">qbounds</a> ( lb, ub ); 
     848<a name="l01199"></a>01199                         L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 1 ), lb ); 
     849<a name="l01200"></a>01200                         L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 2 ), ub ); 
    853850<a name="l01201"></a>01201                 } 
    854 <a name="l01202"></a>01202                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#a398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) L.<a class="code" href="classbdm_1_1logger.html#ae30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#a109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ), <a class="code" href="classbdm_1_1BM.html#a4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ); 
     851<a name="l01202"></a>01202                 <span class="keywordflow">if</span> ( <a class="code" href="classbdm_1_1BM.html#398b7e7a162cf37d0022d6126495f207" title="Flags for logging - same size as LIDs, each entry correspond to the same in LIDs...">LFlags</a> ( 3 ) ) L.<a class="code" href="classbdm_1_1logger.html#e30f695619931b3c372ab280e452d309" title="log this vector">logit</a> ( <a class="code" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca" title="IDs of storages in loggers 4:[1=mean,2=lb,3=ub,4=ll].">LIDs</a> ( 3 ), <a class="code" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a" title="Logarithm of marginalized data likelihood.">ll</a> ); 
    855852<a name="l01203"></a>01203         } 
    856 <a name="l01205"></a><a class="code" href="classbdm_1_1BM.html#a23c6a8f71f922023ab08dcb0487a86de">01205</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#a23c6a8f71f922023ab08dcb0487a86de" title="This method arrange instance properties according the data stored in the Setting...">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ) { 
    857 <a name="l01206"></a>01206                 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr&lt;RV&gt;</a> r = UI::build&lt;RV&gt; ( <span class="keyword">set</span>, <span class="stringliteral">&quot;drv&quot;</span>, UI::optional ); 
     853<a name="l01205"></a><a class="code" href="classbdm_1_1BM.html#23c6a8f71f922023ab08dcb0487a86de">01205</a>         <span class="keywordtype">void</span> <a class="code" href="classbdm_1_1BM.html#23c6a8f71f922023ab08dcb0487a86de" title="This method arrange instance properties according the data stored in the Setting...">from_setting</a> ( <span class="keyword">const</span> Setting &amp;<span class="keyword">set</span> ) { 
     854<a name="l01206"></a>01206                 <a class="code" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr&lt;RV&gt;</a> r = UI::build&lt;RV&gt; ( <span class="keyword">set</span>, <span class="stringliteral">"drv"</span>, UI::optional ); 
    858855<a name="l01207"></a>01207                 <span class="keywordflow">if</span> ( r ) { 
    859856<a name="l01208"></a>01208                         set_drv ( *r ); 
    860857<a name="l01209"></a>01209                 } 
    861858<a name="l01210"></a>01210                 <span class="keywordtype">string</span> opt; 
    862 <a name="l01211"></a>01211                 <span class="keywordflow">if</span> ( !<a class="code" href="classbdm_1_1UI.html#acd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a> ( opt, <span class="keyword">set</span>, <span class="stringliteral">&quot;options&quot;</span>, UI::optional ) ) { 
    863 <a name="l01212"></a>01212                         <a class="code" href="classbdm_1_1BM.html#aadb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &amp;quot;logbounds,logll&amp;quot;.">set_options</a> ( opt ); 
     859<a name="l01211"></a>01211                 <span class="keywordflow">if</span> ( !<a class="code" href="classbdm_1_1UI.html#cd1667e6fec99ec64dabcb3ca2ff922d">UI::get</a> ( opt, <span class="keyword">set</span>, <span class="stringliteral">"options"</span>, UI::optional ) ) { 
     860<a name="l01212"></a>01212                         <a class="code" href="classbdm_1_1BM.html#adb539fa2585c8a2a91c54e5aebf330e" title="Set boolean options from a string, recognized are: &amp;quot;logbounds,logll&amp;quot;.">set_options</a> ( opt ); 
    864861<a name="l01213"></a>01213                 } 
    865862<a name="l01214"></a>01214         } 
     
    872869<a name="l01221"></a>01221  
    873870<a name="l01222"></a>01222 <span class="keyword">template</span>&lt;<span class="keyword">class</span> EPDF&gt; 
    874 <a name="l01223"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ad8e547695d1cc19219b91164d825c930">01223</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ad8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">mpdf_internal&lt;EPDF&gt;::samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
    875 <a name="l01224"></a>01224         <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
    876 <a name="l01225"></a>01225         vec temp = <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.sample(); 
     871<a name="l01223"></a><a class="code" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930">01223</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930" title="Reimplements samplecond using condition().">mpdf_internal&lt;EPDF&gt;::samplecond</a> ( <span class="keyword">const</span> vec &amp;cond ) { 
     872<a name="l01224"></a>01224         <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
     873<a name="l01225"></a>01225         vec temp = <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.sample(); 
    877874<a name="l01226"></a>01226         <span class="keywordflow">return</span> temp; 
    878875<a name="l01227"></a>01227 } 
    879876<a name="l01228"></a>01228  
    880877<a name="l01229"></a>01229 <span class="keyword">template</span>&lt;<span class="keyword">class</span> EPDF&gt; 
    881 <a name="l01230"></a><a class="code" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823">01230</a> mat <a class="code" href="classbdm_1_1mpdf__internal.html#a9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">mpdf_internal&lt;EPDF&gt;::samplecond_m</a> ( <span class="keyword">const</span> vec &amp;cond, <span class="keywordtype">int</span> N ) { 
    882 <a name="l01231"></a>01231         <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
     878<a name="l01230"></a><a class="code" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">01230</a> mat <a class="code" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823" title="Efficient version of samplecond.">mpdf_internal&lt;EPDF&gt;::samplecond_m</a> ( <span class="keyword">const</span> vec &amp;cond, <span class="keywordtype">int</span> N ) { 
     879<a name="l01231"></a>01231         <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
    883880<a name="l01232"></a>01232         mat temp ( dimension(), N ); 
    884881<a name="l01233"></a>01233         vec smp ( dimension() ); 
    885882<a name="l01234"></a>01234         <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; N; i++ ) { 
    886 <a name="l01235"></a>01235                 smp = <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.sample(); 
     883<a name="l01235"></a>01235                 smp = <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.sample(); 
    887884<a name="l01236"></a>01236                 temp.set_col ( i, smp ); 
    888885<a name="l01237"></a>01237         } 
     
    892889<a name="l01241"></a>01241  
    893890<a name="l01242"></a>01242 <span class="keyword">template</span>&lt;<span class="keyword">class</span> EPDF&gt; 
    894 <a name="l01243"></a><a class="code" href="classbdm_1_1mpdf__internal.html#a89076e62b8d7df7616bad68c94591948">01243</a> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a89076e62b8d7df7616bad68c94591948" title="Reimplements evallogcond using condition().">mpdf_internal&lt;EPDF&gt;::evallogcond</a> ( <span class="keyword">const</span> vec &amp;dt, <span class="keyword">const</span> vec &amp;cond ) { 
     891<a name="l01243"></a><a class="code" href="classbdm_1_1mpdf__internal.html#89076e62b8d7df7616bad68c94591948">01243</a> <span class="keywordtype">double</span> <a class="code" href="classbdm_1_1mpdf__internal.html#89076e62b8d7df7616bad68c94591948" title="Reimplements evallogcond using condition().">mpdf_internal&lt;EPDF&gt;::evallogcond</a> ( <span class="keyword">const</span> vec &amp;dt, <span class="keyword">const</span> vec &amp;cond ) { 
    895892<a name="l01244"></a>01244         <span class="keywordtype">double</span> tmp; 
    896 <a name="l01245"></a>01245         <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
    897 <a name="l01246"></a>01246         tmp = <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog ( dt ); 
     893<a name="l01245"></a>01245         <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
     894<a name="l01246"></a>01246         tmp = <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog ( dt ); 
    898895<a name="l01247"></a>01247         <span class="keywordflow">return</span> tmp; 
    899896<a name="l01248"></a>01248 } 
    900897<a name="l01249"></a>01249  
    901898<a name="l01250"></a>01250 <span class="keyword">template</span>&lt;<span class="keyword">class</span> EPDF&gt; 
    902 <a name="l01251"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c">01251</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal&lt;EPDF&gt;::evallogcond_m</a> ( <span class="keyword">const</span> mat &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
    903 <a name="l01252"></a>01252         <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
    904 <a name="l01253"></a>01253         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); 
     899<a name="l01251"></a><a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c">01251</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal&lt;EPDF&gt;::evallogcond_m</a> ( <span class="keyword">const</span> mat &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
     900<a name="l01252"></a>01252         <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
     901<a name="l01253"></a>01253         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); 
    905902<a name="l01254"></a>01254 } 
    906903<a name="l01255"></a>01255  
    907904<a name="l01256"></a>01256 <span class="keyword">template</span>&lt;<span class="keyword">class</span> EPDF&gt; 
    908 <a name="l01257"></a><a class="code" href="classbdm_1_1mpdf__internal.html#ae82db07ce8af02f29cfd81e014edb3db">01257</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#ae28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal&lt;EPDF&gt;::evallogcond_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
    909 <a name="l01258"></a>01258         <a class="code" href="classbdm_1_1mpdf__internal.html#a1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
    910 <a name="l01259"></a>01259         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#a47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); 
     905<a name="l01257"></a><a class="code" href="classbdm_1_1mpdf__internal.html#e82db07ce8af02f29cfd81e014edb3db">01257</a> vec <a class="code" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c" title="Efficient version of evallogcond for matrices.">mpdf_internal&lt;EPDF&gt;::evallogcond_m</a> ( <span class="keyword">const</span> Array&lt;vec&gt; &amp;Dt, <span class="keyword">const</span> vec &amp;cond ) { 
     906<a name="l01258"></a>01258         <a class="code" href="classbdm_1_1mpdf__internal.html#1ac61da081667fc54bcd050cc4f6a93e" title="Update iepdf so that it represents this mpdf conditioned on rvc = cond This function...">condition</a> ( cond ); 
     907<a name="l01259"></a>01259         <span class="keywordflow">return</span> <a class="code" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468" title="Internal epdf used for sampling.">iepdf</a>.evallog_m ( Dt ); 
    911908<a name="l01260"></a>01260 } 
    912909<a name="l01261"></a>01261  
     
    914911<a name="l01263"></a>01263 <span class="preprocessor">#endif // BDMBASE_H</span> 
    915912</pre></div></div> 
    916 <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 27 00:49:04 2009 for mixpp by&nbsp; 
     913<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:42 2009 for mixpp by&nbsp; 
    917914<a href="http://www.doxygen.org/index.html"> 
    918 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> 
     915<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
    919916</body> 
    920917</html>