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> |
| 36 | <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="51,87,99,113"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="48,7,101,33"><area shape="rect" href="classmlstudent.html" title="mlstudent" alt="" coords="32,343,117,369"></map> |
58 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1bd939dbf8ec7b8066d3f18abba6822b"></a><!-- doxytag: member="mlnorm::samplecond" ref="1bd939dbf8ec7b8066d3f18abba6822b" args="(const vec &cond, double &lik)" --> |
59 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#1bd939dbf8ec7b8066d3f18abba6822b">samplecond</a> (const 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="06a3600a414b4b0f006ce9440f462817"></a><!-- doxytag: member="mlnorm::samplecond" ref="06a3600a414b4b0f006ce9440f462817" args="(const vec &cond, vec &lik, int n)" --> |
63 | | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#06a3600a414b4b0f006ce9440f462817">samplecond</a> (const 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> |
| 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2732ae47835dd25d5784bf08fde0a546"></a><!-- doxytag: member="mlnorm::_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="mlnorm::_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="mlnorm::_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 | |
| 76 | <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="#3f172b79ec4a5ebc87898a5381141f1b"></a><br></td></tr> |
| 77 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0e37163660f93df2a4d723cedb1da89c">samplecond</a> (const vec &cond, vec &ll, int N)</td></tr> |
| 78 | |
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#0e37163660f93df2a4d723cedb1da89c"></a><br></td></tr> |
74 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="mlnorm::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" --> |
75 | | <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> |
76 | | |
77 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
78 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e71ad4c66d5884c82d4a3b06b42fe32"></a><!-- doxytag: member="mlnorm::_rv" ref="1e71ad4c66d5884c82d4a3b06b42fe32" args="()" --> |
79 | | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#1e71ad4c66d5884c82d4a3b06b42fe32">_rv</a> ()</td></tr> |
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b7b2da35080cd15f1be365b805e7277e"></a><!-- doxytag: member="mlnorm::evalcond_m" ref="b7b2da35080cd15f1be365b805e7277e" args="(const mat &Dt, const vec &cond)" --> |
| 85 | virtual vec </td><td class="memItemRight" valign="bottom"><b>evalcond_m</b> (const mat &Dt, const vec &cond)</td></tr> |
| 86 | |
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15ef062183b1ccdf794732d5fa0b77cd"></a><!-- doxytag: member="mlnorm::_rvc" ref="15ef062183b1ccdf794732d5fa0b77cd" args="() const " --> |
| 88 | <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> |
| 89 | |
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71256ffb5fbd08f41d650e606a5bd585"></a><!-- doxytag: member="mlnorm::_rv" ref="71256ffb5fbd08f41d650e606a5bd585" args="() const " --> |
| 92 | <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> |
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b76ee2171ace4fb3ff95a131ae8fc421"></a><!-- doxytag: member="mlnorm::epdf" ref="b76ee2171ace4fb3ff95a131ae8fc421" args="" --> |
| 101 | <a class="el" href="classenorm.html">enorm</a>< sq_T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmlnorm.html#b76ee2171ace4fb3ff95a131ae8fc421">epdf</a></td></tr> |
| 102 | |
| 103 | <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> |
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="90a62528ca1ce79b6396ff899119da0f"></a><!-- doxytag: member="mlnorm::A" ref="90a62528ca1ce79b6396ff899119da0f" args="" --> |
| 105 | mat </td><td class="memItemRight" valign="bottom"><b>A</b></td></tr> |
| 106 | |
| 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ebab82017f10fbde483971bbf3b4004d"></a><!-- doxytag: member="mlnorm::mu_const" ref="ebab82017f10fbde483971bbf3b4004d" args="" --> |
| 108 | vec </td><td class="memItemRight" valign="bottom"><b>mu_const</b></td></tr> |
| 109 | |
| 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="17552bef9aeba92a42516fe7d39a5893"></a><!-- doxytag: member="mlnorm::_mu" ref="17552bef9aeba92a42516fe7d39a5893" args="" --> |
| 111 | vec & </td><td class="memItemRight" valign="bottom"><b>_mu</b></td></tr> |
| 112 | |
106 | | Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_78.png">. <hr>The documentation for this class was generated from the following file:<ul> |
| 137 | Mean value <img class="formulaInl" alt="$mu=A*rvc+mu_0$" src="form_78.png">. <hr><h2>Member Function Documentation</h2> |
| 138 | <a class="anchor" name="3f172b79ec4a5ebc87898a5381141f1b"></a><!-- doxytag: member="mlnorm::samplecond" ref="3f172b79ec4a5ebc87898a5381141f1b" args="(const vec &cond, double &ll)" --> |
| 139 | <div class="memitem"> |
| 140 | <div class="memproto"> |
| 141 | <table class="memname"> |
| 142 | <tr> |
| 143 | <td class="memname">virtual vec mpdf::samplecond </td> |
| 144 | <td>(</td> |
| 145 | <td class="paramtype">const vec & </td> |
| 146 | <td class="paramname"> <em>cond</em>, </td> |
| 147 | </tr> |
| 148 | <tr> |
| 149 | <td class="paramkey"></td> |
| 150 | <td></td> |
| 151 | <td class="paramtype">double & </td> |
| 152 | <td class="paramname"> <em>ll</em></td><td> </td> |
| 153 | </tr> |
| 154 | <tr> |
| 155 | <td></td> |
| 156 | <td>)</td> |
| 157 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
| 158 | </tr> |
| 159 | </table> |
| 160 | </div> |
| 161 | <div class="memdoc"> |
| 162 | |
| 163 | <p> |
| 164 | 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>. |
| 165 | <p> |
| 166 | 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> |
| 167 | <table border="0" cellspacing="2" cellpadding="0"> |
| 168 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
| 169 | <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> |
| 170 | </table> |
| 171 | </dl> |
| 172 | |
| 173 | <p>Reimplemented in <a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">mprod</a>.</p> |
| 174 | |
| 175 | <p>References <a class="el" href="libBM_8h-source.html#l00229">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00210">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> |
| 176 | |
| 177 | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00138">MPF< BM_T >::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">PF::bayes()</a>.</p> |
| 178 | |
| 179 | </div> |
| 180 | </div><p> |
| 181 | <a class="anchor" name="0e37163660f93df2a4d723cedb1da89c"></a><!-- doxytag: member="mlnorm::samplecond" ref="0e37163660f93df2a4d723cedb1da89c" args="(const vec &cond, vec &ll, int N)" --> |
| 182 | <div class="memitem"> |
| 183 | <div class="memproto"> |
| 184 | <table class="memname"> |
| 185 | <tr> |
| 186 | <td class="memname">virtual mat mpdf::samplecond </td> |
| 187 | <td>(</td> |
| 188 | <td class="paramtype">const vec & </td> |
| 189 | <td class="paramname"> <em>cond</em>, </td> |
| 190 | </tr> |
| 191 | <tr> |
| 192 | <td class="paramkey"></td> |
| 193 | <td></td> |
| 194 | <td class="paramtype">vec & </td> |
| 195 | <td class="paramname"> <em>ll</em>, </td> |
| 196 | </tr> |
| 197 | <tr> |
| 198 | <td class="paramkey"></td> |
| 199 | <td></td> |
| 200 | <td class="paramtype">int </td> |
| 201 | <td class="paramname"> <em>N</em></td><td> </td> |
| 202 | </tr> |
| 203 | <tr> |
| 204 | <td></td> |
| 205 | <td>)</td> |
| 206 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
| 207 | </tr> |
| 208 | </table> |
| 209 | </div> |
| 210 | <div class="memdoc"> |
| 211 | |
| 212 | <p> |
| 213 | Returns. |
| 214 | <p> |
| 215 | <dl compact><dt><b>Parameters:</b></dt><dd> |
| 216 | <table border="0" cellspacing="2" cellpadding="0"> |
| 217 | <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> |
| 218 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
| 219 | <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> |
| 220 | </table> |
| 221 | </dl> |
| 222 | |
| 223 | <p>Reimplemented in <a class="el" href="classmprod.html#e171c40e210539c2af01d6237785620b">mprod</a>.</p> |
| 224 | |
| 225 | <p>References <a class="el" href="libBM_8h-source.html#l00229">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00073">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00210">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, <a class="el" href="libBM_8h-source.html#l00206">mpdf::rv</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> |
| 226 | |
| 227 | </div> |
| 228 | </div><p> |
| 229 | <hr>The documentation for this class was generated from the following file:<ul> |