|  | 8 | <script type="text/javascript"> | 
                          |  | 9 | <!-- | 
                          |  | 10 | function changeDisplayState (e){ | 
                          |  | 11 | var num=this.id.replace(/[^[0-9]/g,''); | 
                          |  | 12 | var button=this.firstChild; | 
                          |  | 13 | var sectionDiv=document.getElementById('dynsection'+num); | 
                          |  | 14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ | 
                          |  | 15 | sectionDiv.style.display='block'; | 
                          |  | 16 | button.src='open.gif'; | 
                          |  | 17 | }else{ | 
                          |  | 18 | sectionDiv.style.display='none'; | 
                          |  | 19 | button.src='closed.gif'; | 
                          |  | 20 | } | 
                          |  | 21 | } | 
                          |  | 22 | function initDynSections(){ | 
                          |  | 23 | var divs=document.getElementsByTagName('div'); | 
                          |  | 24 | var sectionCounter=1; | 
                          |  | 25 | for(var i=0;i<divs.length-1;i++){ | 
                          |  | 26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ | 
                          |  | 27 | var header=divs[i]; | 
                          |  | 28 | var section=divs[i+1]; | 
                          |  | 29 | var button=header.firstChild; | 
                          |  | 30 | if (button!='IMG'){ | 
                          |  | 31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); | 
                          |  | 32 | button=document.createElement('img'); | 
                          |  | 33 | divs[i].insertBefore(button,divs[i].firstChild); | 
                          |  | 34 | } | 
                          |  | 35 | header.style.cursor='pointer'; | 
                          |  | 36 | header.onclick=changeDisplayState; | 
                          |  | 37 | header.id='dynheader'+sectionCounter; | 
                          |  | 38 | button.src='closed.gif'; | 
                          |  | 39 | section.id='dynsection'+sectionCounter; | 
                          |  | 40 | section.style.display='none'; | 
                          |  | 41 | section.style.marginLeft='14px'; | 
                          |  | 42 | sectionCounter++; | 
                          |  | 43 | } | 
                          |  | 44 | } | 
                          |  | 45 | } | 
                          |  | 46 | window.onload = initDynSections; | 
                          |  | 47 | --> | 
                          |  | 48 | </script> | 
            
                      
                        | 36 |  | <p><center><img src="classbdm_1_1mprod__inherit__graph.png" border="0" usemap="#bdm_1_1mprod__inherit__map" alt="Inheritance graph"></center> | 
                        | 37 |  | <map name="bdm_1_1mprod__inherit__map"> | 
                        | 38 |  | <area shape="rect" href="classbdm_1_1compositepdf.html" title="Abstract composition of pdfs, will be used for specific classes this abstract class..." alt="" coords="5,84,149,111"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="173,84,264,111"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="163,7,275,33"></map> | 
                        | 39 |  | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> | 
                      
                        |  | 76 |  | 
                        |  | 77 | <p><center><img src="classbdm_1_1mprod.png" usemap="#bdm::mprod_map" border="0" alt=""></center> | 
                        |  | 78 | <map name="bdm::mprod_map"> | 
                        |  | 79 | <area href="classbdm_1_1compositepdf.html" alt="bdm::compositepdf" shape="rect" coords="0,56,115,80"> | 
                        |  | 80 | <area href="classbdm_1_1mpdf.html" alt="bdm::mpdf" shape="rect" coords="125,56,240,80"> | 
                        |  | 81 | <area href="classbdm_1_1bdmroot.html" alt="bdm::bdmroot" shape="rect" coords="125,0,240,24"> | 
                        |  | 82 | </map> | 
                        |  | 83 | </div> | 
            
                      
                        | 56 |  | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">samplecond</a> (const vec &cond, double &ll)</td></tr> | 
                        | 57 |  |  | 
                        | 58 |  | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b493b5565dc6a5617927421d32697cc6"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="b493b5565dc6a5617927421d32697cc6" args="(const vec &cond, vec &ll, int N)" --> | 
                        | 59 |  | mat </td><td class="memItemRight" valign="bottom"><b>samplecond</b> (const vec &cond, vec &ll, int N)</td></tr> | 
                      
                        |  | 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#ee715a8013acf9892f6cb489db595555">samplecond</a> (const vec &cond)</td></tr> | 
                        |  | 101 |  | 
                        |  | 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">.  <a href="#ee715a8013acf9892f6cb489db595555"></a><br></td></tr> | 
                        |  | 103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d193dcc89fbc6f21979e0ced6d84568c"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="d193dcc89fbc6f21979e0ced6d84568c" args="(const vec &cond, int N)" --> | 
                        |  | 104 | mat </td><td class="memItemRight" valign="bottom"><b>samplecond</b> (const vec &cond, int N)</td></tr> | 
            
                      
                        | 169 |  |  | 
                        | 170 |  | <p> | 
                        | 171 |  | Ugly hack to help to discover if mpfs are not in proper order. Correct solution = check that explicitely. | 
                        | 172 |  | <p>References <a class="el" href="libBM_8h-source.html#l00272">bdm::epdf::dimension()</a>, <a class="el" href="emix_8h-source.html#l00168">dls</a>, <a class="el" href="libBM_8h-source.html#l00288">bdm::mpdf::ep</a>, <a class="el" href="emix_8h-source.html#l00166">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00508">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00506">bdm::compositepdf::n</a>.</p> | 
                      
                        |  | 206 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. | 
                        |  | 207 | <p> | 
                        |  | 208 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
                        |  | 209 | <table border="0" cellspacing="2" cellpadding="0"> | 
                        |  | 210 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> | 
                        |  | 211 | </table> | 
                        |  | 212 | </dl> | 
                        |  | 213 |  | 
                        |  | 214 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#f0c1db6fcbb3aae2dd6123884457a367">bdm::mpdf</a>.</p> | 
                        |  | 215 |  | 
                        |  | 216 | <p>References <a class="el" href="libBM_8h-source.html#l00281">bdm::epdf::dimension()</a>, <a class="el" href="emix_8h-source.html#l00168">dls</a>, <a class="el" href="libBM_8h-source.html#l00297">bdm::mpdf::ep</a>, <a class="el" href="emix_8h-source.html#l00166">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00528">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00526">bdm::compositepdf::n</a>.</p> | 
            
                      
                        | 201 |  | <p>References <a class="el" href="libBM_8cpp-source.html#l00059">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00508">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00506">bdm::compositepdf::n</a>.</p> | 
                        | 202 |  |  | 
                        | 203 |  | </div> | 
                        | 204 |  | </div><p> | 
                        | 205 |  | <a class="anchor" name="f0c1db6fcbb3aae2dd6123884457a367"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="f0c1db6fcbb3aae2dd6123884457a367" args="(const vec &cond)" --> | 
                        | 206 |  | <div class="memitem"> | 
                        | 207 |  | <div class="memproto"> | 
                        | 208 |  | <table class="memname"> | 
                        | 209 |  | <tr> | 
                        | 210 |  | <td class="memname">virtual vec bdm::mpdf::samplecond           </td> | 
                        | 211 |  | <td>(</td> | 
                        | 212 |  | <td class="paramtype">const vec & </td> | 
                        | 213 |  | <td class="paramname"> <em>cond</em>          </td> | 
                        | 214 |  | <td> ) </td> | 
                        | 215 |  | <td><code> [inline, virtual, inherited]</code></td> | 
                        | 216 |  | </tr> | 
                        | 217 |  | </table> | 
                        | 218 |  | </div> | 
                        | 219 |  | <div class="memdoc"> | 
                        | 220 |  |  | 
                        | 221 |  | <p> | 
                        | 222 |  | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. | 
                        | 223 |  | <p> | 
                        | 224 |  | <dl compact><dt><b>Parameters:</b></dt><dd> | 
                        | 225 |  | <table border="0" cellspacing="2" cellpadding="0"> | 
                        | 226 |  | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> | 
                        | 227 |  | </table> | 
                        | 228 |  | </dl> | 
                        | 229 |  |  | 
                        | 230 |  | <p>References <a class="el" href="libBM_8h-source.html#l00315">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00288">bdm::mpdf::ep</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> | 
                        | 231 |  |  | 
                        | 232 |  | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00143">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="libDS_8cpp-source.html#l00044">bdm::ArxDS::step()</a>.</p> | 
                      
                        |  | 245 | <p>References <a class="el" href="libBM_8cpp-source.html#l00069">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00528">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00526">bdm::compositepdf::n</a>.</p> | 
                        |  | 246 |  | 
                        |  | 247 | <p>Referenced by <a class="el" href="emix_8h-source.html#l00174">mprod()</a>.</p> |