31 | | <h1>bdm::mratio Class Reference</h1><!-- doxytag: class="bdm::mratio" --><!-- doxytag: inherits="bdm::mpdf" -->Class representing ratio of two densities which arise e.g. by applying the Bayes rule. It represents density in the form: <p class="formulaDsp"> |
32 | | <img class="formulaDsp" alt="\[ f(rv|rvc) = \frac{f(rv,rvc)}{f(rvc)} \]" src="form_79.png"> |
33 | | <p> |
34 | | where <img class="formulaInl" alt="$ f(rvc) = \int f(rv,rvc) d\ rv $" src="form_80.png">. |
35 | | <a href="#_details">More...</a> |
36 | | <p> |
37 | | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
| 31 | <h1>bdm::mratio Class Reference</h1><!-- doxytag: class="bdm::mratio" --><!-- doxytag: inherits="bdm::mpdf" --><code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
46 | | <div class="dynheader"> |
47 | | Collaboration diagram for bdm::mratio:</div> |
48 | | <div class="dynsection"> |
49 | | <p><center><img src="classbdm_1_1mratio__coll__graph.png" border="0" usemap="#bdm_1_1mratio__coll__map" alt="Collaboration graph"></center> |
50 | | <map name="bdm_1_1mratio__coll__map"> |
51 | | <area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="5,287,96,313"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="7,7,119,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="25,87,100,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="93,185,179,212"><area shape="rect" href="classbdm_1_1datalink__m2e.html" title="data link between" alt="" coords="199,287,343,313"><area shape="rect" href="classbdm_1_1datalink__e2e.html" title="DataLink is a connection between two data vectors Up and Down." alt="" coords="203,185,341,212"></map> |
52 | | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
53 | | |
54 | | <p> |
55 | | <a href="classbdm_1_1mratio-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
| 40 | |
| 41 | <p> |
| 42 | <a href="classbdm_1_1mratio-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> |
| 43 | Class representing ratio of two densities which arise e.g. by applying the Bayes rule. It represents density in the form: <p class="formulaDsp"> |
| 44 | <img class="formulaDsp" alt="\[ f(rv|rvc) = \frac{f(rv,rvc)}{f(rvc)} \]" src="form_79.png"> |
| 45 | <p> |
| 46 | where <img class="formulaInl" alt="$ f(rvc) = \int f(rv,rvc) d\ rv $" src="form_80.png">. |
| 47 | <p> |
| 48 | In particular this type of arise by conditioning of a mixture model.<p> |
| 49 | At present the only supported operation is <a class="el" href="classbdm_1_1mratio.html#3a2cbce8c61ca9f592d9c2220f7c1204" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond()</a>. <table border="0" cellpadding="0" cellspacing="0"> |
86 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mratio::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " --> |
87 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#b3aba7311038bf990d706a64cab60cf8">_rvc</a> () const </td></tr> |
88 | | |
89 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
90 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mratio::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " --> |
91 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#222d5280e309c5a053ba73841e98c151">_rv</a> () const </td></tr> |
92 | | |
93 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 81 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
| 82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mratio::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" --> |
| 83 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr> |
| 84 | |
| 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mratio::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> |
| 86 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> |
| 87 | |
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mratio::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" --> |
| 89 | int </td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr> |
| 90 | |
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mratio::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> |
| 92 | int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> |
| 93 | |
99 | | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#05e843fd11c410a99dad2b88c55aca80">_e</a> ()</td></tr> |
100 | | |
101 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| 98 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><b>_e</b> ()</td></tr> |
| 99 | |
| 100 | <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> |
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mratio::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> |
| 102 | void </td><td class="memItemRight" valign="bottom"><b>set_rvc</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc0)</td></tr> |
| 103 | |
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mratio::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> |
| 105 | void </td><td class="memItemRight" valign="bottom"><b>set_rv</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &rv0)</td></tr> |
| 106 | |
| 107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mratio::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> |
| 108 | bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> |
| 109 | |
118 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">datalink between conditional and nom <br></td></tr> |
119 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mratio::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" --> |
120 | | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51">rv</a></td></tr> |
121 | | |
122 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> |
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classbdm_1_1datalink.html" title="DataLink is a connection between two data vectors Up and Down.">datalink</a> between conditional and nom <br></td></tr> |
| 127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mratio::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> |
| 128 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> |
| 129 | |
| 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> |
132 | | <hr><a name="_details"></a><h2>Detailed Description</h2> |
133 | | Class representing ratio of two densities which arise e.g. by applying the Bayes rule. It represents density in the form: <p class="formulaDsp"> |
134 | | <img class="formulaDsp" alt="\[ f(rv|rvc) = \frac{f(rv,rvc)}{f(rvc)} \]" src="form_79.png"> |
135 | | <p> |
136 | | where <img class="formulaInl" alt="$ f(rvc) = \int f(rv,rvc) d\ rv $" src="form_80.png">. |
137 | | <p> |
138 | | In particular this type of arise by conditioning of a mixture model.<p> |
139 | | At present the only supported operation is <a class="el" href="classbdm_1_1mratio.html#3a2cbce8c61ca9f592d9c2220f7c1204" title="Shortcut for conditioning and evaluation of the internal epdf. In some cases, this...">evallogcond()</a>. <hr><h2>Constructor & Destructor Documentation</h2> |
| 140 | <hr><h2>Constructor & Destructor Documentation</h2> |
173 | | <p>References <a class="el" href="emix_8h-source.html#l00041">den</a>, <a class="el" href="emix_8h-source.html#l00043">destroynom</a>, <a class="el" href="libBM_8h-source.html#l00088">bdm::RV::length()</a>, <a class="el" href="libBM_8h-source.html#l00205">bdm::epdf::marginal()</a>, <a class="el" href="emix_8h-source.html#l00039">nom</a>, and <a class="el" href="libBM_8h-source.html#l00231">bdm::mpdf::rvc</a>.</p> |
| 174 | <p>References <a class="el" href="libBM_8h-source.html#l00265">bdm::epdf::_rv()</a>, <a class="el" href="emix_8h-source.html#l00041">den</a>, <a class="el" href="emix_8h-source.html#l00043">destroynom</a>, <a class="el" href="libBM_8h-source.html#l00288">bdm::mpdf::ep</a>, <a class="el" href="libBM_8h-source.html#l00131">bdm::RV::length()</a>, <a class="el" href="libBM_8h-source.html#l00247">bdm::epdf::marginal()</a>, <a class="el" href="emix_8h-source.html#l00039">nom</a>, <a class="el" href="libBM_8h-source.html#l00286">bdm::mpdf::rvc</a>, <a class="el" href="libBM_8h-source.html#l00261">bdm::epdf::set_rv()</a>, and <a class="el" href="libBM_8cpp-source.html#l00174">bdm::RV::subt()</a>.</p> |