Changeset 270 for doc/html/classbdm_1_1mprod.html
- Timestamp:
- 02/16/09 10:02:08 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/classbdm_1_1mprod.html
r269 r270 29 29 </div> 30 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> 31 <h1>bdm::mprod Class Reference</h1><!-- doxytag: class="bdm::mprod" --><!-- doxytag: inherits="bdm::compositepdf,bdm::mpdf" --><code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> 35 32 <p> 36 33 <div class="dynheader"> … … 41 38 <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> 42 39 <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"> 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> 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"> 40 41 <p> 42 <a href="classbdm_1_1mprod-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> 43 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>. 44 <p> 45 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 <table border="0" cellpadding="0" cellspacing="0"> 53 46 <tr><td></td></tr> 54 47 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> … … 70 63 <tr><td class="mdescLeft"> </td><td class="mdescRight">find common rv, flag <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr> 71 64 <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)" --> 72 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>65 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> &rv, <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1mpdf.html#5a5f08950daa08b85b01ddf4e1c36288">rvc</a>)</td></tr> 73 66 74 67 <tr><td class="mdescLeft"> </td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr> 68 <tr><td colspan="2"><div class="groupHeader">Matematical operations</div></td></tr> 75 69 <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#f0c1db6fcbb3aae2dd6123884457a367">samplecond</a> (const vec &cond)</td></tr> 76 70 77 71 <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="#f0c1db6fcbb3aae2dd6123884457a367"></a><br></td></tr> 78 <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>79 80 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="# ee26963a637b2ea1fb1933652981e652"></a><br></td></tr>72 <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#afe4185b26baeb03688202e254d3b005">samplecond_m</a> (const vec &cond, int N)</td></tr> 73 74 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns. <a href="#afe4185b26baeb03688202e254d3b005"></a><br></td></tr> 81 75 <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)" --> 82 76 virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#db94784a9aacf74c65c5a014f6743530">condition</a> (const vec &cond)</td></tr> … … 87 81 88 82 <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of evallogcond. <br></td></tr> 89 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b3aba7311038bf990d706a64cab60cf8"></a><!-- doxytag: member="bdm::mprod::_rvc" ref="b3aba7311038bf990d706a64cab60cf8" args="() const " --> 90 <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> 91 92 <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> 93 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222d5280e309c5a053ba73841e98c151"></a><!-- doxytag: member="bdm::mprod::_rv" ref="222d5280e309c5a053ba73841e98c151" args="() const " --> 94 <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> 95 96 <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> 83 <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> 84 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5571482d150fbcb72cc36f6694ce1a10"></a><!-- doxytag: member="bdm::mprod::_rv" ref="5571482d150fbcb72cc36f6694ce1a10" args="()" --> 85 <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rv</b> ()</td></tr> 86 87 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="26001264236846897bd11e4baad47245"></a><!-- doxytag: member="bdm::mprod::_rvc" ref="26001264236846897bd11e4baad47245" args="()" --> 88 <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><b>_rvc</b> ()</td></tr> 89 90 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c2bae3e1e90874e72941863974ec0ed"></a><!-- doxytag: member="bdm::mprod::dimension" ref="1c2bae3e1e90874e72941863974ec0ed" args="()" --> 91 int </td><td class="memItemRight" valign="bottom"><b>dimension</b> ()</td></tr> 92 93 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35e135910aed187b7290742f50e61bc8"></a><!-- doxytag: member="bdm::mprod::dimensionc" ref="35e135910aed187b7290742f50e61bc8" args="()" --> 94 int </td><td class="memItemRight" valign="bottom"><b>dimensionc</b> ()</td></tr> 95 97 96 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1892fe3933488942253679f068e9e7f6"></a><!-- doxytag: member="bdm::mprod::_epdf" ref="1892fe3933488942253679f068e9e7f6" args="()" --> 98 <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> 99 100 <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> 97 <a class="el" href="classbdm_1_1epdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><b>_epdf</b> ()</td></tr> 98 101 99 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e843fd11c410a99dad2b88c55aca80"></a><!-- doxytag: member="bdm::mprod::_e" ref="05e843fd11c410a99dad2b88c55aca80" args="()" --> 102 <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> 103 104 <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> 100 <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><b>_e</b> ()</td></tr> 101 102 <tr><td colspan="2"><div class="groupHeader">Connection to other objects</div></td></tr> 103 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7631a5570e4ade1420065e8df78f4401"></a><!-- doxytag: member="bdm::mprod::set_rvc" ref="7631a5570e4ade1420065e8df78f4401" args="(const RV &rvc0)" --> 104 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> 105 106 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18ac26bc2f96ae01ef4eb06178abbd75"></a><!-- doxytag: member="bdm::mprod::set_rv" ref="18ac26bc2f96ae01ef4eb06178abbd75" args="(const RV &rv0)" --> 107 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> 108 109 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8e3798150b42fd1f3e16ddbbe0e7045"></a><!-- doxytag: member="bdm::mprod::isnamed" ref="f8e3798150b42fd1f3e16ddbbe0e7045" args="()" --> 110 bool </td><td class="memItemRight" valign="bottom"><b>isnamed</b> ()</td></tr> 111 105 112 <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> 106 113 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eca722ed1b219727c6c0f8cbc6bf1e51"></a><!-- doxytag: member="bdm::mprod::epdfs" ref="eca722ed1b219727c6c0f8cbc6bf1e51" args="" --> 107 114 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> 108 115 109 <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>116 <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>._epdf() <br></td></tr> 110 117 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acf679b3b1d48629c5a042d9ac0d973f"></a><!-- doxytag: member="bdm::mprod::dls" ref="acf679b3b1d48629c5a042d9ac0d973f" args="" --> 111 118 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> … … 120 127 121 128 <tr><td class="mdescLeft"> </td><td class="mdescRight">Elements of composition. <br></td></tr> 122 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" 9bcfb45435d30983f436d41c298cbb51"></a><!-- doxytag: member="bdm::mprod::rv" ref="9bcfb45435d30983f436d41c298cbb51" args="" -->123 <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>124 125 <tr><td class="mdescLeft"> </td><td class="mdescRight"> modeled random variable<br></td></tr>129 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c1900976ff13dbc09c9729b3bbff9e6"></a><!-- doxytag: member="bdm::mprod::dimc" ref="7c1900976ff13dbc09c9729b3bbff9e6" args="" --> 130 int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1mpdf.html#7c1900976ff13dbc09c9729b3bbff9e6">dimc</a></td></tr> 131 132 <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the condition <br></td></tr> 126 133 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a5f08950daa08b85b01ddf4e1c36288"></a><!-- doxytag: member="bdm::mprod::rvc" ref="5a5f08950daa08b85b01ddf4e1c36288" args="" --> 127 134 <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> … … 133 140 <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> 134 141 </table> 135 <hr><a name="_details"></a><h2>Detailed Description</h2> 136 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>. 137 <p> 138 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> 142 <hr><h2>Member Function Documentation</h2> 139 143 <a class="anchor" name="1a37c2aaba8bde7fce5351c39b6e1168"></a><!-- doxytag: member="bdm::mprod::samplecond" ref="1a37c2aaba8bde7fce5351c39b6e1168" args="(const vec &cond, double &ll)" --> 140 144 <div class="memitem"> … … 166 170 <p> 167 171 Ugly hack to help to discover if mpfs are not in proper order. Correct solution = check that explicitely. 168 <p>References <a class="el" href="libBM_8h-source.html#l00 086">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#l00438">bdm::compositepdf::mpdfs</a>, <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>, and <a class="el" href="libBM_8h-source.html#l00229">bdm::mpdf::rv</a>.</p>172 <p>References <a class="el" href="libBM_8h-source.html#l00272">bdm::epdf::dimension()</a>, <a class="el" href="emix_8h-source.html#l00168">dls</a>, <a class="el" href="libBM_8h-source.html#l00288">bdm::mpdf::ep</a>, <a class="el" href="emix_8h-source.html#l00166">epdfs</a>, <a class="el" href="libBM_8h-source.html#l00508">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00506">bdm::compositepdf::n</a>.</p> 169 173 170 174 </div> … … 195 199 </dl> 196 200 197 <p>References <a class="el" href="libBM_8cpp-source.html#l000 60">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00438">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>.</p>201 <p>References <a class="el" href="libBM_8cpp-source.html#l00059">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00508">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00506">bdm::compositepdf::n</a>.</p> 198 202 199 203 </div> … … 224 228 </dl> 225 229 226 <p>References <a class="el" href="libBM_8h-source.html#l00 250">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00233">bdm::mpdf::ep</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>230 <p>References <a class="el" href="libBM_8h-source.html#l00315">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00288">bdm::mpdf::ep</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> 227 231 228 232 <p>Referenced by <a class="el" href="libPF_8h-source.html#l00143">bdm::MPF< BM_T >::bayes()</a>, <a class="el" href="libPF_8cpp-source.html#l00007">bdm::PF::bayes()</a>, and <a class="el" href="libDS_8cpp-source.html#l00044">bdm::ArxDS::step()</a>.</p> … … 230 234 </div> 231 235 </div><p> 232 <a class="anchor" name=" ee26963a637b2ea1fb1933652981e652"></a><!-- doxytag: member="bdm::mprod::samplecond_m" ref="ee26963a637b2ea1fb1933652981e652" args="(const vec &cond, vec &ll, int N)" -->236 <a class="anchor" name="afe4185b26baeb03688202e254d3b005"></a><!-- doxytag: member="bdm::mprod::samplecond_m" ref="afe4185b26baeb03688202e254d3b005" args="(const vec &cond, int N)" --> 233 237 <div class="memitem"> 234 238 <div class="memproto"> … … 239 243 <td class="paramtype">const vec & </td> 240 244 <td class="paramname"> <em>cond</em>, </td> 241 </tr>242 <tr>243 <td class="paramkey"></td>244 <td></td>245 <td class="paramtype">vec & </td>246 <td class="paramname"> <em>ll</em>, </td>247 245 </tr> 248 246 <tr> … … 272 270 </dl> 273 271 274 <p>References <a class="el" href="libBM_8h-source.html#l00 250">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00086">bdm::RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00233">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#l00229">bdm::mpdf::rv</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>272 <p>References <a class="el" href="libBM_8h-source.html#l00315">bdm::mpdf::condition()</a>, <a class="el" href="libBM_8h-source.html#l00272">bdm::epdf::dimension()</a>, <a class="el" href="libBM_8h-source.html#l00288">bdm::mpdf::ep</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p> 275 273 276 274 </div> … … 279 277 <li><a class="el" href="emix_8h-source.html">emix.h</a></ul> 280 278 </div> 281 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 10:20:522009 for mixpp by 279 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 23:34:03 2009 for mixpp by 282 280 <a href="http://www.doxygen.org/index.html"> 283 281 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>