| 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"> | 
|---|
| 3 | <title>mixpp: bdm::mprod Class Reference</title> | 
|---|
| 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 --> | 
|---|
| 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> | 
|---|
| 49 | <div class="navigation" id="top"> | 
|---|
| 50 |   <div class="tabs"> | 
|---|
| 51 |     <ul> | 
|---|
| 52 |       <li><a href="main.html"><span>Main Page</span></a></li> | 
|---|
| 53 |       <li><a href="pages.html"><span>Related Pages</span></a></li> | 
|---|
| 54 |       <li class="current"><a href="annotated.html"><span>Classes</span></a></li> | 
|---|
| 55 |       <li><a href="files.html"><span>Files</span></a></li> | 
|---|
| 56 |     </ul> | 
|---|
| 57 |   </div> | 
|---|
| 58 |   <div class="tabs"> | 
|---|
| 59 |     <ul> | 
|---|
| 60 |       <li><a href="annotated.html"><span>Class List</span></a></li> | 
|---|
| 61 |       <li><a href="classes.html"><span>Class Index</span></a></li> | 
|---|
| 62 |       <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> | 
|---|
| 63 |       <li><a href="functions.html"><span>Class Members</span></a></li> | 
|---|
| 64 |     </ul> | 
|---|
| 65 |   </div> | 
|---|
| 66 |   <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mprod.html">mprod</a> | 
|---|
| 67 |   </div> | 
|---|
| 68 | </div> | 
|---|
| 69 | <div class="contents"> | 
|---|
| 70 | <h1>bdm::mprod Class Reference</h1><!-- doxytag: class="bdm::mprod" --><!-- doxytag: inherits="bdm::compositepdf,bdm::mpdf" -->Chain rule decomposition of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.   | 
|---|
| 71 | <a href="#_details">More...</a> | 
|---|
| 72 | <p> | 
|---|
| 73 | <code>#include <<a class="el" href="emix_8h_source.html">emix.h</a>></code> | 
|---|
| 74 | <p> | 
|---|
| 75 |  | 
|---|
| 76 | <p> | 
|---|
| 77 | <a href="classbdm_1_1mprod-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
| 78 | <tr><td></td></tr> | 
|---|
| 79 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> | 
|---|
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fed864cdd0e724d9133e6c6bfcacf94b"></a><!-- doxytag: member="bdm::mprod::mprod" ref="fed864cdd0e724d9133e6c6bfcacf94b" args="()" --> | 
|---|
| 81 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#fed864cdd0e724d9133e6c6bfcacf94b">mprod</a> ()</td></tr> | 
|---|
| 82 |  | 
|---|
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from list of mFacs,. <br></td></tr> | 
|---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="680c3e2d95b116c7cfb227c7f2984525"></a><!-- doxytag: member="bdm::mprod::mprod" ref="680c3e2d95b116c7cfb227c7f2984525" args="(Array< mpdf * > mFacs)" --> | 
|---|
| 85 |  </td><td class="memItemRight" valign="bottom"><b>mprod</b> (Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > mFacs)</td></tr> | 
|---|
| 86 |  | 
|---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8535540b53429e373f072ce1995bf79"></a><!-- doxytag: member="bdm::mprod::set_elements" ref="f8535540b53429e373f072ce1995bf79" args="(Array< mpdf * > mFacs, bool own=false)" --> | 
|---|
| 88 | void </td><td class="memItemRight" valign="bottom"><b>set_elements</b> (Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > mFacs, bool own=false)</td></tr> | 
|---|
| 89 |  | 
|---|
| 90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="800f21d94c919137608a2fd5c88719e2"></a><!-- doxytag: member="bdm::mprod::evallogcond" ref="800f21d94c919137608a2fd5c88719e2" args="(const vec &val, const vec &cond)" --> | 
|---|
| 91 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#800f21d94c919137608a2fd5c88719e2">evallogcond</a> (const vec &val, const vec &cond)</td></tr> | 
|---|
| 92 |  | 
|---|
| 93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. In some cases, this operation can be implemented efficiently. <br></td></tr> | 
|---|
| 94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e27b359d2572abfa4cc7d8f947848dab"></a><!-- doxytag: member="bdm::mprod::evallogcond_m" ref="e27b359d2572abfa4cc7d8f947848dab" args="(const mat &Dt, const vec &cond)" --> | 
|---|
| 95 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#e27b359d2572abfa4cc7d8f947848dab">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> | 
|---|
| 96 |  | 
|---|
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> | 
|---|
| 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e8cdde6056fe20551be1fa460841f5e2"></a><!-- doxytag: member="bdm::mprod::evallogcond_m" ref="e8cdde6056fe20551be1fa460841f5e2" args="(const Array< vec > &Dt, const vec &cond)" --> | 
|---|
| 99 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#e8cdde6056fe20551be1fa460841f5e2">evallogcond_m</a> (const Array< vec > &Dt, const vec &cond)</td></tr> | 
|---|
| 100 |  | 
|---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array<vec> version of evallogcond. <br></td></tr> | 
|---|
| 102 | <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> | 
|---|
| 103 |  | 
|---|
| 104 | <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_11.png">.  <a href="#ee715a8013acf9892f6cb489db595555"></a><br></td></tr> | 
|---|
| 105 | <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)" --> | 
|---|
| 106 | mat </td><td class="memItemRight" valign="bottom"><b>samplecond</b> (const vec &cond, int N)</td></tr> | 
|---|
| 107 |  | 
|---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#bfa7478f8df1de6d8cd4c349db512831">from_setting</a> (const Setting &set)</td></tr> | 
|---|
| 109 |  | 
|---|
| 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c73d39acc4378eee6a63155c3517d3c9">getrv</a> (bool checkoverlap=false)</td></tr> | 
|---|
| 111 |  | 
|---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">find common rv, flag  <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr> | 
|---|
| 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c71fc2c51f49d797e61f479f543c75ce"></a><!-- doxytag: member="bdm::mprod::setrvc" ref="c71fc2c51f49d797e61f479f543c75ce" args="(const RV &rv, RV &rvc)" --> | 
|---|
| 114 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c71fc2c51f49d797e61f479f543c75ce">setrvc</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv, <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a>)</td></tr> | 
|---|
| 115 |  | 
|---|
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr> | 
|---|
| 117 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::mprod::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> | 
|---|
| 118 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> | 
|---|
| 119 |  | 
|---|
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> | 
|---|
| 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::mprod::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> | 
|---|
| 122 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> | 
|---|
| 123 |  | 
|---|
| 124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> | 
|---|
| 125 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::mprod::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> | 
|---|
| 126 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> | 
|---|
| 127 |  | 
|---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> | 
|---|
| 129 | <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> | 
|---|
| 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#6e497d501331057309d2fddf63259d1a">samplecond_m</a> (const vec &cond, int N)</td></tr> | 
|---|
| 131 |  | 
|---|
| 132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns.  <a href="#6e497d501331057309d2fddf63259d1a"></a><br></td></tr> | 
|---|
| 133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db94784a9aacf74c65c5a014f6743530"></a><!-- doxytag: member="bdm::mprod::condition" ref="db94784a9aacf74c65c5a014f6743530" args="(const vec &cond)" --> | 
|---|
| 134 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">condition</a> (const vec &cond)</td></tr> | 
|---|
| 135 |  | 
|---|
| 136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update <code>ep</code> so that it represents this <a class="el" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> conditioned on <code>rvc</code> = cond. <br></td></tr> | 
|---|
| 137 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> | 
|---|
| 138 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mprod::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" --> | 
|---|
| 139 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr> | 
|---|
| 140 |  | 
|---|
| 141 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mprod::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> | 
|---|
| 142 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> | 
|---|
| 143 |  | 
|---|
| 144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mprod::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" --> | 
|---|
| 145 | int </td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr> | 
|---|
| 146 |  | 
|---|
| 147 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mprod::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> | 
|---|
| 148 | int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> | 
|---|
| 149 |  | 
|---|
| 150 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4c2d7d3d1d75cca84993e77867d1ffbe"></a><!-- doxytag: member="bdm::mprod::e" ref="4c2d7d3d1d75cca84993e77867d1ffbe" args="()" --> | 
|---|
| 151 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><b>e</b> ()</td></tr> | 
|---|
| 152 |  | 
|---|
| 153 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ba1b384c9c1cb18422a8ba32a5d019"></a><!-- doxytag: member="bdm::mprod::set_ep" ref="a4ba1b384c9c1cb18422a8ba32a5d019" args="(shared_ptr< epdf > ep)" --> | 
|---|
| 154 | void </td><td class="memItemRight" valign="bottom"><b>set_ep</b> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > ep)</td></tr> | 
|---|
| 155 |  | 
|---|
| 156 | <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> | 
|---|
| 157 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mprod::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> | 
|---|
| 158 | void </td><td class="memItemRight" valign="bottom"><b>set_rvc</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc0)</td></tr> | 
|---|
| 159 |  | 
|---|
| 160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mprod::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> | 
|---|
| 161 | void </td><td class="memItemRight" valign="bottom"><b>set_rv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> | 
|---|
| 162 |  | 
|---|
| 163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mprod::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> | 
|---|
| 164 | bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> | 
|---|
| 165 |  | 
|---|
| 166 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> | 
|---|
| 167 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eca722ed1b219727c6c0f8cbc6bf1e51"></a><!-- doxytag: member="bdm::mprod::epdfs" ref="eca722ed1b219727c6c0f8cbc6bf1e51" args="" --> | 
|---|
| 168 | Array< <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#eca722ed1b219727c6c0f8cbc6bf1e51">epdfs</a></td></tr> | 
|---|
| 169 |  | 
|---|
| 170 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointers to epdfs - shortcut to <a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a" title="Elements of composition.">mpdfs()</a>.posterior() <br></td></tr> | 
|---|
| 171 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acf679b3b1d48629c5a042d9ac0d973f"></a><!-- doxytag: member="bdm::mprod::dls" ref="acf679b3b1d48629c5a042d9ac0d973f" args="" --> | 
|---|
| 172 | Array< <a class="el" href="classbdm_1_1datalink__m2m.html">datalink_m2m</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#acf679b3b1d48629c5a042d9ac0d973f">dls</a></td></tr> | 
|---|
| 173 |  | 
|---|
| 174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Data link for each mpdfs. <br></td></tr> | 
|---|
| 175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8e758cab9b1a92928d8c93c921b6dc5"></a><!-- doxytag: member="bdm::mprod::dummy" ref="a8e758cab9b1a92928d8c93c921b6dc5" args="" --> | 
|---|
| 176 | <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#a8e758cab9b1a92928d8c93c921b6dc5">dummy</a></td></tr> | 
|---|
| 177 |  | 
|---|
| 178 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dummy ep <br></td></tr> | 
|---|
| 179 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::mprod::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" --> | 
|---|
| 180 | Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a">mpdfs</a></td></tr> | 
|---|
| 181 |  | 
|---|
| 182 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elements of composition. <br></td></tr> | 
|---|
| 183 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd642a575896ca95d46caf2dc607961b"></a><!-- doxytag: member="bdm::mprod::owning_mpdfs" ref="bd642a575896ca95d46caf2dc607961b" args="" --> | 
|---|
| 184 | bool </td><td class="memItemRight" valign="bottom"><b>owning_mpdfs</b></td></tr> | 
|---|
| 185 |  | 
|---|
| 186 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mprod::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> | 
|---|
| 187 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> | 
|---|
| 188 |  | 
|---|
| 189 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> | 
|---|
| 190 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mprod::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> | 
|---|
| 191 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a></td></tr> | 
|---|
| 192 |  | 
|---|
| 193 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> | 
|---|
| 194 | </table> | 
|---|
| 195 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
| 196 | Chain rule decomposition of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  | 
|---|
| 197 | <p> | 
|---|
| 198 | Probability density in the form of Chain-rule decomposition: \[ f(x_1,x_2,x_3) = f(x_1|x_2,x_3)f(x_2,x_3)f(x_3) \] Note that <hr><h2>Member Function Documentation</h2> | 
|---|
| 199 | <a class="anchor" name="bfa7478f8df1de6d8cd4c349db512831"></a><!-- doxytag: member="bdm::mprod::from_setting" ref="bfa7478f8df1de6d8cd4c349db512831" args="(const Setting &set)" --> | 
|---|
| 200 | <div class="memitem"> | 
|---|
| 201 | <div class="memproto"> | 
|---|
| 202 |       <table class="memname"> | 
|---|
| 203 |         <tr> | 
|---|
| 204 |           <td class="memname">void bdm::mprod::from_setting           </td> | 
|---|
| 205 |           <td>(</td> | 
|---|
| 206 |           <td class="paramtype">const Setting & </td> | 
|---|
| 207 |           <td class="paramname"> <em>set</em>          </td> | 
|---|
| 208 |           <td> ) </td> | 
|---|
| 209 |           <td><code> [inline, virtual]</code></td> | 
|---|
| 210 |         </tr> | 
|---|
| 211 |       </table> | 
|---|
| 212 | </div> | 
|---|
| 213 | <div class="memdoc"> | 
|---|
| 214 |  | 
|---|
| 215 | <p> | 
|---|
| 216 | Load from structure with elements: <div class="fragment"><pre class="fragment"> { <span class="keyword">class</span>=<span class="stringliteral">'mprod'</span>; | 
|---|
| 217 |    <a class="code" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a" title="Elements of composition.">mpdfs</a> = (..., ...);     <span class="comment">// list of mpdfs in the order of chain rule</span> | 
|---|
| 218 |  } | 
|---|
| 219 | </pre></div>  | 
|---|
| 220 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#30a0bceb948e287d497c578e371b1667">bdm::mpdf</a>.</p> | 
|---|
| 221 |  | 
|---|
| 222 | <p>References <a class="el" href="user__info_8h_source.html#l00387">bdm::UI::get()</a>.</p> | 
|---|
| 223 |  | 
|---|
| 224 | </div> | 
|---|
| 225 | </div><p> | 
|---|
| 226 | <a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::mprod::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" --> | 
|---|
| 227 | <div class="memitem"> | 
|---|
| 228 | <div class="memproto"> | 
|---|
| 229 |       <table class="memname"> | 
|---|
| 230 |         <tr> | 
|---|
| 231 |           <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv           </td> | 
|---|
| 232 |           <td>(</td> | 
|---|
| 233 |           <td class="paramtype">bool </td> | 
|---|
| 234 |           <td class="paramname"> <em>checkoverlap</em> = <code>false</code>          </td> | 
|---|
| 235 |           <td> ) </td> | 
|---|
| 236 |           <td><code> [inherited]</code></td> | 
|---|
| 237 |         </tr> | 
|---|
| 238 |       </table> | 
|---|
| 239 | </div> | 
|---|
| 240 | <div class="memdoc"> | 
|---|
| 241 |  | 
|---|
| 242 | <p> | 
|---|
| 243 | find common rv, flag  | 
|---|
| 244 | <p> | 
|---|
| 245 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| 246 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| 247 |     <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em> </td><td>modifies whether overlaps are acceptable </td></tr> | 
|---|
| 248 |   </table> | 
|---|
| 249 | </dl> | 
|---|
| 250 |  | 
|---|
| 251 | <p>References <a class="el" href="bdmbase_8cpp_source.html#l00085">bdm::RV::add()</a>, and <a class="el" href="bdmbase_8h_source.html#l00641">bdm::compositepdf::mpdfs</a>.</p> | 
|---|
| 252 |  | 
|---|
| 253 | <p>Referenced by <a class="el" href="merger_8h_source.html#l00088">bdm::merger_base::set_sources()</a>.</p> | 
|---|
| 254 |  | 
|---|
| 255 | </div> | 
|---|
| 256 | </div><p> | 
|---|
| 257 | <a class="anchor" name="ee715a8013acf9892f6cb489db595555"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="ee715a8013acf9892f6cb489db595555" args="(const vec &cond)" --> | 
|---|
| 258 | <div class="memitem"> | 
|---|
| 259 | <div class="memproto"> | 
|---|
| 260 |       <table class="memname"> | 
|---|
| 261 |         <tr> | 
|---|
| 262 |           <td class="memname">vec bdm::mprod::samplecond           </td> | 
|---|
| 263 |           <td>(</td> | 
|---|
| 264 |           <td class="paramtype">const vec & </td> | 
|---|
| 265 |           <td class="paramname"> <em>cond</em>          </td> | 
|---|
| 266 |           <td> ) </td> | 
|---|
| 267 |           <td><code> [inline, virtual]</code></td> | 
|---|
| 268 |         </tr> | 
|---|
| 269 |       </table> | 
|---|
| 270 | </div> | 
|---|
| 271 | <div class="memdoc"> | 
|---|
| 272 |  | 
|---|
| 273 | <p> | 
|---|
| 274 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">.  | 
|---|
| 275 | <p> | 
|---|
| 276 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| 277 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| 278 |     <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> | 
|---|
| 279 |   </table> | 
|---|
| 280 | </dl> | 
|---|
| 281 |  | 
|---|
| 282 | <p> | 
|---|
| 283 | Ugly hack to help to discover if mpfs are not in proper order. Correct solution = check that explicitely.  | 
|---|
| 284 | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#b024f2e636e5507c755de4a6df1f1e99">bdm::mpdf</a>.</p> | 
|---|
| 285 |  | 
|---|
| 286 | <p>References <a class="el" href="emix_8h_source.html#l00230">dls</a>, <a class="el" href="emix_8h_source.html#l00228">epdfs</a>, and <a class="el" href="bdmbase_8h_source.html#l00641">bdm::compositepdf::mpdfs</a>.</p> | 
|---|
| 287 |  | 
|---|
| 288 | </div> | 
|---|
| 289 | </div><p> | 
|---|
| 290 | <a class="anchor" name="6e497d501331057309d2fddf63259d1a"></a><!-- doxytag: member="bdm::mprod::samplecond_m" ref="6e497d501331057309d2fddf63259d1a" args="(const vec &cond, int N)" --> | 
|---|
| 291 | <div class="memitem"> | 
|---|
| 292 | <div class="memproto"> | 
|---|
| 293 |       <table class="memname"> | 
|---|
| 294 |         <tr> | 
|---|
| 295 |           <td class="memname">mat bdm::mpdf::samplecond_m           </td> | 
|---|
| 296 |           <td>(</td> | 
|---|
| 297 |           <td class="paramtype">const vec & </td> | 
|---|
| 298 |           <td class="paramname"> <em>cond</em>, </td> | 
|---|
| 299 |         </tr> | 
|---|
| 300 |         <tr> | 
|---|
| 301 |           <td class="paramkey"></td> | 
|---|
| 302 |           <td></td> | 
|---|
| 303 |           <td class="paramtype">int </td> | 
|---|
| 304 |           <td class="paramname"> <em>N</em></td><td> </td> | 
|---|
| 305 |         </tr> | 
|---|
| 306 |         <tr> | 
|---|
| 307 |           <td></td> | 
|---|
| 308 |           <td>)</td> | 
|---|
| 309 |           <td></td><td></td><td><code> [virtual, inherited]</code></td> | 
|---|
| 310 |         </tr> | 
|---|
| 311 |       </table> | 
|---|
| 312 | </div> | 
|---|
| 313 | <div class="memdoc"> | 
|---|
| 314 |  | 
|---|
| 315 | <p> | 
|---|
| 316 | Returns.  | 
|---|
| 317 | <p> | 
|---|
| 318 | <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| 319 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| 320 |     <tr><td valign="top"></td><td valign="top"><em>N</em> </td><td>samples from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">. </td></tr> | 
|---|
| 321 |     <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> | 
|---|
| 322 |   </table> | 
|---|
| 323 | </dl> | 
|---|
| 324 |  | 
|---|
| 325 | <p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p> | 
|---|
| 326 |  | 
|---|
| 327 | </div> | 
|---|
| 328 | </div><p> | 
|---|
| 329 | <hr>The documentation for this class was generated from the following file:<ul> | 
|---|
| 330 | <li><a class="el" href="emix_8h_source.html">emix.h</a></ul> | 
|---|
| 331 | </div> | 
|---|
| 332 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:07:01 2009 for mixpp by  | 
|---|
| 333 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| 334 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> | 
|---|
| 335 | </body> | 
|---|
| 336 | </html> | 
|---|