156 | | <td></td><td></td><td><code> [inline, virtual]</code></td> |
157 | | </tr> |
158 | | </table> |
159 | | </div> |
160 | | <div class="memdoc"> |
161 | | |
162 | | <p> |
163 | | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. |
164 | | <p> |
165 | | <dl compact><dt><b>Parameters:</b></dt><dd> |
166 | | <table border="0" cellspacing="2" cellpadding="0"> |
167 | | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
168 | | <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> |
169 | | </table> |
170 | | </dl> |
171 | | |
172 | | <p>Reimplemented from <a class="el" href="classbdm_1_1mpdf.html#e4848a428d8ef0549c6e4a9ed386d9f2">bdm::mpdf</a>.</p> |
173 | | |
174 | | <p>References <a class="el" href="libBM_8h-source.html#l00084">bdm::RV::count()</a>, <a class="el" href="emix_8h-source.html#l00166">dls</a>, <a class="el" href="emix_8h-source.html#l00164">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00437">bdm::compositepdf::mpdfs</a>, <a class="el" href="libBM_8h-source.html#l00435">bdm::compositepdf::n</a>, and <a class="el" href="libBM_8h-source.html#l00227">bdm::mpdf::rv</a>.</p> |
| 158 | <td></td><td></td><td><code> [inline]</code></td> |
| 159 | </tr> |
| 160 | </table> |
| 161 | </div> |
| 162 | <div class="memdoc"> |
| 163 | |
| 164 | <p> |
| 165 | |
| 166 | <p> |
| 167 | Ugly hack to help to discover if mpfs are not in proper order. Correct solution = check that explicitely. |
| 168 | <p>References <a class="el" href="libBM_8h-source.html#l00086">bdm::RV::count()</a>, <a class="el" href="emix_8h-source.html#l00166">dls</a>, <a class="el" href="emix_8h-source.html#l00164">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00438">bdm::compositepdf::mpdfs</a>, <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>, and <a class="el" href="libBM_8h-source.html#l00229">bdm::mpdf::rv</a>.</p> |
203 | | <p>References <a class="el" href="libBM_8cpp-source.html#l00054">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00437">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00435">bdm::compositepdf::n</a>.</p> |
| 197 | <p>References <a class="el" href="libBM_8cpp-source.html#l00060">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00438">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>.</p> |
| 198 | |
| 199 | </div> |
| 200 | </div><p> |
| 201 | <a class="anchor" name="f0c1db6fcbb3aae2dd6123884457a367"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="f0c1db6fcbb3aae2dd6123884457a367" args="(const vec &cond)" --> |
| 202 | <div class="memitem"> |
| 203 | <div class="memproto"> |
| 204 | <table class="memname"> |
| 205 | <tr> |
| 206 | <td class="memname">virtual vec bdm::mpdf::samplecond </td> |
| 207 | <td>(</td> |
| 208 | <td class="paramtype">const vec & </td> |
| 209 | <td class="paramname"> <em>cond</em> </td> |
| 210 | <td> ) </td> |
| 211 | <td><code> [inline, virtual, inherited]</code></td> |
| 212 | </tr> |
| 213 | </table> |
| 214 | </div> |
| 215 | <div class="memdoc"> |
| 216 | |
| 217 | <p> |
| 218 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. |
| 219 | <p> |
| 220 | <dl compact><dt><b>Parameters:</b></dt><dd> |
| 221 | <table border="0" cellspacing="2" cellpadding="0"> |
| 222 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
| 223 | </table> |
| 224 | </dl> |
| 225 | |
| 226 | <p>References <a class="el" href="libBM_8h-source.html#l00250">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00233">bdm::mpdf::ep</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> |
| 227 | |
| 228 | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00143">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="libDS_8cpp-source.html#l00044">bdm::ArxDS::step()</a>.</p> |
249 | | <p>References <a class="el" href="libBM_8h-source.html#l00248">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00084">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00231">bdm::mpdf::ep</a>, <a class="el" href="classbdm_1_1epdf.html#a8e39e2ff5e5cf5471bc159530d3b2d3">bdm::epdf::evallog()</a>, <a class="el" href="libBM_8h-source.html#l00227">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> |
| 274 | <p>References <a class="el" href="libBM_8h-source.html#l00250">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00086">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00233">bdm::mpdf::ep</a>, <a class="el" href="classbdm_1_1epdf.html#a8e39e2ff5e5cf5471bc159530d3b2d3">bdm::epdf::evallog()</a>, <a class="el" href="libBM_8h-source.html#l00229">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> |