Changeset 608 for library/doc/html/classbdm_1_1emix.html
- Timestamp:
- 09/12/09 11:41:43 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/doc/html/classbdm_1_1emix.html
r591 r608 87 87 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8839dbbb0d1276a8dbe957a67cfe0dc"></a><!-- doxytag: member="bdm::emix::sample" ref="ae8839dbbb0d1276a8dbe957a67cfe0dc" args="() const " --> 88 88 vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae8839dbbb0d1276a8dbe957a67cfe0dc">sample</a> () const </td></tr> 89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_ 7.png"/> from density <img class="formulaInl" alt="$ f_x()$" src="form_8.png"/>. <br/></td></tr>89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_3.png"/> from density <img class="formulaInl" alt="$ f_x()$" src="form_13.png"/>. <br/></td></tr> 90 90 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3a5390bc56e81ef3b0debc0f185fa8a"></a><!-- doxytag: member="bdm::emix::mean" ref="aa3a5390bc56e81ef3b0debc0f185fa8a" args="() const " --> 91 91 vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#aa3a5390bc56e81ef3b0debc0f185fa8a">mean</a> () const </td></tr> … … 94 94 vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae9a627023cdf90c9ffd8eef726595c86">variance</a> () const </td></tr> 95 95 <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> 96 <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a0f3db99f730bde6b7953931594537e8e">evallog</a> (const vec &val) const </td></tr> 96 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f3db99f730bde6b7953931594537e8e"></a><!-- doxytag: member="bdm::emix::evallog" ref="a0f3db99f730bde6b7953931594537e8e" args="(const vec &val) const " --> 97 double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a0f3db99f730bde6b7953931594537e8e">evallog</a> (const vec &val) const </td></tr> 98 <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity. <br/></td></tr> 97 99 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23af1986e2afcbc8c7e1c30f610e703b"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="a23af1986e2afcbc8c7e1c30f610e703b" args="(const mat &Val) const " --> 98 100 vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a23af1986e2afcbc8c7e1c30f610e703b">evallog_m</a> (const mat &Val) const </td></tr> … … 120 122 <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br/></td></tr> 121 123 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> 124 <tr><td class="mdescLeft"> </td><td class="mdescRight">Load from structure with elements:. <a href="#afa9efc98a065b31c630fe18cc418f725"></a><br/></td></tr> 122 125 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::emix::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> 123 126 virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> … … 149 152 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::emix::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> 150 153 virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> 151 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_ 9.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_10.png"/>. <br/></td></tr>154 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png"/>. <br/></td></tr> 152 155 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="a9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> 153 156 virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array< vec > &Avec) const </td></tr> … … 157 160 <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br/></td></tr> 158 161 <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> 159 <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp14fc6e1cb822e9dfc5edc16c20fabe11"></a> 162 <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp14fc6e1cb822e9dfc5edc16c20fabe11"></a>Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: </p> 160 163 <br/><br/></div></td></tr> 161 164 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::emix::isnamed" ref="ac4b863ff84c7a4882fb3ad18556027f9" args="() const " --> … … 189 192 <p>Density function: </p> 190 193 <p class="formulaDsp"> 191 <img class="formulaDsp" alt="\[ f(x) = \sum_{i=1}^{n} w_{i} f_i(x), \quad \sum_{i=1}^n w_i = 1. \]" src="form_ 64.png"/>194 <img class="formulaDsp" alt="\[ f(x) = \sum_{i=1}^{n} w_{i} f_i(x), \quad \sum_{i=1}^n w_i = 1. \]" src="form_72.png"/> 192 195 </p> 193 <p> where <img class="formulaInl" alt="$f_i(x)$" src="form_ 65.png"/> is any density on random variable <img class="formulaInl" alt="$x$" src="form_1.png"/>, called <em>component</em>, </p>196 <p> where <img class="formulaInl" alt="$f_i(x)$" src="form_73.png"/> is any density on random variable <img class="formulaInl" alt="$x$" src="form_1.png"/>, called <em>component</em>, </p> 194 197 <hr/><h2>Member Function Documentation</h2> 195 <a class="anchor" id="a0f3db99f730bde6b7953931594537e8e"></a><!-- doxytag: member="bdm::emix::evallog" ref="a0f3db99f730bde6b7953931594537e8e" args="(const vec &val) const " -->196 <div class="memitem">197 <div class="memproto">198 <table class="memname">199 <tr>200 <td class="memname">double bdm::emix::evallog </td>201 <td>(</td>202 <td class="paramtype">const vec & </td>203 <td class="paramname"> <em>val</em></td>204 <td> ) </td>205 <td> const<code> [inline, virtual]</code></td>206 </tr>207 </table>208 </div>209 <div class="memdoc">210 <p>Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity </p>211 212 <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#adeab266d63c236c277538867d5c3f249">bdm::epdf</a>.</p>213 214 <p>References <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="emix_8h_source.html#l00116">Coms</a>, and <a class="el" href="emix_8h_source.html#l00113">w</a>.</p>215 216 <p>Referenced by <a class="el" href="merger_8cpp_source.html#l00064">bdm::merger_mix::merge()</a>.</p>217 218 </div>219 </div>220 198 <a class="anchor" id="afa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::emix::from_setting" ref="afa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> 221 199 <div class="memitem"> … … 233 211 </div> 234 212 <div class="memdoc"> 235 <p>Load from structure with elements: </p> 236 <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> 237 <span class="comment">// elements of offsprings</span> 238 } 213 214 <p>Load from structure with elements:. </p> 215 <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> 216 <span class="comment">// elements of offsprings</span> 217 } 239 218 </pre></div> 240 219 <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> 241 220 242 <p>Reimplemented in <a class="el" href="classbdm_1_1 enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#a55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#a8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#a77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#a10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#a9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p>243 244 <p>References <a class="el" href="bdmbase_8h_source.html#l00 357">bdm::epdf::set_rv()</a>.</p>221 <p>Reimplemented in <a class="el" href="classbdm_1_1mexEpdf.html#af371482ea8d21c8ac01f011b3d942298">bdm::mexEpdf</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#a55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#a8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#a77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#a10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#a9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p> 222 223 <p>References <a class="el" href="bdmbase_8h_source.html#l00403">bdm::epdf::set_rv()</a>.</p> 245 224 246 225 </div> … … 274 253 <p>Shared pointers in Coms are kept inside this instance and shouldn't be modified after being passed to this method. </p> 275 254 276 <p>References <a class="el" href="bdmbase_8h_source.html#l00 368">bdm::epdf::_rv()</a>, <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="emix_8h_source.html#l00116">Coms</a>, <a class="el" href="bdmbase_8h_source.html#l00272">bdm::epdf::dim</a>, <a class="el" href="bdmbase_8h_source.html#l00378">bdm::epdf::dimension()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00132">bdm::RV::equal()</a>, <a class="el" href="bdmbase_8h_source.html#l00362">bdm::epdf::isnamed()</a>, <a class="el" href="emix_8h_source.html#l00193">set_rv()</a>, and <a class="el" href="emix_8h_source.html#l00113">w</a>.</p>255 <p>References <a class="el" href="bdmbase_8h_source.html#l00414">bdm::epdf::_rv()</a>, <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="emix_8h_source.html#l00116">Coms</a>, <a class="el" href="bdmbase_8h_source.html#l00318">bdm::epdf::dim</a>, <a class="el" href="bdmbase_8h_source.html#l00424">bdm::epdf::dimension()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00141">bdm::RV::equal()</a>, <a class="el" href="bdmbase_8h_source.html#l00408">bdm::epdf::isnamed()</a>, <a class="el" href="emix_8h_source.html#l00193">set_rv()</a>, and <a class="el" href="emix_8h_source.html#l00113">w</a>.</p> 277 256 278 257 <p>Referenced by <a class="el" href="mixtures_8cpp_source.html#l00143">bdm::MixEF::epredictor()</a>, and <a class="el" href="emix_8cpp_source.html#l00045">marginal()</a>.</p> … … 285 264 </ul> 286 265 </div> 287 <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 30 22:10:502009 for mixpp by 266 <hr size="1"/><address style="text-align: right;"><small>Generated on Tue Sep 8 22:11:33 2009 for mixpp by 288 267 <a href="http://www.doxygen.org/index.html"> 289 268 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>