| 34 | | <p><center><img src="classmepdf__inherit__graph.png" border="0" usemap="#mepdf__inherit__map" alt="Inheritance graph"></center> |
| 35 | | <map name="mepdf__inherit__map"> |
| 36 | | <area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="9,7,63,33"></map> |
| | 34 | <p><center><img src="classmprod__inherit__graph.png" border="0" usemap="#mprod__inherit__map" alt="Inheritance graph"></center> |
| | 35 | <map name="mprod__inherit__map"> |
| | 36 | <area shape="rect" href="classmerger.html" title="Function for general combination of pdfs." alt="" coords="5,161,72,188"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="12,7,65,33"></map> |
| 41 | | <p><center><img src="classmepdf__coll__graph.png" border="0" usemap="#mepdf__coll__map" alt="Collaboration graph"></center> |
| 42 | | <map name="mepdf__coll__map"> |
| 43 | | <area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="9,204,63,231"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="23,7,60,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="57,105,105,132"></map> |
| | 41 | <p><center><img src="classmprod__coll__graph.png" border="0" usemap="#mprod__coll__map" alt="Collaboration graph"></center> |
| | 42 | <map name="mprod__coll__map"> |
| | 43 | <area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="11,204,64,231"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="24,7,61,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="59,105,107,132"></map> |
| 50 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ab1c50f0aa16230117436dee500f2e0"></a><!-- doxytag: member="mepdf::mepdf" ref="7ab1c50f0aa16230117436dee500f2e0" args="(epdf &em)" --> |
| 51 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classmepdf.html#7ab1c50f0aa16230117436dee500f2e0">mepdf</a> (<a class="el" href="classepdf.html">epdf</a> &em)</td></tr> |
| 52 | | |
| 53 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
| 54 | | <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> |
| 55 | | |
| 56 | | <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> |
| 57 | | <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> |
| 58 | | |
| 59 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#0e37163660f93df2a4d723cedb1da89c"></a><br></td></tr> |
| 60 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mepdf::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" --> |
| | 50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="37f028561c45ce5fd3a1351a911e31dc"></a><!-- doxytag: member="mprod::mprod" ref="37f028561c45ce5fd3a1351a911e31dc" args="(Array< mpdf * > mFacs, bool overlap=false)" --> |
| | 51 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#37f028561c45ce5fd3a1351a911e31dc">mprod</a> (Array< <a class="el" href="classmpdf.html">mpdf</a> * > mFacs, bool overlap=false)</td></tr> |
| | 52 | |
| | 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from list of mFacs, Additional parameter overlap is left for future use. Do not set to true for <a class="el" href="classmprod.html" title="Chain rule decomposition of epdf.">mprod</a>. <br></td></tr> |
| | 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c15df5d0c7bb9dc82dd78f037b2550a8"></a><!-- doxytag: member="mprod::evalpdflog" ref="c15df5d0c7bb9dc82dd78f037b2550a8" args="(const vec &val) const " --> |
| | 55 | double </td><td class="memItemRight" valign="bottom"><b>evalpdflog</b> (const vec &val) const </td></tr> |
| | 56 | |
| | 57 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">samplecond</a> (const vec &cond, double &ll)</td></tr> |
| | 58 | |
| | 59 | <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="#a48887eb8738a9e5550bfc38eb8e9d68"></a><br></td></tr> |
| | 60 | <tr><td class="memItemLeft" nowrap align="right" valign="top">mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#e171c40e210539c2af01d6237785620b">samplecond</a> (const vec &cond, vec &ll, int N)</td></tr> |
| | 61 | |
| | 62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#e171c40e210539c2af01d6237785620b"></a><br></td></tr> |
| | 63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="mprod::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &cond)" --> |
| 81 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mepdf::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> |
| | 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7dcf1dde4a220f8c7b97ed987bff6c1f"></a><!-- doxytag: member="mprod::n" ref="7dcf1dde4a220f8c7b97ed987bff6c1f" args="" --> |
| | 85 | int </td><td class="memItemRight" valign="bottom"><b>n</b></td></tr> |
| | 86 | |
| | 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0883ce383e8475546df138719918f70e"></a><!-- doxytag: member="mprod::epdfs" ref="0883ce383e8475546df138719918f70e" args="" --> |
| | 88 | Array< <a class="el" href="classepdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><b>epdfs</b></td></tr> |
| | 89 | |
| | 90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2389c7585ac5d0d79587625186818889"></a><!-- doxytag: member="mprod::mpdfs" ref="2389c7585ac5d0d79587625186818889" args="" --> |
| | 91 | Array< <a class="el" href="classmpdf.html">mpdf</a> * > </td><td class="memItemRight" valign="bottom"><b>mpdfs</b></td></tr> |
| | 92 | |
| | 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c8f78fbcdb4e38ecd3197d2958082497"></a><!-- doxytag: member="mprod::rvinds" ref="c8f78fbcdb4e38ecd3197d2958082497" args="" --> |
| | 94 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#c8f78fbcdb4e38ecd3197d2958082497">rvinds</a></td></tr> |
| | 95 | |
| | 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of rvs in common rv. <br></td></tr> |
| | 97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1725c7b497a27ab3c4889b846666b516"></a><!-- doxytag: member="mprod::rvcinrv" ref="1725c7b497a27ab3c4889b846666b516" args="" --> |
| | 98 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#1725c7b497a27ab3c4889b846666b516">rvcinrv</a></td></tr> |
| | 99 | |
| | 100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of rvc in common rv. <br></td></tr> |
| | 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc85192d8abc01832937ed8b62e363a6"></a><!-- doxytag: member="mprod::rvcinds" ref="cc85192d8abc01832937ed8b62e363a6" args="" --> |
| | 102 | Array< ivec > </td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#cc85192d8abc01832937ed8b62e363a6">rvcinds</a></td></tr> |
| | 103 | |
| | 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indeces of rvc in common rvc. <br></td></tr> |
| | 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="mprod::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> |
| 95 | | Unconditional <a class="el" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a>, allows using <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> in the role of <a class="el" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a>. |
| 96 | | <p> |
| 97 | | WARNING: the class does not check validity of the <code>ep</code> pointer nor its existence. <hr><h2>Member Function Documentation</h2> |
| 98 | | <a class="anchor" name="3f172b79ec4a5ebc87898a5381141f1b"></a><!-- doxytag: member="mepdf::samplecond" ref="3f172b79ec4a5ebc87898a5381141f1b" args="(const vec &cond, double &ll)" --> |
| | 119 | Chain rule decomposition of <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. |
| | 120 | <p> |
| | 121 | Probability density in the form of Chain-rule decomposition: \[ f(x_1,x_2,x_3) = f(x_1|x_2,x_3)f(x_2,x_3)f(x_3) \] Note that <hr><h2>Member Function Documentation</h2> |
| | 122 | <a class="anchor" name="a48887eb8738a9e5550bfc38eb8e9d68"></a><!-- doxytag: member="mprod::samplecond" ref="a48887eb8738a9e5550bfc38eb8e9d68" args="(const vec &cond, double &ll)" --> |
| 133 | | <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> |
| 134 | | |
| 135 | | <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> |
| | 157 | <p>Reimplemented from <a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">mpdf</a>.</p> |
| | 158 | |
| | 159 | <p>References <a class="el" href="libBM_8h-source.html#l00069">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00186">mpdf::rv</a>, <a class="el" href="emix_8h-source.html#l00083">rvcinds</a>, <a class="el" href="emix_8h-source.html#l00081">rvcinrv</a>, and <a class="el" href="emix_8h-source.html#l00079">rvinds</a>.</p> |
| | 160 | |
| | 161 | <p>Referenced by <a class="el" href="emix_8h-source.html#l00128">samplecond()</a>.</p> |