[259] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
| 3 | <title>mixpp: bdm::mratio Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
| 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
| 8 | <div class="navigation" id="top"> |
---|
| 9 | <div class="tabs"> |
---|
| 10 | <ul> |
---|
| 11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
| 14 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 15 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 16 | </ul> |
---|
| 17 | </div> |
---|
| 18 | <div class="tabs"> |
---|
| 19 | <ul> |
---|
| 20 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 21 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 22 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 23 | </ul> |
---|
| 24 | </div> |
---|
| 25 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1mratio.html">mratio</a> |
---|
| 26 | </div> |
---|
| 27 | </div> |
---|
| 28 | <div class="contents"> |
---|
| 29 | <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"> |
---|
| 30 | <img class="formulaDsp" alt="\[ f(rv|rvc) = \frac{f(rv,rvc)}{f(rvc)} \]" src="form_79.png"> |
---|
| 31 | <p> |
---|
| 32 | where <img class="formulaInl" alt="$ f(rvc) = \int f(rv,rvc) d\ rv $" src="form_80.png">. |
---|
| 33 | <a href="#_details">More...</a> |
---|
| 34 | <p> |
---|
| 35 | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
---|
| 36 | <p> |
---|
| 37 | <div class="dynheader"> |
---|
| 38 | Inheritance diagram for bdm::mratio:</div> |
---|
| 39 | <div class="dynsection"> |
---|
| 40 | <p><center><img src="classbdm_1_1mratio__inherit__graph.png" border="0" usemap="#bdm_1_1mratio__inherit__map" alt="Inheritance graph"></center> |
---|
| 41 | <map name="bdm_1_1mratio__inherit__map"> |
---|
| 42 | <area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="9,7,100,33"></map> |
---|
| 43 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 44 | <div class="dynheader"> |
---|
| 45 | Collaboration diagram for bdm::mratio:</div> |
---|
| 46 | <div class="dynsection"> |
---|
| 47 | <p><center><img src="classbdm_1_1mratio__coll__graph.png" border="0" usemap="#bdm_1_1mratio__coll__map" alt="Collaboration graph"></center> |
---|
| 48 | <map name="bdm_1_1mratio__coll__map"> |
---|
| 49 | <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_1RV.html" title="Class representing variables, most often random variables." alt="" coords="23,87,97,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="92,185,177,212"><area shape="rect" href="classbdm_1_1base.html" title="Root class of BDM objects." alt="" coords="64,7,152,33"><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="bdm::datalink_e2e" alt="" coords="201,185,340,212"></map> |
---|
| 50 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 51 | |
---|
| 52 | <p> |
---|
| 53 | <a href="classbdm_1_1mratio-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 54 | <tr><td></td></tr> |
---|
| 55 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 56 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#0ff56d13f9515d7e5f23b7a4cc5529b4">mratio</a> (const <a class="el" href="classbdm_1_1epdf.html">epdf</a> *nom0, const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51">rv</a>, bool copy=false)</td></tr> |
---|
| 57 | |
---|
| 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a2cbce8c61ca9f592d9c2220f7c1204"></a><!-- doxytag: member="bdm::mratio::evallogcond" ref="3a2cbce8c61ca9f592d9c2220f7c1204" args="(const vec &val, const vec &cond)" --> |
---|
| 59 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#3a2cbce8c61ca9f592d9c2220f7c1204">evallogcond</a> (const vec &val, const vec &cond)</td></tr> |
---|
| 60 | |
---|
| 61 | <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> |
---|
| 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c8b39fea586d4258bb3c881406edaf15"></a><!-- doxytag: member="bdm::mratio::ownnom" ref="c8b39fea586d4258bb3c881406edaf15" args="()" --> |
---|
| 63 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#c8b39fea586d4258bb3c881406edaf15">ownnom</a> ()</td></tr> |
---|
| 64 | |
---|
| 65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Object takes ownership of nom and will destroy it. <br></td></tr> |
---|
| 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c0cc0b25dbdc54751466616655454c5c"></a><!-- doxytag: member="bdm::mratio::~mratio" ref="c0cc0b25dbdc54751466616655454c5c" args="()" --> |
---|
| 67 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#c0cc0b25dbdc54751466616655454c5c">~mratio</a> ()</td></tr> |
---|
| 68 | |
---|
| 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default destructor. <br></td></tr> |
---|
| 70 | <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#e4848a428d8ef0549c6e4a9ed386d9f2">samplecond</a> (const vec &cond, double &ll)</td></tr> |
---|
| 71 | |
---|
| 72 | <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_10.png">. <a href="#e4848a428d8ef0549c6e4a9ed386d9f2"></a><br></td></tr> |
---|
| 73 | <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#ee26963a637b2ea1fb1933652981e652">samplecond_m</a> (const vec &cond, vec &ll, int N)</td></tr> |
---|
| 74 | |
---|
| 75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#ee26963a637b2ea1fb1933652981e652"></a><br></td></tr> |
---|
| 76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db94784a9aacf74c65c5a014f6743530"></a><!-- doxytag: member="bdm::mratio::condition" ref="db94784a9aacf74c65c5a014f6743530" args="(const vec &cond)" --> |
---|
| 77 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">condition</a> (const vec &cond)</td></tr> |
---|
| 78 | |
---|
| 79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update <code>ep</code> so that it represents this <a class="el" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> conditioned on <code>rvc</code> = cond. <br></td></tr> |
---|
| 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mratio::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &Dt, const vec &cond)" --> |
---|
| 81 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#0b0ed1ed663071bb7cf4a1349eb94fcb">evallogcond_m</a> (const mat &Dt, const vec &cond)</td></tr> |
---|
| 82 | |
---|
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
| 84 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mratio::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " --> |
---|
| 85 | <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> |
---|
| 86 | |
---|
| 87 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 88 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mratio::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " --> |
---|
| 89 | <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> |
---|
| 90 | |
---|
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 92 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mratio::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" --> |
---|
| 93 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#1892fe3933488942253679f068e9e7f6">_epdf</a> ()</td></tr> |
---|
| 94 | |
---|
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mratio::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" --> |
---|
| 97 | <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> |
---|
| 98 | |
---|
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 100 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f31caba90a2aa10fbf7631832404fe54"></a><!-- doxytag: member="bdm::mratio::nom" ref="f31caba90a2aa10fbf7631832404fe54" args="" --> |
---|
| 102 | const <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#f31caba90a2aa10fbf7631832404fe54">nom</a></td></tr> |
---|
| 103 | |
---|
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Nominator in the form of <a class="el" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a>. <br></td></tr> |
---|
| 105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7daa5d02d3a3be9d15fd4156d886ed88"></a><!-- doxytag: member="bdm::mratio::den" ref="7daa5d02d3a3be9d15fd4156d886ed88" args="" --> |
---|
| 106 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#7daa5d02d3a3be9d15fd4156d886ed88">den</a></td></tr> |
---|
| 107 | |
---|
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Denominator in the form of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. <br></td></tr> |
---|
| 109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="51bfe6675e724f7fbeaaeacce5a9f9b8"></a><!-- doxytag: member="bdm::mratio::destroynom" ref="51bfe6675e724f7fbeaaeacce5a9f9b8" args="" --> |
---|
| 110 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#51bfe6675e724f7fbeaaeacce5a9f9b8">destroynom</a></td></tr> |
---|
| 111 | |
---|
| 112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">flag for destructor <br></td></tr> |
---|
| 113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cda5bd23ba60146d69e1f804ff7710c7"></a><!-- doxytag: member="bdm::mratio::dl" ref="cda5bd23ba60146d69e1f804ff7710c7" args="" --> |
---|
| 114 | <a class="el" href="classbdm_1_1datalink__m2e.html">datalink_m2e</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mratio.html#cda5bd23ba60146d69e1f804ff7710c7">dl</a></td></tr> |
---|
| 115 | |
---|
| 116 | <tr><td class="mdescLeft"> </td><td class="mdescRight">datalink between conditional and nom <br></td></tr> |
---|
| 117 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mratio::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" --> |
---|
| 118 | <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> |
---|
| 119 | |
---|
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> |
---|
| 121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mratio::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> |
---|
| 122 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a></td></tr> |
---|
| 123 | |
---|
| 124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
| 125 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mratio::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" --> |
---|
| 126 | <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#5eea43c56d38e4441bfb30270db949c0">ep</a></td></tr> |
---|
| 127 | |
---|
| 128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointer to internal <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> <br></td></tr> |
---|
| 129 | </table> |
---|
| 130 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 131 | Class representing ratio of two densities which arise e.g. by applying the Bayes rule. It represents density in the form: <p class="formulaDsp"> |
---|
| 132 | <img class="formulaDsp" alt="\[ f(rv|rvc) = \frac{f(rv,rvc)}{f(rvc)} \]" src="form_79.png"> |
---|
| 133 | <p> |
---|
| 134 | where <img class="formulaInl" alt="$ f(rvc) = \int f(rv,rvc) d\ rv $" src="form_80.png">. |
---|
| 135 | <p> |
---|
| 136 | In particular this type of arise by conditioning of a mixture model.<p> |
---|
| 137 | 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> |
---|
| 138 | <a class="anchor" name="0ff56d13f9515d7e5f23b7a4cc5529b4"></a><!-- doxytag: member="bdm::mratio::mratio" ref="0ff56d13f9515d7e5f23b7a4cc5529b4" args="(const epdf *nom0, const RV &rv, bool copy=false)" --> |
---|
| 139 | <div class="memitem"> |
---|
| 140 | <div class="memproto"> |
---|
| 141 | <table class="memname"> |
---|
| 142 | <tr> |
---|
| 143 | <td class="memname">bdm::mratio::mratio </td> |
---|
| 144 | <td>(</td> |
---|
| 145 | <td class="paramtype">const <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td> |
---|
| 146 | <td class="paramname"> <em>nom0</em>, </td> |
---|
| 147 | </tr> |
---|
| 148 | <tr> |
---|
| 149 | <td class="paramkey"></td> |
---|
| 150 | <td></td> |
---|
| 151 | <td class="paramtype">const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td> |
---|
| 152 | <td class="paramname"> <em>rv</em>, </td> |
---|
| 153 | </tr> |
---|
| 154 | <tr> |
---|
| 155 | <td class="paramkey"></td> |
---|
| 156 | <td></td> |
---|
| 157 | <td class="paramtype">bool </td> |
---|
| 158 | <td class="paramname"> <em>copy</em> = <code>false</code></td><td> </td> |
---|
| 159 | </tr> |
---|
| 160 | <tr> |
---|
| 161 | <td></td> |
---|
| 162 | <td>)</td> |
---|
| 163 | <td></td><td></td><td><code> [inline]</code></td> |
---|
| 164 | </tr> |
---|
| 165 | </table> |
---|
| 166 | </div> |
---|
| 167 | <div class="memdoc"> |
---|
| 168 | |
---|
| 169 | <p> |
---|
| 170 | Default constructor. By default, the given <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> is not copied! It is assumed that this function will be used only temporarily. |
---|
| 171 | <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#l00083">bdm::RV::length()</a>, <a class="el" href="libBM_8h-source.html#l00198">bdm::epdf::marginal()</a>, <a class="el" href="emix_8h-source.html#l00039">nom</a>, and <a class="el" href="libBM_8h-source.html#l00224">bdm::mpdf::rvc</a>.</p> |
---|
| 172 | |
---|
| 173 | </div> |
---|
| 174 | </div><p> |
---|
| 175 | <hr><h2>Member Function Documentation</h2> |
---|
| 176 | <a class="anchor" name="e4848a428d8ef0549c6e4a9ed386d9f2"></a><!-- doxytag: member="bdm::mratio::samplecond" ref="e4848a428d8ef0549c6e4a9ed386d9f2" args="(const vec &cond, double &ll)" --> |
---|
| 177 | <div class="memitem"> |
---|
| 178 | <div class="memproto"> |
---|
| 179 | <table class="memname"> |
---|
| 180 | <tr> |
---|
| 181 | <td class="memname">virtual vec bdm::mpdf::samplecond </td> |
---|
| 182 | <td>(</td> |
---|
| 183 | <td class="paramtype">const vec & </td> |
---|
| 184 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 185 | </tr> |
---|
| 186 | <tr> |
---|
| 187 | <td class="paramkey"></td> |
---|
| 188 | <td></td> |
---|
| 189 | <td class="paramtype">double & </td> |
---|
| 190 | <td class="paramname"> <em>ll</em></td><td> </td> |
---|
| 191 | </tr> |
---|
| 192 | <tr> |
---|
| 193 | <td></td> |
---|
| 194 | <td>)</td> |
---|
| 195 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 196 | </tr> |
---|
| 197 | </table> |
---|
| 198 | </div> |
---|
| 199 | <div class="memdoc"> |
---|
| 200 | |
---|
| 201 | <p> |
---|
| 202 | Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. |
---|
| 203 | <p> |
---|
| 204 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 205 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 206 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 207 | <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> |
---|
| 208 | </table> |
---|
| 209 | </dl> |
---|
| 210 | |
---|
| 211 | <p>Reimplemented in <a class="el" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">bdm::mprod</a>.</p> |
---|
| 212 | |
---|
| 213 | <p>References <a class="el" href="libBM_8h-source.html#l00243">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00226">bdm::mpdf::ep</a>, <a class="el" href="classbdm_1_1epdf.html#a8e39e2ff5e5cf5471bc159530d3b2d3">bdm::epdf::evallog()</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> |
---|
| 214 | |
---|
| 215 | <p>Referenced by <a class="el" href="libPF_8h-source.html#l00144">bdm::MPF< BM_T >::bayes()</a>, and <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>.</p> |
---|
| 216 | |
---|
| 217 | </div> |
---|
| 218 | </div><p> |
---|
| 219 | <a class="anchor" name="ee26963a637b2ea1fb1933652981e652"></a><!-- doxytag: member="bdm::mratio::samplecond_m" ref="ee26963a637b2ea1fb1933652981e652" args="(const vec &cond, vec &ll, int N)" --> |
---|
| 220 | <div class="memitem"> |
---|
| 221 | <div class="memproto"> |
---|
| 222 | <table class="memname"> |
---|
| 223 | <tr> |
---|
| 224 | <td class="memname">virtual mat bdm::mpdf::samplecond_m </td> |
---|
| 225 | <td>(</td> |
---|
| 226 | <td class="paramtype">const vec & </td> |
---|
| 227 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 228 | </tr> |
---|
| 229 | <tr> |
---|
| 230 | <td class="paramkey"></td> |
---|
| 231 | <td></td> |
---|
| 232 | <td class="paramtype">vec & </td> |
---|
| 233 | <td class="paramname"> <em>ll</em>, </td> |
---|
| 234 | </tr> |
---|
| 235 | <tr> |
---|
| 236 | <td class="paramkey"></td> |
---|
| 237 | <td></td> |
---|
| 238 | <td class="paramtype">int </td> |
---|
| 239 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 240 | </tr> |
---|
| 241 | <tr> |
---|
| 242 | <td></td> |
---|
| 243 | <td>)</td> |
---|
| 244 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 245 | </tr> |
---|
| 246 | </table> |
---|
| 247 | </div> |
---|
| 248 | <div class="memdoc"> |
---|
| 249 | |
---|
| 250 | <p> |
---|
| 251 | Returns. |
---|
| 252 | <p> |
---|
| 253 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 254 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 255 | <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> |
---|
| 256 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 257 | <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> |
---|
| 258 | </table> |
---|
| 259 | </dl> |
---|
| 260 | |
---|
| 261 | <p>References <a class="el" href="libBM_8h-source.html#l00243">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00081">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00226">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#l00222">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> |
---|
| 262 | |
---|
| 263 | </div> |
---|
| 264 | </div><p> |
---|
| 265 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
| 266 | <li>work/git/mixpp/bdm/stat/<a class="el" href="emix_8h-source.html">emix.h</a></ul> |
---|
| 267 | </div> |
---|
| 268 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 27 16:31:04 2009 for mixpp by |
---|
| 269 | <a href="http://www.doxygen.org/index.html"> |
---|
| 270 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
| 271 | </body> |
---|
| 272 | </html> |
---|