| [33] | 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: mEF 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> | 
|---|
|  | 7 | <!-- Generated by Doxygen 1.5.3 --> | 
|---|
|  | 8 | <div class="tabs"> | 
|---|
|  | 9 | <ul> | 
|---|
|  | 10 | <li><a href="index.html"><span>Main Page</span></a></li> | 
|---|
|  | 11 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> | 
|---|
|  | 12 | <li><a href="files.html"><span>Files</span></a></li> | 
|---|
|  | 13 | <li><a href="pages.html"><span>Related Pages</span></a></li> | 
|---|
|  | 14 | </ul> | 
|---|
|  | 15 | </div> | 
|---|
|  | 16 | <div class="tabs"> | 
|---|
|  | 17 | <ul> | 
|---|
|  | 18 | <li><a href="annotated.html"><span>Class List</span></a></li> | 
|---|
|  | 19 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> | 
|---|
|  | 20 | <li><a href="functions.html"><span>Class Members</span></a></li> | 
|---|
|  | 21 | </ul> | 
|---|
|  | 22 | </div> | 
|---|
|  | 23 | <h1>mEF Class Reference</h1><!-- doxytag: class="mEF" --><!-- doxytag: inherits="mpdf" -->Exponential family model. | 
|---|
|  | 24 | <a href="#_details">More...</a> | 
|---|
|  | 25 | <p> | 
|---|
|  | 26 | <code>#include <<a class="el" href="libEF_8h-source.html">libEF.h</a>></code> | 
|---|
|  | 27 | <p> | 
|---|
|  | 28 | <div class="dynheader"> | 
|---|
|  | 29 | Inheritance diagram for mEF:</div> | 
|---|
|  | 30 | <div class="dynsection"> | 
|---|
|  | 31 | <p><center><img src="classmEF__inherit__graph.png" border="0" usemap="#mEF__inherit__map" alt="Inheritance graph"></center> | 
|---|
|  | 32 | <map name="mEF__inherit__map"> | 
|---|
|  | 33 | <area shape="rect" href="classmgamma.html" title="Gamma random walk." alt="" coords="5,161,91,188"><area shape="rect" href="classmlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="115,161,243,188"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="85,7,141,33"></map> | 
|---|
|  | 34 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> | 
|---|
|  | 35 | <div class="dynheader"> | 
|---|
|  | 36 | Collaboration diagram for mEF:</div> | 
|---|
|  | 37 | <div class="dynsection"> | 
|---|
|  | 38 | <p><center><img src="classmEF__coll__graph.png" border="0" usemap="#mEF__coll__map" alt="Collaboration graph"></center> | 
|---|
|  | 39 | <map name="mEF__coll__map"> | 
|---|
|  | 40 | <area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="5,204,61,231"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="21,7,59,33"><area shape="rect" title="rv\nrvc" alt="" coords="32,31,40,39"><area shape="rect" title="rv\nrvc" alt="" coords="27,200,35,208"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="56,105,107,132"><area shape="rect" title="rv" alt="" coords="43,31,51,39"><area shape="rect" title="rv" alt="" coords="72,101,80,109"><area shape="rect" title="ep" alt="" coords="71,129,79,137"><area shape="rect" title="ep" alt="" coords="36,200,44,208"></map> | 
|---|
|  | 41 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> | 
|---|
|  | 42 |  | 
|---|
|  | 43 | <p> | 
|---|
|  | 44 | <a href="classmEF-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> | 
|---|
|  | 45 | <tr><td></td></tr> | 
|---|
|  | 46 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> | 
|---|
|  | 47 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8bf51fe8654d7b83c8c8afeb19409d4f"></a><!-- doxytag: member="mEF::mEF" ref="8bf51fe8654d7b83c8c8afeb19409d4f" args="(const RV &rv0, const RV &rvc0)" --> | 
|---|
|  | 48 |  </td><td class="memItemRight" valign="bottom"><a class="el" href="classmEF.html#8bf51fe8654d7b83c8c8afeb19409d4f">mEF</a> (const <a class="el" href="classRV.html">RV</a> &rv0, const <a class="el" href="classRV.html">RV</a> &rvc0)</td></tr> | 
|---|
|  | 49 |  | 
|---|
|  | 50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> | 
|---|
|  | 51 | <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> | 
|---|
|  | 52 |  | 
|---|
|  | 53 | <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> | 
|---|
|  | 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mEF::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" --> | 
|---|
|  | 55 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0f95a0cc6ab40611f46804682446ed83">condition</a> (const vec &cond)</td></tr> | 
|---|
|  | 56 |  | 
|---|
|  | 57 | <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> | 
|---|
|  | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="mEF::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &dt, const vec &cond)" --> | 
|---|
|  | 59 | 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> | 
|---|
|  | 60 |  | 
|---|
|  | 61 | <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> | 
|---|
|  | 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="mEF::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" --> | 
|---|
|  | 63 | <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> | 
|---|
|  | 64 |  | 
|---|
|  | 65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> | 
|---|
|  | 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e17780ee5b2cfe05922a6c56af1462f8"></a><!-- doxytag: member="mEF::_epdf" ref="e17780ee5b2cfe05922a6c56af1462f8" args="()" --> | 
|---|
|  | 67 | <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> | 
|---|
|  | 68 |  | 
|---|
|  | 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> | 
|---|
|  | 70 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> | 
|---|
|  | 71 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mEF::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> | 
|---|
|  | 72 | <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> | 
|---|
|  | 73 |  | 
|---|
|  | 74 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> | 
|---|
|  | 75 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acb7dda792b3cd5576f39fa3129abbab"></a><!-- doxytag: member="mEF::rvc" ref="acb7dda792b3cd5576f39fa3129abbab" args="" --> | 
|---|
|  | 76 | <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> | 
|---|
|  | 77 |  | 
|---|
|  | 78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> | 
|---|
|  | 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7aa894208a32f3487827df6d5054424c"></a><!-- doxytag: member="mEF::ep" ref="7aa894208a32f3487827df6d5054424c" args="" --> | 
|---|
|  | 80 | <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> | 
|---|
|  | 81 |  | 
|---|
|  | 82 | <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> | 
|---|
|  | 83 | </table> | 
|---|
|  | 84 | <hr><a name="_details"></a><h2>Detailed Description</h2> | 
|---|
|  | 85 | Exponential family model. | 
|---|
|  | 86 | <p> | 
|---|
|  | 87 | More?... <hr><h2>Member Function Documentation</h2> | 
|---|
|  | 88 | <a class="anchor" name="b0193a350c97933ddf15b15a130da352"></a><!-- doxytag: member="mEF::samplecond" ref="b0193a350c97933ddf15b15a130da352" args="(vec &cond, double &ll)" --> | 
|---|
|  | 89 | <div class="memitem"> | 
|---|
|  | 90 | <div class="memproto"> | 
|---|
|  | 91 | <table class="memname"> | 
|---|
|  | 92 | <tr> | 
|---|
|  | 93 | <td class="memname">virtual vec mpdf::samplecond           </td> | 
|---|
|  | 94 | <td>(</td> | 
|---|
|  | 95 | <td class="paramtype">vec & </td> | 
|---|
|  | 96 | <td class="paramname"> <em>cond</em>, </td> | 
|---|
|  | 97 | </tr> | 
|---|
|  | 98 | <tr> | 
|---|
|  | 99 | <td class="paramkey"></td> | 
|---|
|  | 100 | <td></td> | 
|---|
|  | 101 | <td class="paramtype">double & </td> | 
|---|
|  | 102 | <td class="paramname"> <em>ll</em></td><td> </td> | 
|---|
|  | 103 | </tr> | 
|---|
|  | 104 | <tr> | 
|---|
|  | 105 | <td></td> | 
|---|
|  | 106 | <td>)</td> | 
|---|
|  | 107 | <td></td><td></td><td width="100%"><code> [inline, virtual, inherited]</code></td> | 
|---|
|  | 108 | </tr> | 
|---|
|  | 109 | </table> | 
|---|
|  | 110 | </div> | 
|---|
|  | 111 | <div class="memdoc"> | 
|---|
|  | 112 |  | 
|---|
|  | 113 | <p> | 
|---|
|  | 114 | 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>. | 
|---|
|  | 115 | <p> | 
|---|
|  | 116 | 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> | 
|---|
|  | 117 | <table border="0" cellspacing="2" cellpadding="0"> | 
|---|
|  | 118 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> | 
|---|
|  | 119 | <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> | 
|---|
|  | 120 | </table> | 
|---|
|  | 121 | </dl> | 
|---|
|  | 122 |  | 
|---|
|  | 123 | <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> | 
|---|
|  | 124 |  | 
|---|
|  | 125 | </div> | 
|---|
|  | 126 | </div><p> | 
|---|
|  | 127 | <hr>The documentation for this class was generated from the following file:<ul> | 
|---|
|  | 128 | <li>work/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul> | 
|---|
|  | 129 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 5 15:40:08 2008 for mixpp by  | 
|---|
|  | 130 | <a href="http://www.doxygen.org/index.html"> | 
|---|
|  | 131 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> | 
|---|
|  | 132 | </body> | 
|---|
|  | 133 | </html> | 
|---|