[210] | 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: mlstudent 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.6 --> |
---|
| 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> |
---|
[219] | 13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[210] | 14 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 15 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 16 | </ul> |
---|
| 17 | </div> |
---|
| 18 | <div class="tabs"> |
---|
| 19 | <ul> |
---|
| 20 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 21 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 22 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 23 | </ul> |
---|
| 24 | </div> |
---|
| 25 | </div> |
---|
| 26 | <div class="contents"> |
---|
| 27 | <h1>mlstudent Class Reference</h1><!-- doxytag: class="mlstudent" --><!-- doxytag: inherits="mlnorm< ldmat >" --><code>#include <<a class="el" href="libEF_8h-source.html">libEF.h</a>></code> |
---|
| 28 | <p> |
---|
| 29 | <div class="dynheader"> |
---|
| 30 | Inheritance diagram for mlstudent:</div> |
---|
| 31 | <div class="dynsection"> |
---|
| 32 | <p><center><img src="classmlstudent__inherit__graph.png" border="0" usemap="#mlstudent__inherit__map" alt="Inheritance graph"></center> |
---|
| 33 | <map name="mlstudent__inherit__map"> |
---|
| 34 | <area shape="rect" href="classmlnorm.html" title="mlnorm\< ldmat \>" alt="" coords="5,263,144,289"><area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="31,87,79,113"><area shape="rect" href="classmlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="76,167,207,193"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="28,7,81,33"></map> |
---|
| 35 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 36 | <div class="dynheader"> |
---|
| 37 | Collaboration diagram for mlstudent:</div> |
---|
| 38 | <div class="dynsection"> |
---|
| 39 | <p><center><img src="classmlstudent__coll__graph.png" border="0" usemap="#mlstudent__coll__map" alt="Collaboration graph"></center> |
---|
| 40 | <map name="mlstudent__coll__map"> |
---|
| 41 | <area shape="rect" href="classmlnorm.html" title="mlnorm\< ldmat \>" alt="" coords="141,527,280,553"><area shape="rect" href="classmEF.html" title="Exponential family model." alt="" coords="111,300,159,327"><area shape="rect" href="classmlnorm.html" title="Normal distributed linear function with linear function of mean value;." alt="" coords="5,396,136,423"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="108,204,161,231"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="139,7,176,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="173,105,221,132"><area shape="rect" href="classeEF.html" title="General conjugate exponential family posterior density." alt="" coords="189,204,232,231"><area shape="rect" href="classenorm.html" title="enorm\< ldmat \>" alt="" coords="212,396,343,423"><area shape="rect" href="classenorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix." alt="" coords="244,300,367,327"><area shape="rect" href="classldmat.html" title="Matrix stored in LD form, (commonly known as UD)." alt="" coords="391,300,449,327"><area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square-root form..." alt="" coords="389,204,451,231"></map> |
---|
| 42 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 43 | |
---|
| 44 | <p> |
---|
| 45 | <a href="classmlstudent-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 46 | <tr><td></td></tr> |
---|
| 47 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 48 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4bacc99b1427f7001e47e070c91fe877"></a><!-- doxytag: member="mlstudent::mlstudent" ref="4bacc99b1427f7001e47e070c91fe877" args="(const RV &rv0, const RV &rvc0)" --> |
---|
| 49 | </td><td class="memItemRight" valign="bottom"><b>mlstudent</b> (const <a class="el" href="classRV.html">RV</a> &rv0, const <a class="el" href="classRV.html">RV</a> &rvc0)</td></tr> |
---|
| 50 | |
---|
| 51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="160b9a825dac16d6b8a79ba15ddb2cfa"></a><!-- doxytag: member="mlstudent::set_parameters" ref="160b9a825dac16d6b8a79ba15ddb2cfa" args="(const mat &A0, const vec &mu0, const ldmat &R0, const ldmat &Lambda0)" --> |
---|
| 52 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (const mat &A0, const vec &mu0, const <a class="el" href="classldmat.html">ldmat</a> &R0, const <a class="el" href="classldmat.html">ldmat</a> &Lambda0)</td></tr> |
---|
| 53 | |
---|
| 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d153460ae0180f4bc7f28301f5cde876"></a><!-- doxytag: member="mlstudent::condition" ref="d153460ae0180f4bc7f28301f5cde876" args="(const vec &cond)" --> |
---|
| 55 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlstudent.html#d153460ae0180f4bc7f28301f5cde876">condition</a> (const vec &cond)</td></tr> |
---|
| 56 | |
---|
| 57 | <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> |
---|
| 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f95dfce0b500636a44ecd7e5210de999"></a><!-- doxytag: member="mlstudent::set_parameters" ref="f95dfce0b500636a44ecd7e5210de999" args="(const mat &A, const vec &mu0, const ldmat &R)" --> |
---|
| 59 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#f95dfce0b500636a44ecd7e5210de999">set_parameters</a> (const mat &A, const vec &mu0, const <a class="el" href="classldmat.html">ldmat</a> &R)</td></tr> |
---|
| 60 | |
---|
| 61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set <code>A</code> and <code>R</code>. <br></td></tr> |
---|
| 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2732ae47835dd25d5784bf08fde0a546"></a><!-- doxytag: member="mlstudent::_mu_const" ref="2732ae47835dd25d5784bf08fde0a546" args="()" --> |
---|
| 63 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#2732ae47835dd25d5784bf08fde0a546">_mu_const</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="65ec3840c21b21102896bfd2282b47b3"></a><!-- doxytag: member="mlstudent::_A" ref="65ec3840c21b21102896bfd2282b47b3" args="()" --> |
---|
| 67 | mat & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#65ec3840c21b21102896bfd2282b47b3">_A</a> ()</td></tr> |
---|
| 68 | |
---|
| 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ff2b03fbb5e1133a5fe1bf831939f63"></a><!-- doxytag: member="mlstudent::_R" ref="3ff2b03fbb5e1133a5fe1bf831939f63" args="()" --> |
---|
| 71 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#3ff2b03fbb5e1133a5fe1bf831939f63">_R</a> ()</td></tr> |
---|
| 72 | |
---|
| 73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 74 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">samplecond</a> (const vec &cond, double &ll)</td></tr> |
---|
| 75 | |
---|
[234] | 76 | <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="#3f172b79ec4a5ebc87898a5381141f1b"></a><br></td></tr> |
---|
[219] | 77 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#b1dae6171ee39a6a05976c7b1007a3c5">samplecond_m</a> (const vec &cond, vec &ll, int N)</td></tr> |
---|
[210] | 78 | |
---|
[219] | 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#b1dae6171ee39a6a05976c7b1007a3c5"></a><br></td></tr> |
---|
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ef8a6374029d990a678782f6decebbe"></a><!-- doxytag: member="mlstudent::evallogcond" ref="2ef8a6374029d990a678782f6decebbe" args="(const vec &dt, const vec &cond)" --> |
---|
| 81 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#2ef8a6374029d990a678782f6decebbe">evallogcond</a> (const vec &dt, const vec &cond)</td></tr> |
---|
[210] | 82 | |
---|
| 83 | <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> |
---|
[219] | 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="95fcff214848f66f1b489459370573fa"></a><!-- doxytag: member="mlstudent::evallogcond_m" ref="95fcff214848f66f1b489459370573fa" args="(const mat &Dt, const vec &cond)" --> |
---|
| 85 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#95fcff214848f66f1b489459370573fa">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> |
---|
[210] | 86 | |
---|
[219] | 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
[210] | 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15ef062183b1ccdf794732d5fa0b77cd"></a><!-- doxytag: member="mlstudent::_rvc" ref="15ef062183b1ccdf794732d5fa0b77cd" args="() const " --> |
---|
| 89 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#15ef062183b1ccdf794732d5fa0b77cd">_rvc</a> () const </td></tr> |
---|
| 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71256ffb5fbd08f41d650e606a5bd585"></a><!-- doxytag: member="mlstudent::_rv" ref="71256ffb5fbd08f41d650e606a5bd585" args="() const " --> |
---|
| 93 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#71256ffb5fbd08f41d650e606a5bd585">_rv</a> () const </td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e17780ee5b2cfe05922a6c56af1462f8"></a><!-- doxytag: member="mlstudent::_epdf" ref="e17780ee5b2cfe05922a6c56af1462f8" args="()" --> |
---|
| 97 | <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> |
---|
| 98 | |
---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[234] | 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75ded3b0f657cd7da6590691a810963c"></a><!-- doxytag: member="mlstudent::_e" ref="75ded3b0f657cd7da6590691a810963c" args="()" --> |
---|
| 101 | <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#75ded3b0f657cd7da6590691a810963c">_e</a> ()</td></tr> |
---|
| 102 | |
---|
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[210] | 104 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="37bc739863e41fcd6dc4645bdca8099c"></a><!-- doxytag: member="mlstudent::Lambda" ref="37bc739863e41fcd6dc4645bdca8099c" args="" --> |
---|
| 106 | <a class="el" href="classldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><b>Lambda</b></td></tr> |
---|
| 107 | |
---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01ca0dd5fdb399b0941a86f30a95d1ba"></a><!-- doxytag: member="mlstudent::_R" ref="01ca0dd5fdb399b0941a86f30a95d1ba" args="" --> |
---|
| 109 | <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><b>_R</b></td></tr> |
---|
| 110 | |
---|
| 111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9b6b64156d06ccf57e5f549a6bf9dc96"></a><!-- doxytag: member="mlstudent::Re" ref="9b6b64156d06ccf57e5f549a6bf9dc96" args="" --> |
---|
| 112 | <a class="el" href="classldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><b>Re</b></td></tr> |
---|
| 113 | |
---|
| 114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b76ee2171ace4fb3ff95a131ae8fc421"></a><!-- doxytag: member="mlstudent::epdf" ref="b76ee2171ace4fb3ff95a131ae8fc421" args="" --> |
---|
| 115 | <a class="el" href="classenorm.html">enorm</a>< <a class="el" href="classldmat.html">ldmat</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#b76ee2171ace4fb3ff95a131ae8fc421">epdf</a></td></tr> |
---|
| 116 | |
---|
| 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> that arise by conditioning on <code>rvc</code>. <br></td></tr> |
---|
| 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="90a62528ca1ce79b6396ff899119da0f"></a><!-- doxytag: member="mlstudent::A" ref="90a62528ca1ce79b6396ff899119da0f" args="" --> |
---|
| 119 | mat </td><td class="memItemRight" valign="bottom"><b>A</b></td></tr> |
---|
| 120 | |
---|
| 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ebab82017f10fbde483971bbf3b4004d"></a><!-- doxytag: member="mlstudent::mu_const" ref="ebab82017f10fbde483971bbf3b4004d" args="" --> |
---|
| 122 | vec </td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr> |
---|
| 123 | |
---|
| 124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="17552bef9aeba92a42516fe7d39a5893"></a><!-- doxytag: member="mlstudent::_mu" ref="17552bef9aeba92a42516fe7d39a5893" args="" --> |
---|
| 125 | vec & </td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr> |
---|
| 126 | |
---|
| 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mlstudent::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> |
---|
| 128 | <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> |
---|
| 129 | |
---|
| 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> |
---|
| 131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acb7dda792b3cd5576f39fa3129abbab"></a><!-- doxytag: member="mlstudent::rvc" ref="acb7dda792b3cd5576f39fa3129abbab" args="" --> |
---|
| 132 | <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> |
---|
| 133 | |
---|
| 134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
| 135 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7aa894208a32f3487827df6d5054424c"></a><!-- doxytag: member="mlstudent::ep" ref="7aa894208a32f3487827df6d5054424c" args="" --> |
---|
| 136 | <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> |
---|
| 137 | |
---|
| 138 | <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> |
---|
| 139 | <tr><td colspan="2"><br><h2>Friends</h2></td></tr> |
---|
| 140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1917009347bb410f73bf827df8767b09"></a><!-- doxytag: member="mlstudent::operator<<" ref="1917009347bb410f73bf827df8767b09" args="(std::ostream &os, mlnorm< sq_M > &ml)" --> |
---|
| 141 | std::ostream & </td><td class="memItemRight" valign="bottom"><b>operator<<</b> (std::ostream &os, <a class="el" href="classmlnorm.html">mlnorm</a>< sq_M > &ml)</td></tr> |
---|
| 142 | |
---|
| 143 | </table> |
---|
| 144 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 145 | (Approximate) Student t density with linear function of mean value <hr><h2>Member Function Documentation</h2> |
---|
| 146 | <a class="anchor" name="3f172b79ec4a5ebc87898a5381141f1b"></a><!-- doxytag: member="mlstudent::samplecond" ref="3f172b79ec4a5ebc87898a5381141f1b" args="(const vec &cond, double &ll)" --> |
---|
| 147 | <div class="memitem"> |
---|
| 148 | <div class="memproto"> |
---|
| 149 | <table class="memname"> |
---|
| 150 | <tr> |
---|
| 151 | <td class="memname">virtual vec mpdf::samplecond </td> |
---|
| 152 | <td>(</td> |
---|
| 153 | <td class="paramtype">const vec & </td> |
---|
| 154 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 155 | </tr> |
---|
| 156 | <tr> |
---|
| 157 | <td class="paramkey"></td> |
---|
| 158 | <td></td> |
---|
| 159 | <td class="paramtype">double & </td> |
---|
| 160 | <td class="paramname"> <em>ll</em></td><td> </td> |
---|
| 161 | </tr> |
---|
| 162 | <tr> |
---|
| 163 | <td></td> |
---|
| 164 | <td>)</td> |
---|
| 165 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 166 | </tr> |
---|
| 167 | </table> |
---|
| 168 | </div> |
---|
| 169 | <div class="memdoc"> |
---|
| 170 | |
---|
| 171 | <p> |
---|
[234] | 172 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. |
---|
[210] | 173 | <p> |
---|
[234] | 174 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
[210] | 175 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 176 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 177 | <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> |
---|
| 178 | </table> |
---|
| 179 | </dl> |
---|
| 180 | |
---|
| 181 | <p>Reimplemented in <a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">mprod</a>.</p> |
---|
| 182 | |
---|
[234] | 183 | <p>References <a class="el" href="libBM_8h-source.html#l00239">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00222">mpdf::ep</a>, <a class="el" href="classepdf.html#e1996af1da1fa1214270066a96ca113e">epdf::evallog()</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> |
---|
[210] | 184 | |
---|
[234] | 185 | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00147">MPF< BM_T >::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">PF::bayes()</a>.</p> |
---|
[210] | 186 | |
---|
| 187 | </div> |
---|
| 188 | </div><p> |
---|
[219] | 189 | <a class="anchor" name="b1dae6171ee39a6a05976c7b1007a3c5"></a><!-- doxytag: member="mlstudent::samplecond_m" ref="b1dae6171ee39a6a05976c7b1007a3c5" args="(const vec &cond, vec &ll, int N)" --> |
---|
[210] | 190 | <div class="memitem"> |
---|
| 191 | <div class="memproto"> |
---|
| 192 | <table class="memname"> |
---|
| 193 | <tr> |
---|
[219] | 194 | <td class="memname">virtual mat mpdf::samplecond_m </td> |
---|
[210] | 195 | <td>(</td> |
---|
| 196 | <td class="paramtype">const vec & </td> |
---|
| 197 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 198 | </tr> |
---|
| 199 | <tr> |
---|
| 200 | <td class="paramkey"></td> |
---|
| 201 | <td></td> |
---|
| 202 | <td class="paramtype">vec & </td> |
---|
| 203 | <td class="paramname"> <em>ll</em>, </td> |
---|
| 204 | </tr> |
---|
| 205 | <tr> |
---|
| 206 | <td class="paramkey"></td> |
---|
| 207 | <td></td> |
---|
| 208 | <td class="paramtype">int </td> |
---|
| 209 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 210 | </tr> |
---|
| 211 | <tr> |
---|
| 212 | <td></td> |
---|
| 213 | <td>)</td> |
---|
| 214 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 215 | </tr> |
---|
| 216 | </table> |
---|
| 217 | </div> |
---|
| 218 | <div class="memdoc"> |
---|
| 219 | |
---|
| 220 | <p> |
---|
| 221 | Returns. |
---|
| 222 | <p> |
---|
| 223 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 224 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 225 | <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_10.png">. </td></tr> |
---|
| 226 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 227 | <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> |
---|
| 228 | </table> |
---|
| 229 | </dl> |
---|
| 230 | |
---|
[234] | 231 | <p>References <a class="el" href="libBM_8h-source.html#l00239">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00077">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00222">mpdf::ep</a>, <a class="el" href="classepdf.html#e1996af1da1fa1214270066a96ca113e">epdf::evallog()</a>, <a class="el" href="libBM_8h-source.html#l00218">mpdf::rv</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> |
---|
[210] | 232 | |
---|
| 233 | </div> |
---|
| 234 | </div><p> |
---|
| 235 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 236 | <li>work/git/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul> |
---|
| 237 | </div> |
---|
[234] | 238 | <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 15 10:51:24 2009 for mixpp by |
---|
[210] | 239 | <a href="http://www.doxygen.org/index.html"> |
---|
| 240 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
| 241 | </body> |
---|
| 242 | </html> |
---|