| [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"> | 
|---|
 | 3 | <title>mixpp: mpdf Class Reference</title> | 
|---|
 | 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> | 
|---|
 | 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> | 
|---|
 | 6 | </head><body> | 
|---|
| [91] | 7 | <!-- Generated by Doxygen 1.5.5 --> | 
|---|
 | 8 | <div class="navigation" id="top"> | 
|---|
 | 9 |   <div class="tabs"> | 
|---|
 | 10 |     <ul> | 
|---|
 | 11 |       <li><a href="index.html"><span>Main Page</span></a></li> | 
|---|
 | 12 |       <li><a href="pages.html"><span>Related Pages</span></a></li> | 
|---|
 | 13 |       <li class="current"><a href="annotated.html"><span>Classes</span></a></li> | 
|---|
 | 14 |       <li><a href="files.html"><span>Files</span></a></li> | 
|---|
 | 15 |     </ul> | 
|---|
 | 16 |   </div> | 
|---|
 | 17 |   <div class="tabs"> | 
|---|
 | 18 |     <ul> | 
|---|
 | 19 |       <li><a href="annotated.html"><span>Class List</span></a></li> | 
|---|
 | 20 |       <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> | 
|---|
 | 21 |       <li><a href="functions.html"><span>Class Members</span></a></li> | 
|---|
 | 22 |     </ul> | 
|---|
 | 23 |   </div> | 
|---|
| [8] | 24 | </div> | 
|---|
| [91] | 25 | <div class="contents"> | 
|---|
| [8] | 26 | <h1>mpdf Class Reference</h1><!-- doxytag: class="mpdf" -->Conditional probability density, e.g. modeling some dependencies.   | 
|---|
 | 27 | <a href="#_details">More...</a> | 
|---|
 | 28 | <p> | 
|---|
 | 29 | <code>#include <<a class="el" href="libBM_8h-source.html">libBM.h</a>></code> | 
|---|
 | 30 | <p> | 
|---|
| [19] | 31 | <div class="dynheader"> | 
|---|
 | 32 | Inheritance diagram for mpdf:</div> | 
|---|
 | 33 | <div class="dynsection"> | 
|---|
 | 34 | <p><center><img src="classmpdf__inherit__graph.png" border="0" usemap="#mpdf__inherit__map" alt="Inheritance graph"></center> | 
|---|
| [33] | 35 | <map name="mpdf__inherit__map"> | 
|---|
| [91] | 36 | <area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="89,81,137,105"><area shape="rect" href="classmgamma.html" title="Gamma random walk." alt="" coords="16,156,91,180"><area shape="rect" href="classmlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="115,156,232,180"><area shape="rect" href="classmgamma__fix.html" title="Gamma random walk around a fixed point." alt="" coords="5,230,101,254"></map> | 
|---|
| [19] | 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> | 
|---|
 | 38 | <div class="dynheader"> | 
|---|
 | 39 | Collaboration diagram for mpdf:</div> | 
|---|
 | 40 | <div class="dynsection"> | 
|---|
 | 41 | <p><center><img src="classmpdf__coll__graph.png" border="0" usemap="#mpdf__coll__map" alt="Collaboration graph"></center> | 
|---|
 | 42 | <map name="mpdf__coll__map"> | 
|---|
| [91] | 43 | <area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="17,7,55,31"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="51,96,96,120"></map> | 
|---|
| [19] | 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> | 
|---|
| [8] | 45 |  | 
|---|
 | 46 | <p> | 
|---|
 | 47 | <a href="classmpdf-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
 | 48 | <tr><td></td></tr> | 
|---|
 | 49 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> | 
|---|
| [33] | 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#b0193a350c97933ddf15b15a130da352">samplecond</a> (vec &cond, double &ll)</td></tr> | 
|---|
| [8] | 51 |  | 
|---|
| [33] | 52 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  <a href="#b0193a350c97933ddf15b15a130da352"></a><br></td></tr> | 
|---|
| [32] | 53 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mpdf::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" --> | 
|---|
| [33] | 54 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0f95a0cc6ab40611f46804682446ed83">condition</a> (const vec &cond)</td></tr> | 
|---|
| [8] | 55 |  | 
|---|
| [33] | 56 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update <code>ep</code> so that it represents this <a class="el" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> conditioned on <code>rvc</code> = cond. <br></td></tr> | 
|---|
| [32] | 57 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="mpdf::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &dt, const vec &cond)" --> | 
|---|
| [33] | 58 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#80b738ece5bd4f8c4edaee4b38906f91">evalcond</a> (const vec &dt, const vec &cond)</td></tr> | 
|---|
| [32] | 59 |  | 
|---|
| [33] | 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classepdf.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> | 
|---|
| [32] | 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6788be9f3a888796499c5293a318fcfb"></a><!-- doxytag: member="mpdf::~mpdf" ref="6788be9f3a888796499c5293a318fcfb" args="()" --> | 
|---|
 | 62 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#6788be9f3a888796499c5293a318fcfb">~mpdf</a> ()</td></tr> | 
|---|
 | 63 |  | 
|---|
 | 64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> | 
|---|
 | 65 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="581ecf362185d37c08bb31cb9d046d6f"></a><!-- doxytag: member="mpdf::mpdf" ref="581ecf362185d37c08bb31cb9d046d6f" args="(const RV &rv0, const RV &rvc0)" --> | 
|---|
 | 66 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#581ecf362185d37c08bb31cb9d046d6f">mpdf</a> (const <a class="el" href="classRV.html">RV</a> &rv0, const <a class="el" href="classRV.html">RV</a> &rvc0)</td></tr> | 
|---|
 | 67 |  | 
|---|
 | 68 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> | 
|---|
| [33] | 69 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="mpdf::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" --> | 
|---|
 | 70 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#ec9c850305984582548e8deb64f0ffe8">_rvc</a> ()</td></tr> | 
|---|
 | 71 |  | 
|---|
 | 72 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> | 
|---|
 | 73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e17780ee5b2cfe05922a6c56af1462f8"></a><!-- doxytag: member="mpdf::_epdf" ref="e17780ee5b2cfe05922a6c56af1462f8" args="()" --> | 
|---|
 | 74 | <a class="el" href="classepdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#e17780ee5b2cfe05922a6c56af1462f8">_epdf</a> ()</td></tr> | 
|---|
 | 75 |  | 
|---|
 | 76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> | 
|---|
| [32] | 77 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> | 
|---|
 | 78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mpdf::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> | 
|---|
 | 79 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a></td></tr> | 
|---|
 | 80 |  | 
|---|
 | 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> | 
|---|
 | 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acb7dda792b3cd5576f39fa3129abbab"></a><!-- doxytag: member="mpdf::rvc" ref="acb7dda792b3cd5576f39fa3129abbab" args="" --> | 
|---|
 | 83 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a></td></tr> | 
|---|
 | 84 |  | 
|---|
 | 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> | 
|---|
 | 86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7aa894208a32f3487827df6d5054424c"></a><!-- doxytag: member="mpdf::ep" ref="7aa894208a32f3487827df6d5054424c" args="" --> | 
|---|
 | 87 | <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#7aa894208a32f3487827df6d5054424c">ep</a></td></tr> | 
|---|
 | 88 |  | 
|---|
 | 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer to internal <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> <br></td></tr> | 
|---|
| [8] | 90 | </table> | 
|---|
 | 91 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
 | 92 | Conditional probability density, e.g. modeling some dependencies. <hr><h2>Member Function Documentation</h2> | 
|---|
| [33] | 93 | <a class="anchor" name="b0193a350c97933ddf15b15a130da352"></a><!-- doxytag: member="mpdf::samplecond" ref="b0193a350c97933ddf15b15a130da352" args="(vec &cond, double &ll)" --> | 
|---|
| [8] | 94 | <div class="memitem"> | 
|---|
 | 95 | <div class="memproto"> | 
|---|
 | 96 |       <table class="memname"> | 
|---|
 | 97 |         <tr> | 
|---|
 | 98 |           <td class="memname">virtual vec mpdf::samplecond           </td> | 
|---|
 | 99 |           <td>(</td> | 
|---|
 | 100 |           <td class="paramtype">vec & </td> | 
|---|
 | 101 |           <td class="paramname"> <em>cond</em>, </td> | 
|---|
 | 102 |         </tr> | 
|---|
 | 103 |         <tr> | 
|---|
 | 104 |           <td class="paramkey"></td> | 
|---|
 | 105 |           <td></td> | 
|---|
| [33] | 106 |           <td class="paramtype">double & </td> | 
|---|
 | 107 |           <td class="paramname"> <em>ll</em></td><td> </td> | 
|---|
| [8] | 108 |         </tr> | 
|---|
 | 109 |         <tr> | 
|---|
 | 110 |           <td></td> | 
|---|
 | 111 |           <td>)</td> | 
|---|
 | 112 |           <td></td><td></td><td width="100%"><code> [inline, virtual]</code></td> | 
|---|
 | 113 |         </tr> | 
|---|
 | 114 |       </table> | 
|---|
 | 115 | </div> | 
|---|
 | 116 | <div class="memdoc"> | 
|---|
 | 117 |  | 
|---|
 | 118 | <p> | 
|---|
 | 119 | Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  | 
|---|
 | 120 | <p> | 
|---|
| [33] | 121 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. <dl compact><dt><b>Parameters:</b></dt><dd> | 
|---|
| [32] | 122 |   <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
| [33] | 123 |     <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> | 
|---|
 | 124 |     <tr><td valign="top"></td><td valign="top"><em>ll</em> </td><td>is a return value of log-likelihood of the sample. </td></tr> | 
|---|
| [32] | 125 |   </table> | 
|---|
 | 126 | </dl> | 
|---|
 | 127 |  | 
|---|
| [33] | 128 | <p>Reimplemented in <a class="el" href="classmlnorm.html#decf3e3b5c8e0812e5b4dbe94fa2ae18">mlnorm< sq_T ></a>, and <a class="el" href="classmgamma.html#9f40dc43885085fad8e3d6652b79e139">mgamma</a>.</p> | 
|---|
 | 129 |  | 
|---|
| [91] | 130 | <p>References <a class="el" href="libBM_8h-source.html#l00167">condition()</a>, <a class="el" href="libBM_8h-source.html#l00159">ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> | 
|---|
 | 131 |  | 
|---|
 | 132 | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00137">MPF< BM_T >::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">PF::bayes()</a>.</p> | 
|---|
 | 133 |  | 
|---|
| [8] | 134 | </div> | 
|---|
 | 135 | </div><p> | 
|---|
 | 136 | <hr>The documentation for this class was generated from the following file:<ul> | 
|---|
| [19] | 137 | <li>work/mixpp/bdm/stat/<a class="el" href="libBM_8h-source.html">libBM.h</a></ul> | 
|---|
| [91] | 138 | </div> | 
|---|
| [99] | 139 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri May 9 16:15:27 2008 for mixpp by  | 
|---|
| [8] | 140 | <a href="http://www.doxygen.org/index.html"> | 
|---|
| [91] | 141 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> | 
|---|
| [8] | 142 | </body> | 
|---|
 | 143 | </html> | 
|---|