[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::mprod 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> |
---|
[261] | 14 | <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
| 15 | <li class="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
[259] | 16 | <li><a href="files.html"><span>Files</span></a></li> |
---|
| 17 | </ul> |
---|
| 18 | </div> |
---|
| 19 | <div class="tabs"> |
---|
| 20 | <ul> |
---|
[261] | 21 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
[259] | 22 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 23 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 24 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 25 | </ul> |
---|
| 26 | </div> |
---|
[261] | 27 | <div class="navpath"><a class="el" href="namespacebdm.html">bdm</a>::<a class="el" href="classbdm_1_1mprod.html">mprod</a> |
---|
[259] | 28 | </div> |
---|
| 29 | </div> |
---|
| 30 | <div class="contents"> |
---|
| 31 | <h1>bdm::mprod Class Reference</h1><!-- doxytag: class="bdm::mprod" --><!-- doxytag: inherits="bdm::compositepdf,bdm::mpdf" -->Chain rule decomposition of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. |
---|
| 32 | <a href="#_details">More...</a> |
---|
| 33 | <p> |
---|
| 34 | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
---|
| 35 | <p> |
---|
| 36 | <div class="dynheader"> |
---|
| 37 | Inheritance diagram for bdm::mprod:</div> |
---|
| 38 | <div class="dynsection"> |
---|
| 39 | <p><center><img src="classbdm_1_1mprod__inherit__graph.png" border="0" usemap="#bdm_1_1mprod__inherit__map" alt="Inheritance graph"></center> |
---|
| 40 | <map name="bdm_1_1mprod__inherit__map"> |
---|
[261] | 41 | <area shape="rect" href="classbdm_1_1compositepdf.html" title="Abstract composition of pdfs, will be used for specific classes this abstract class..." alt="" coords="5,84,149,111"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="173,84,264,111"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="163,7,275,33"></map> |
---|
[259] | 42 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 43 | <div class="dynheader"> |
---|
| 44 | Collaboration diagram for bdm::mprod:</div> |
---|
| 45 | <div class="dynsection"> |
---|
| 46 | <p><center><img src="classbdm_1_1mprod__coll__graph.png" border="0" usemap="#bdm_1_1mprod__coll__map" alt="Collaboration graph"></center> |
---|
| 47 | <map name="bdm_1_1mprod__coll__map"> |
---|
[261] | 48 | <area shape="rect" href="classbdm_1_1compositepdf.html" title="Abstract composition of pdfs, will be used for specific classes this abstract class..." alt="" coords="5,284,149,311"><area shape="rect" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="173,284,264,311"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="175,7,287,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="193,87,268,113"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="261,185,347,212"></map> |
---|
[259] | 49 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 50 | |
---|
| 51 | <p> |
---|
| 52 | <a href="classbdm_1_1mprod-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 53 | <tr><td></td></tr> |
---|
| 54 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
| 55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="680c3e2d95b116c7cfb227c7f2984525"></a><!-- doxytag: member="bdm::mprod::mprod" ref="680c3e2d95b116c7cfb227c7f2984525" args="(Array< mpdf * > mFacs)" --> |
---|
| 56 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#680c3e2d95b116c7cfb227c7f2984525">mprod</a> (Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > mFacs)</td></tr> |
---|
| 57 | |
---|
| 58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor from list of mFacs,. <br></td></tr> |
---|
| 59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="800f21d94c919137608a2fd5c88719e2"></a><!-- doxytag: member="bdm::mprod::evallogcond" ref="800f21d94c919137608a2fd5c88719e2" args="(const vec &val, const vec &cond)" --> |
---|
| 60 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#800f21d94c919137608a2fd5c88719e2">evallogcond</a> (const vec &val, const vec &cond)</td></tr> |
---|
| 61 | |
---|
| 62 | <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> |
---|
| 63 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#1a37c2aaba8bde7fce5351c39b6e1168">samplecond</a> (const vec &cond, double &ll)</td></tr> |
---|
| 64 | |
---|
| 65 | <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="#1a37c2aaba8bde7fce5351c39b6e1168"></a><br></td></tr> |
---|
| 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b493b5565dc6a5617927421d32697cc6"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="b493b5565dc6a5617927421d32697cc6" args="(const vec &cond, vec &ll, int N)" --> |
---|
| 67 | mat </td><td class="memItemRight" valign="bottom"><b>samplecond</b> (const vec &cond, vec &ll, int N)</td></tr> |
---|
| 68 | |
---|
| 69 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c73d39acc4378eee6a63155c3517d3c9">getrv</a> (bool checkoverlap=false)</td></tr> |
---|
| 70 | |
---|
| 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">find common rv, flag <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr> |
---|
| 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c71fc2c51f49d797e61f479f543c75ce"></a><!-- doxytag: member="bdm::mprod::setrvc" ref="c71fc2c51f49d797e61f479f543c75ce" args="(const RV &rv, RV &rvc)" --> |
---|
| 73 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c71fc2c51f49d797e61f479f543c75ce">setrvc</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1mpdf.html#9bcfb45435d30983f436d41c298cbb51">rv</a>, <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a>)</td></tr> |
---|
| 74 | |
---|
| 75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr> |
---|
| 76 | <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> |
---|
| 77 | |
---|
| 78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#ee26963a637b2ea1fb1933652981e652"></a><br></td></tr> |
---|
| 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db94784a9aacf74c65c5a014f6743530"></a><!-- doxytag: member="bdm::mprod::condition" ref="db94784a9aacf74c65c5a014f6743530" args="(const vec &cond)" --> |
---|
| 80 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">condition</a> (const vec &cond)</td></tr> |
---|
| 81 | |
---|
| 82 | <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> |
---|
| 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0b0ed1ed663071bb7cf4a1349eb94fcb"></a><!-- doxytag: member="bdm::mprod::evallogcond_m" ref="0b0ed1ed663071bb7cf4a1349eb94fcb" args="(const mat &Dt, const vec &cond)" --> |
---|
| 84 | 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> |
---|
| 85 | |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mprod::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " --> |
---|
| 88 | <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> |
---|
| 89 | |
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mprod::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " --> |
---|
| 92 | <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> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mprod::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" --> |
---|
| 96 | <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> |
---|
| 97 | |
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mprod::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" --> |
---|
| 100 | <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> |
---|
| 101 | |
---|
| 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 103 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eca722ed1b219727c6c0f8cbc6bf1e51"></a><!-- doxytag: member="bdm::mprod::epdfs" ref="eca722ed1b219727c6c0f8cbc6bf1e51" args="" --> |
---|
| 105 | Array< <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#eca722ed1b219727c6c0f8cbc6bf1e51">epdfs</a></td></tr> |
---|
| 106 | |
---|
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">pointers to epdfs - shortcut to <a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a" title="Elements of composition.">mpdfs()</a>.<a class="el" href="classbdm_1_1mpdf.html#1892fe3933488942253679f068e9e7f6" title="access function">_epdf()</a> <br></td></tr> |
---|
| 108 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acf679b3b1d48629c5a042d9ac0d973f"></a><!-- doxytag: member="bdm::mprod::dls" ref="acf679b3b1d48629c5a042d9ac0d973f" args="" --> |
---|
| 109 | Array< <a class="el" href="classbdm_1_1datalink__m2m.html">datalink_m2m</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mprod.html#acf679b3b1d48629c5a042d9ac0d973f">dls</a></td></tr> |
---|
| 110 | |
---|
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Data link for each mpdfs. <br></td></tr> |
---|
| 112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ca3cd8ed92a7154f5b9ff13b1e9d52a"></a><!-- doxytag: member="bdm::mprod::n" ref="7ca3cd8ed92a7154f5b9ff13b1e9d52a" args="" --> |
---|
| 113 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#7ca3cd8ed92a7154f5b9ff13b1e9d52a">n</a></td></tr> |
---|
| 114 | |
---|
| 115 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr> |
---|
| 116 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::mprod::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" --> |
---|
| 117 | Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a">mpdfs</a></td></tr> |
---|
| 118 | |
---|
| 119 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elements of composition. <br></td></tr> |
---|
| 120 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mprod::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" --> |
---|
| 121 | <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> |
---|
| 122 | |
---|
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modeled random variable <br></td></tr> |
---|
| 124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mprod::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> |
---|
| 125 | <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> |
---|
| 126 | |
---|
| 127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">random variable in condition <br></td></tr> |
---|
| 128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5eea43c56d38e4441bfb30270db949c0"></a><!-- doxytag: member="bdm::mprod::ep" ref="5eea43c56d38e4441bfb30270db949c0" args="" --> |
---|
| 129 | <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> |
---|
| 130 | |
---|
| 131 | <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> |
---|
| 132 | </table> |
---|
| 133 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 134 | Chain rule decomposition of <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>. |
---|
| 135 | <p> |
---|
| 136 | 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> |
---|
| 137 | <a class="anchor" name="1a37c2aaba8bde7fce5351c39b6e1168"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="1a37c2aaba8bde7fce5351c39b6e1168" args="(const vec &cond, double &ll)" --> |
---|
| 138 | <div class="memitem"> |
---|
| 139 | <div class="memproto"> |
---|
| 140 | <table class="memname"> |
---|
| 141 | <tr> |
---|
| 142 | <td class="memname">vec bdm::mprod::samplecond </td> |
---|
| 143 | <td>(</td> |
---|
| 144 | <td class="paramtype">const vec & </td> |
---|
| 145 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 146 | </tr> |
---|
| 147 | <tr> |
---|
| 148 | <td class="paramkey"></td> |
---|
| 149 | <td></td> |
---|
| 150 | <td class="paramtype">double & </td> |
---|
| 151 | <td class="paramname"> <em>ll</em></td><td> </td> |
---|
| 152 | </tr> |
---|
| 153 | <tr> |
---|
| 154 | <td></td> |
---|
| 155 | <td>)</td> |
---|
| 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 | |
---|
[261] | 174 | <p>References <a class="el" href="libBM_8h-source.html#l00083">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#l00395">bdm::compositepdf::mpdfs</a>, <a class="el" href="libBM_8h-source.html#l00393">bdm::compositepdf::n</a>, and <a class="el" href="libBM_8h-source.html#l00226">bdm::mpdf::rv</a>.</p> |
---|
[259] | 175 | |
---|
| 176 | </div> |
---|
| 177 | </div><p> |
---|
| 178 | <a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::mprod::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" --> |
---|
| 179 | <div class="memitem"> |
---|
| 180 | <div class="memproto"> |
---|
| 181 | <table class="memname"> |
---|
| 182 | <tr> |
---|
| 183 | <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv </td> |
---|
| 184 | <td>(</td> |
---|
| 185 | <td class="paramtype">bool </td> |
---|
| 186 | <td class="paramname"> <em>checkoverlap</em> = <code>false</code> </td> |
---|
| 187 | <td> ) </td> |
---|
| 188 | <td><code> [inherited]</code></td> |
---|
| 189 | </tr> |
---|
| 190 | </table> |
---|
| 191 | </div> |
---|
| 192 | <div class="memdoc"> |
---|
| 193 | |
---|
| 194 | <p> |
---|
| 195 | find common rv, flag |
---|
| 196 | <p> |
---|
| 197 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 198 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 199 | <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em> </td><td>modifies whether overlaps are acceptable </td></tr> |
---|
| 200 | </table> |
---|
| 201 | </dl> |
---|
| 202 | |
---|
[261] | 203 | <p>References <a class="el" href="libBM_8cpp-source.html#l00054">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00395">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00393">bdm::compositepdf::n</a>.</p> |
---|
[259] | 204 | |
---|
| 205 | </div> |
---|
| 206 | </div><p> |
---|
| 207 | <a class="anchor" name="ee26963a637b2ea1fb1933652981e652"></a><!-- doxytag: member="bdm::mprod::samplecond_m" ref="ee26963a637b2ea1fb1933652981e652" args="(const vec &cond, vec &ll, int N)" --> |
---|
| 208 | <div class="memitem"> |
---|
| 209 | <div class="memproto"> |
---|
| 210 | <table class="memname"> |
---|
| 211 | <tr> |
---|
| 212 | <td class="memname">virtual mat bdm::mpdf::samplecond_m </td> |
---|
| 213 | <td>(</td> |
---|
| 214 | <td class="paramtype">const vec & </td> |
---|
| 215 | <td class="paramname"> <em>cond</em>, </td> |
---|
| 216 | </tr> |
---|
| 217 | <tr> |
---|
| 218 | <td class="paramkey"></td> |
---|
| 219 | <td></td> |
---|
| 220 | <td class="paramtype">vec & </td> |
---|
| 221 | <td class="paramname"> <em>ll</em>, </td> |
---|
| 222 | </tr> |
---|
| 223 | <tr> |
---|
| 224 | <td class="paramkey"></td> |
---|
| 225 | <td></td> |
---|
| 226 | <td class="paramtype">int </td> |
---|
| 227 | <td class="paramname"> <em>N</em></td><td> </td> |
---|
| 228 | </tr> |
---|
| 229 | <tr> |
---|
| 230 | <td></td> |
---|
| 231 | <td>)</td> |
---|
| 232 | <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> |
---|
| 233 | </tr> |
---|
| 234 | </table> |
---|
| 235 | </div> |
---|
| 236 | <div class="memdoc"> |
---|
| 237 | |
---|
| 238 | <p> |
---|
| 239 | Returns. |
---|
| 240 | <p> |
---|
| 241 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 242 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 243 | <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> |
---|
| 244 | <tr><td valign="top"></td><td valign="top"><em>cond</em> </td><td>is numeric value of <code>rv</code> </td></tr> |
---|
| 245 | <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> |
---|
| 246 | </table> |
---|
| 247 | </dl> |
---|
| 248 | |
---|
[261] | 249 | <p>References <a class="el" href="libBM_8h-source.html#l00247">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00083">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00230">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#l00226">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> |
---|
[259] | 250 | |
---|
| 251 | </div> |
---|
| 252 | </div><p> |
---|
| 253 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
[261] | 254 | <li><a class="el" href="emix_8h-source.html">emix.h</a></ul> |
---|
[259] | 255 | </div> |
---|
[261] | 256 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 15:29:51 2009 for mixpp by |
---|
[259] | 257 | <a href="http://www.doxygen.org/index.html"> |
---|
| 258 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
| 259 | </body> |
---|
| 260 | </html> |
---|