[32] | 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: mlnorm< sq_T > Class Template 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> |
---|
[32] | 24 | </div> |
---|
[91] | 25 | <div class="contents"> |
---|
[33] | 26 | <h1>mlnorm< sq_T > Class Template Reference</h1><!-- doxytag: class="mlnorm" --><!-- doxytag: inherits="mEF" -->Normal distributed linear function with linear function of mean value;. |
---|
[32] | 27 | <a href="#_details">More...</a> |
---|
| 28 | <p> |
---|
| 29 | <code>#include <<a class="el" href="libEF_8h-source.html">libEF.h</a>></code> |
---|
| 30 | <p> |
---|
[33] | 31 | <div class="dynheader"> |
---|
| 32 | Inheritance diagram for mlnorm< sq_T >:</div> |
---|
| 33 | <div class="dynsection"> |
---|
| 34 | <p><center><img src="classmlnorm__inherit__graph.png" border="0" usemap="#mlnorm_3_01sq__T_01_4__inherit__map" alt="Inheritance graph"></center> |
---|
| 35 | <map name="mlnorm_3_01sq__T_01_4__inherit__map"> |
---|
[91] | 36 | <area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="40,82,88,106"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="39,7,89,31"></map> |
---|
[33] | 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 38 | <div class="dynheader"> |
---|
| 39 | Collaboration diagram for mlnorm< sq_T >:</div> |
---|
| 40 | <div class="dynsection"> |
---|
| 41 | <p><center><img src="classmlnorm__coll__graph.png" border="0" usemap="#mlnorm_3_01sq__T_01_4__coll__map" alt="Collaboration graph"></center> |
---|
| 42 | <map name="mlnorm_3_01sq__T_01_4__coll__map"> |
---|
[91] | 43 | <area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="40,263,88,287"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="39,186,89,210"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="51,7,88,31"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="84,96,129,120"></map> |
---|
[33] | 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
[32] | 45 | |
---|
| 46 | <p> |
---|
| 47 | <a href="classmlnorm-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> |
---|
| 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f927203b3f31171c5c10ffc7caa797f5"></a><!-- doxytag: member="mlnorm::mlnorm" ref="f927203b3f31171c5c10ffc7caa797f5" args="(RV &rv, RV &rvc)" --> |
---|
[33] | 51 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#f927203b3f31171c5c10ffc7caa797f5">mlnorm</a> (<a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a>, <a class="el" href="classRV.html">RV</a> &<a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a>)</td></tr> |
---|
[32] | 52 | |
---|
| 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br></td></tr> |
---|
| 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b6749030c5d5abcb3eb6898f74cea3c0"></a><!-- doxytag: member="mlnorm::set_parameters" ref="b6749030c5d5abcb3eb6898f74cea3c0" args="(const mat &A, const sq_T &R)" --> |
---|
[33] | 55 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#b6749030c5d5abcb3eb6898f74cea3c0">set_parameters</a> (const mat &A, const sq_T &R)</td></tr> |
---|
[32] | 56 | |
---|
[33] | 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr> |
---|
[32] | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="decf3e3b5c8e0812e5b4dbe94fa2ae18"></a><!-- doxytag: member="mlnorm::samplecond" ref="decf3e3b5c8e0812e5b4dbe94fa2ae18" args="(vec &cond, double &lik)" --> |
---|
| 59 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#decf3e3b5c8e0812e5b4dbe94fa2ae18">samplecond</a> (vec &cond, double &lik)</td></tr> |
---|
| 60 | |
---|
| 61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Generate one sample of the posterior. <br></td></tr> |
---|
| 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="215fb88cc8b95d64cdefd6849abdd1e8"></a><!-- doxytag: member="mlnorm::samplecond" ref="215fb88cc8b95d64cdefd6849abdd1e8" args="(vec &cond, vec &lik, int n)" --> |
---|
| 63 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#215fb88cc8b95d64cdefd6849abdd1e8">samplecond</a> (vec &cond, vec &lik, int n)</td></tr> |
---|
| 64 | |
---|
| 65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Generate matrix of samples of the posterior. <br></td></tr> |
---|
| 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5232fc7e305eceab4e2bd6a8daa44195"></a><!-- doxytag: member="mlnorm::condition" ref="5232fc7e305eceab4e2bd6a8daa44195" args="(vec &cond)" --> |
---|
[33] | 67 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#5232fc7e305eceab4e2bd6a8daa44195">condition</a> (vec &cond)</td></tr> |
---|
[32] | 68 | |
---|
[33] | 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set value of <code>rvc</code> . Result of this operation is stored in <code><a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a></code> use function <code>_ep</code> to access it. <br></td></tr> |
---|
| 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mlnorm::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" --> |
---|
| 71 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0f95a0cc6ab40611f46804682446ed83">condition</a> (const vec &cond)</td></tr> |
---|
| 72 | |
---|
| 73 | <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> |
---|
| 74 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="mlnorm::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &dt, const vec &cond)" --> |
---|
| 75 | 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> |
---|
| 76 | |
---|
| 77 | <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> |
---|
| 78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="mlnorm::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" --> |
---|
| 79 | <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> |
---|
| 80 | |
---|
| 81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e17780ee5b2cfe05922a6c56af1462f8"></a><!-- doxytag: member="mlnorm::_epdf" ref="e17780ee5b2cfe05922a6c56af1462f8" args="()" --> |
---|
| 83 | <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> |
---|
| 84 | |
---|
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 86 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mlnorm::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> |
---|
| 88 | <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> |
---|
| 89 | |
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acb7dda792b3cd5576f39fa3129abbab"></a><!-- doxytag: member="mlnorm::rvc" ref="acb7dda792b3cd5576f39fa3129abbab" args="" --> |
---|
| 92 | <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> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
| 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7aa894208a32f3487827df6d5054424c"></a><!-- doxytag: member="mlnorm::ep" ref="7aa894208a32f3487827df6d5054424c" args="" --> |
---|
| 96 | <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> |
---|
| 97 | |
---|
| 98 | <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> |
---|
[32] | 99 | </table> |
---|
| 100 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 101 | <h3>template<class sq_T><br> |
---|
| 102 | class mlnorm< sq_T ></h3> |
---|
| 103 | |
---|
| 104 | Normal distributed linear function with linear function of mean value;. |
---|
| 105 | <p> |
---|
[91] | 106 | Mean value <img class="formulaInl" alt="$mu=A*rvc$" src="form_40.png">. <hr>The documentation for this class was generated from the following file:<ul> |
---|
[32] | 107 | <li>work/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul> |
---|
[91] | 108 | </div> |
---|
[106] | 109 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri May 9 23:06:44 2008 for mixpp by |
---|
[32] | 110 | <a href="http://www.doxygen.org/index.html"> |
---|
[91] | 111 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> |
---|
[32] | 112 | </body> |
---|
| 113 | </html> |
---|