66 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f40dc43885085fad8e3d6652b79e139"></a><!-- doxytag: member="mgamma_fix::samplecond" ref="9f40dc43885085fad8e3d6652b79e139" args="(vec &cond, double &lik)" --> |
67 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmgamma.html#9f40dc43885085fad8e3d6652b79e139">samplecond</a> (vec &cond, double &lik)</td></tr> |
68 | | |
69 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Generate one sample of the posterior. <br></td></tr> |
70 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e9d52749793f40aad85b70c6db4435ae"></a><!-- doxytag: member="mgamma_fix::samplecond" ref="e9d52749793f40aad85b70c6db4435ae" args="(vec &cond, vec &lik, int n)" --> |
71 | | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmgamma.html#e9d52749793f40aad85b70c6db4435ae">samplecond</a> (vec &cond, vec &lik, int n)</td></tr> |
72 | | |
73 | | <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">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">samplecond</a> (const vec &cond, double &ll)</td></tr> |
| 67 | |
| 68 | <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> |
| 69 | <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> |
| 70 | |
| 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#0e37163660f93df2a4d723cedb1da89c"></a><br></td></tr> |
128 | | The standard deviation of the walk is then: <img class="formulaInl" alt="$\mu/\sqrt(k)$" src="form_13.png">. <hr>The documentation for this class was generated from the following file:<ul> |
| 130 | The standard deviation of the walk is then: <img class="formulaInl" alt="$\mu/\sqrt(k)$" src="form_13.png">. <hr><h2>Member Function Documentation</h2> |
| 131 | <a class="anchor" name="3f172b79ec4a5ebc87898a5381141f1b"></a><!-- doxytag: member="mgamma_fix::samplecond" ref="3f172b79ec4a5ebc87898a5381141f1b" args="(const vec &cond, double &ll)" --> |
| 132 | <div class="memitem"> |
| 133 | <div class="memproto"> |
| 134 | <table class="memname"> |
| 135 | <tr> |
| 136 | <td class="memname">virtual vec mpdf::samplecond </td> |
| 137 | <td>(</td> |
| 138 | <td class="paramtype">const vec & </td> |
| 139 | <td class="paramname"> <em>cond</em>, </td> |
| 140 | </tr> |
| 141 | <tr> |
| 142 | <td class="paramkey"></td> |
| 143 | <td></td> |
| 144 | <td class="paramtype">double & </td> |
| 145 | <td class="paramname"> <em>ll</em></td><td> </td> |
| 146 | </tr> |
| 147 | <tr> |
| 148 | <td></td> |
| 149 | <td>)</td> |
| 150 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
| 151 | </tr> |
| 152 | </table> |
| 153 | </div> |
| 154 | <div class="memdoc"> |
| 155 | |
| 156 | <p> |
| 157 | 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>. |
| 158 | <p> |
| 159 | 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> |
| 160 | <table border="0" cellspacing="2" cellpadding="0"> |
| 161 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
| 162 | <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> |
| 163 | </table> |
| 164 | </dl> |
| 165 | |
| 166 | <p>References <a class="el" href="libBM_8h-source.html#l00195">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00178">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> |
| 167 | |
| 168 | <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> |
| 169 | |
| 170 | </div> |
| 171 | </div><p> |
| 172 | <a class="anchor" name="0e37163660f93df2a4d723cedb1da89c"></a><!-- doxytag: member="mgamma_fix::samplecond" ref="0e37163660f93df2a4d723cedb1da89c" args="(const vec &cond, vec &ll, int N)" --> |
| 173 | <div class="memitem"> |
| 174 | <div class="memproto"> |
| 175 | <table class="memname"> |
| 176 | <tr> |
| 177 | <td class="memname">virtual mat mpdf::samplecond </td> |
| 178 | <td>(</td> |
| 179 | <td class="paramtype">const vec & </td> |
| 180 | <td class="paramname"> <em>cond</em>, </td> |
| 181 | </tr> |
| 182 | <tr> |
| 183 | <td class="paramkey"></td> |
| 184 | <td></td> |
| 185 | <td class="paramtype">vec & </td> |
| 186 | <td class="paramname"> <em>ll</em>, </td> |
| 187 | </tr> |
| 188 | <tr> |
| 189 | <td class="paramkey"></td> |
| 190 | <td></td> |
| 191 | <td class="paramtype">int </td> |
| 192 | <td class="paramname"> <em>N</em></td><td> </td> |
| 193 | </tr> |
| 194 | <tr> |
| 195 | <td></td> |
| 196 | <td>)</td> |
| 197 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
| 198 | </tr> |
| 199 | </table> |
| 200 | </div> |
| 201 | <div class="memdoc"> |
| 202 | |
| 203 | <p> |
| 204 | Returns. |
| 205 | <p> |
| 206 | <dl compact><dt><b>Parameters:</b></dt><dd> |
| 207 | <table border="0" cellspacing="2" cellpadding="0"> |
| 208 | <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> |
| 209 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
| 210 | <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> |
| 211 | </table> |
| 212 | </dl> |
| 213 | |
| 214 | <p>References <a class="el" href="libBM_8h-source.html#l00195">mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00069">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00178">mpdf::ep</a>, <a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">epdf::evalpdflog()</a>, <a class="el" href="libBM_8h-source.html#l00174">mpdf::rv</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> |
| 215 | |
| 216 | </div> |
| 217 | </div><p> |
| 218 | <hr>The documentation for this class was generated from the following file:<ul> |