| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b4d1cb8d7e230e313b4f0c905874d5a"></a><!-- doxytag: member="bdm::mgamma_fix::e" ref="6b4d1cb8d7e230e313b4f0c905874d5a" args="()" --> |
| 97 | <a class="el" href="classbdm_1_1egamma.html">egamma</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf__internal.html#6b4d1cb8d7e230e313b4f0c905874d5a">e</a> ()</td></tr> |
| 98 | |
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function to iepdf <br></td></tr> |
| 100 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8e547695d1cc19219b91164d825c930"></a><!-- doxytag: member="bdm::mgamma_fix::samplecond" ref="d8e547695d1cc19219b91164d825c930" args="(const vec &cond)" --> |
| 101 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf__internal.html#d8e547695d1cc19219b91164d825c930">samplecond</a> (const vec &cond)</td></tr> |
| 102 | |
| 103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplements samplecond using <code>condition()</code>. <br></td></tr> |
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="89076e62b8d7df7616bad68c94591948"></a><!-- doxytag: member="bdm::mgamma_fix::evallogcond" ref="89076e62b8d7df7616bad68c94591948" args="(const vec &val, const vec &cond)" --> |
| 105 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf__internal.html#89076e62b8d7df7616bad68c94591948">evallogcond</a> (const vec &val, const vec &cond)</td></tr> |
| 106 | |
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reimplements evallogcond using <code>condition()</code>. <br></td></tr> |
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e28c214e3063733a6e4d17738941c61c"></a><!-- doxytag: member="bdm::mgamma_fix::evallogcond_m" ref="e28c214e3063733a6e4d17738941c61c" args="(const mat &Dt, const vec &cond)" --> |
| 109 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf__internal.html#e28c214e3063733a6e4d17738941c61c">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> |
| 110 | |
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Efficient version of evallogcond for matrices. <br></td></tr> |
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e82db07ce8af02f29cfd81e014edb3db"></a><!-- doxytag: member="bdm::mgamma_fix::evallogcond_m" ref="e82db07ce8af02f29cfd81e014edb3db" args="(const Array< vec > &Dt, const vec &cond)" --> |
| 113 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf__internal.html#e82db07ce8af02f29cfd81e014edb3db">evallogcond_m</a> (const Array< vec > &Dt, const vec &cond)</td></tr> |
| 114 | |
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Efficient version of evallogcond for Array<vec>. <br></td></tr> |
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9554c554054da2d22cb8e908ae9c8823"></a><!-- doxytag: member="bdm::mgamma_fix::samplecond_m" ref="9554c554054da2d22cb8e908ae9c8823" args="(const vec &cond, int N)" --> |
| 117 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf__internal.html#9554c554054da2d22cb8e908ae9c8823">samplecond_m</a> (const vec &cond, int N)</td></tr> |
| 118 | |
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Efficient version of samplecond. <br></td></tr> |
110 | | <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> |
111 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#b024f2e636e5507c755de4a6df1f1e99">samplecond</a> (const vec &cond)</td></tr> |
112 | | |
113 | | <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_11.png">. <a href="#b024f2e636e5507c755de4a6df1f1e99"></a><br></td></tr> |
114 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#6e497d501331057309d2fddf63259d1a">samplecond_m</a> (const vec &cond, int N)</td></tr> |
115 | | |
116 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#6e497d501331057309d2fddf63259d1a"></a><br></td></tr> |
117 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cfcbb897bf42015a7979b17d891fd9b5"></a><!-- doxytag: member="bdm::mgamma_fix::evallogcond" ref="cfcbb897bf42015a7979b17d891fd9b5" args="(const vec &dt, const vec &cond)" --> |
118 | | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#cfcbb897bf42015a7979b17d891fd9b5">evallogcond</a> (const vec &dt, const vec &cond)</td></tr> |
119 | | |
120 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classbdm_1_1epdf.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> |
121 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f97c61ecfb1f44ef6f08dee7bc15eab3"></a><!-- doxytag: member="bdm::mgamma_fix::evallogcond_m" ref="f97c61ecfb1f44ef6f08dee7bc15eab3" args="(const mat &Dt, const vec &cond)" --> |
122 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#f97c61ecfb1f44ef6f08dee7bc15eab3">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> |
123 | | |
124 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
125 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d7d3c23e3273e97c12c396dcc06b606"></a><!-- doxytag: member="bdm::mgamma_fix::evallogcond_m" ref="2d7d3c23e3273e97c12c396dcc06b606" args="(const Array< vec > &Dt, const vec &cond)" --> |
126 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#2d7d3c23e3273e97c12c396dcc06b606">evallogcond_m</a> (const Array< vec > &Dt, const vec &cond)</td></tr> |
127 | | |
128 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array<vec> version of evallogcond. <br></td></tr> |
| 155 | <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> |
| 156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="147afacb393324bb3f9a7a89e33f835e"></a><!-- doxytag: member="bdm::mgamma_fix::set_ep" ref="147afacb393324bb3f9a7a89e33f835e" args="(epdf &iepdf)" --> |
| 157 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#147afacb393324bb3f9a7a89e33f835e">set_ep</a> (<a class="el" href="classbdm_1_1epdf.html">epdf</a> &<a class="el" href="classbdm_1_1mpdf__internal.html#47bab632af15120c88aad647ae129468">iepdf</a>)</td></tr> |
| 158 | |
| 159 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set internal pointer <code>ep</code> to point to given <code>iepdf</code> <br></td></tr> |
| 160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7555b377f8b5895c9b759c9628ee3e20"></a><!-- doxytag: member="bdm::mgamma_fix::set_ep" ref="7555b377f8b5895c9b759c9628ee3e20" args="(epdf *iepdfp)" --> |
| 161 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7555b377f8b5895c9b759c9628ee3e20">set_ep</a> (<a class="el" href="classbdm_1_1epdf.html">epdf</a> *iepdfp)</td></tr> |
| 162 | |
| 163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set internal pointer <code>ep</code> to point to given <code>iepdf</code> <br></td></tr> |
| 203 | <a class="anchor" name="1d539591deb7a38bb3403c2b396c8ff7"></a><!-- doxytag: member="bdm::mgamma_fix::condition" ref="1d539591deb7a38bb3403c2b396c8ff7" args="(const vec &val)" --> |
| 204 | <div class="memitem"> |
| 205 | <div class="memproto"> |
| 206 | <table class="memname"> |
| 207 | <tr> |
| 208 | <td class="memname">void bdm::mgamma_fix::condition </td> |
| 209 | <td>(</td> |
| 210 | <td class="paramtype">const vec & </td> |
| 211 | <td class="paramname"> <em>cond</em> </td> |
| 212 | <td> ) </td> |
| 213 | <td><code> [inline, virtual]</code></td> |
| 214 | </tr> |
| 215 | </table> |
| 216 | </div> |
| 217 | <div class="memdoc"> |
| 218 | |
| 219 | <p> |
| 220 | Update <code>iepdf</code> so that it represents this <a class="el" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling , where is random variable, rv, and...">mpdf</a> conditioned on <code>rvc</code> = cond This function provides convenient reimplementation in offsprings |
| 221 | <p>Reimplemented from <a class="el" href="classbdm_1_1mgamma.html#8996500f1885e39cde30221b20900bff">bdm::mgamma</a>.</p> |
| 222 | |
| 223 | <p>References <a class="el" href="exp__family_8h-source.html#l00702">bdm::mgamma::_beta</a>, <a class="el" href="exp__family_8h-source.html#l00699">bdm::mgamma::k</a>, <a class="el" href="exp__family_8h-source.html#l00798">l</a>, and <a class="el" href="exp__family_8h-source.html#l00800">refl</a>.</p> |
| 224 | |
| 225 | </div> |
| 226 | </div><p> |
222 | | <p>References <a class="el" href="user__info_8h_source.html#l00387">bdm::UI::get()</a>, <a class="el" href="exp__family_8h_source.html#l00702">bdm::mgamma::k</a>, and <a class="el" href="exp__family_8cpp_source.html#l00213">bdm::mgamma::set_parameters()</a>.</p> |
223 | | |
224 | | </div> |
225 | | </div><p> |
226 | | <a class="anchor" name="b024f2e636e5507c755de4a6df1f1e99"></a><!-- doxytag: member="bdm::mgamma_fix::samplecond" ref="b024f2e636e5507c755de4a6df1f1e99" args="(const vec &cond)" --> |
227 | | <div class="memitem"> |
228 | | <div class="memproto"> |
229 | | <table class="memname"> |
230 | | <tr> |
231 | | <td class="memname">vec bdm::mpdf::samplecond </td> |
232 | | <td>(</td> |
233 | | <td class="paramtype">const vec & </td> |
234 | | <td class="paramname"> <em>cond</em> </td> |
235 | | <td> ) </td> |
236 | | <td><code> [virtual, inherited]</code></td> |
237 | | </tr> |
238 | | </table> |
239 | | </div> |
240 | | <div class="memdoc"> |
241 | | |
242 | | <p> |
243 | | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_11.png">. |
244 | | <p> |
245 | | <dl compact><dt><b>Parameters:</b></dt><dd> |
246 | | <table border="0" cellspacing="2" cellpadding="0"> |
247 | | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
248 | | </table> |
249 | | </dl> |
250 | | |
251 | | <p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#ee715a8013acf9892f6cb489db595555">bdm::mprod</a>.</p> |
252 | | |
253 | | <p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p> |
254 | | |
255 | | <p>Referenced by <a class="el" href="particles_8h_source.html#l00207">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="particles_8cpp_source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="datasources_8cpp_source.html#l00043">bdm::ArxDS::step()</a>.</p> |
256 | | |
257 | | </div> |
258 | | </div><p> |
259 | | <a class="anchor" name="6e497d501331057309d2fddf63259d1a"></a><!-- doxytag: member="bdm::mgamma_fix::samplecond_m" ref="6e497d501331057309d2fddf63259d1a" args="(const vec &cond, int N)" --> |
260 | | <div class="memitem"> |
261 | | <div class="memproto"> |
262 | | <table class="memname"> |
263 | | <tr> |
264 | | <td class="memname">mat bdm::mpdf::samplecond_m </td> |
265 | | <td>(</td> |
266 | | <td class="paramtype">const vec & </td> |
267 | | <td class="paramname"> <em>cond</em>, </td> |
268 | | </tr> |
269 | | <tr> |
270 | | <td class="paramkey"></td> |
271 | | <td></td> |
272 | | <td class="paramtype">int </td> |
273 | | <td class="paramname"> <em>N</em></td><td> </td> |
274 | | </tr> |
275 | | <tr> |
276 | | <td></td> |
277 | | <td>)</td> |
278 | | <td></td><td></td><td><code> [virtual, inherited]</code></td> |
279 | | </tr> |
280 | | </table> |
281 | | </div> |
282 | | <div class="memdoc"> |
283 | | |
284 | | <p> |
285 | | Returns. |
286 | | <p> |
287 | | <dl compact><dt><b>Parameters:</b></dt><dd> |
288 | | <table border="0" cellspacing="2" cellpadding="0"> |
289 | | <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_11.png">. </td></tr> |
290 | | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
291 | | </table> |
292 | | </dl> |
293 | | |
294 | | <p>References <a class="el" href="bdmbase_8h_source.html#l00376">bdm::mpdf::condition()</a>.</p> |
| 252 | <p>References <a class="el" href="user__info_8h-source.html#l00410">bdm::UI::get()</a>, <a class="el" href="exp__family_8h-source.html#l00699">bdm::mgamma::k</a>, and <a class="el" href="exp__family_8cpp-source.html#l00216">bdm::mgamma::set_parameters()</a>.</p> |