Show
Ignore:
Timestamp:
10/15/08 19:08:06 (16 years ago)
Author:
smidl
Message:

Modifications of BDM to reflect changes in basics

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/html/classmerger.html

    r171 r180  
    2424</div> 
    2525<div class="contents"> 
    26 <h1>merger Class Reference</h1><!-- doxytag: class="merger" --><!-- doxytag: inherits="mprod" -->Function for general combination of pdfs.   
     26<h1>merger Class Reference</h1><!-- doxytag: class="merger" --><!-- doxytag: inherits="compositepdf,epdf" -->Function for general combination of pdfs.   
    2727<a href="#_details">More...</a> 
    2828<p> 
     
    3434<p><center><img src="classmerger__inherit__graph.png" border="0" usemap="#merger__inherit__map" alt="Inheritance graph"></center> 
    3535<map name="merger__inherit__map"> 
    36 <area shape="rect" href="classmprod.html" title="Chain rule decomposition of epdf." alt="" coords="7,84,71,111"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="12,7,65,33"></map> 
     36<area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes." alt="" coords="5,7,112,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="136,7,184,33"></map> 
    3737<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> 
    3838<div class="dynheader"> 
     
    4141<p><center><img src="classmerger__coll__graph.png" border="0" usemap="#merger__coll__map" alt="Collaboration graph"></center> 
    4242<map name="merger__coll__map"> 
    43 <area shape="rect" href="classmprod.html" title="Chain rule decomposition of epdf." alt="" coords="13,353,77,380"><area shape="rect" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies." alt="" coords="5,204,59,231"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="40,7,77,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="75,105,123,132"><area shape="rect" href="classeEF.html" title="General conjugate exponential family posterior density." alt="" coords="163,204,205,231"><area shape="rect" href="classenorm.html" title="enorm\&lt; fsqmat \&gt;" alt="" coords="135,407,273,433"><area shape="rect" href="classenorm.html" title="Gaussian density with positive definite (decomposed) covariance matrix." alt="" coords="63,300,185,327"><area shape="rect" href="classfsqmat.html" title="Fake sqmat. This class maps sqmat operations to operations on full matrix." alt="" coords="260,300,327,327"><area shape="rect" href="classsqmat.html" title="Virtual class for representation of double symmetric matrices in square&#45;root form..." alt="" coords="263,204,324,231"></map> 
     43<area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes." alt="" coords="5,481,112,508"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="187,103,235,129"><area shape="rect" href="classeprod.html" title="Product of independent epdfs. For dependent pdfs, use mprod." alt="" coords="171,236,229,263"><area shape="rect" href="classeEF.html" title="General conjugate exponential family posterior density." alt="" coords="241,183,284,209"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="252,7,289,33"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="333,183,373,209"><area shape="rect" href="classMixEF.html" title="Mixture of Exponential Family Densities." alt="" coords="215,481,271,508"><area shape="rect" href="classBMEF.html" title="Estimator for Exponential family." alt="" coords="325,289,381,316"><area shape="rect" href="classmultiBM.html" title="Estimator for Multinomial density." alt="" coords="237,385,309,412"><area shape="rect" href="classeDirich.html" title="Dirichlet posterior density." alt="" coords="237,289,301,316"></map> 
    4444<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> 
    4545 
     
    4848<tr><td></td></tr> 
    4949<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> 
    50 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a6a721294321c2e412ca0084c636b69"></a><!-- doxytag: member="merger::merger" ref="1a6a721294321c2e412ca0084c636b69" args="(const Array&lt; mpdf * &gt; &amp;in_sources)" --> 
    51 &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#1a6a721294321c2e412ca0084c636b69">merger</a> (const Array&lt; <a class="el" href="classmpdf.html">mpdf</a> * &gt; &amp;in_sources)</td></tr> 
     50<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3f9a955329eab65026e8322e9027d469"></a><!-- doxytag: member="merger::merger" ref="3f9a955329eab65026e8322e9027d469" args="(const Array&lt; mpdf * &gt; &amp;S)" --> 
     51&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#3f9a955329eab65026e8322e9027d469">merger</a> (const Array&lt; <a class="el" href="classmpdf.html">mpdf</a> * &gt; &amp;S)</td></tr> 
    5252 
    5353<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr> 
    54 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#51e425ee1dd46d73353526e6a1c24ca3">~merger</a> ()</td></tr> 
     54<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79420e251308df4502c834171d518ad9"></a><!-- doxytag: member="merger::set_parameters" ref="79420e251308df4502c834171d518ad9" args="(double beta0, int Ns0, int Nc0)" --> 
     55void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#79420e251308df4502c834171d518ad9">set_parameters</a> (double beta0, int Ns0, int Nc0)</td></tr> 
    5556 
    56 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for future use  <a href="#51e425ee1dd46d73353526e6a1c24ca3"></a><br></td></tr> 
    57 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c15df5d0c7bb9dc82dd78f037b2550a8"></a><!-- doxytag: member="merger::evalpdflog" ref="c15df5d0c7bb9dc82dd78f037b2550a8" args="(const vec &amp;val) const " --> 
    58 double&nbsp;</td><td class="memItemRight" valign="bottom"><b>evalpdflog</b> (const vec &amp;val) const </td></tr> 
     57<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr> 
     58<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02d2a445e44a87f37ee3a2b9b40cffd1"></a><!-- doxytag: member="merger::init" ref="02d2a445e44a87f37ee3a2b9b40cffd1" args="()" --> 
     59void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#02d2a445e44a87f37ee3a2b9b40cffd1">init</a> ()</td></tr> 
    5960 
    60 <tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#a48887eb8738a9e5550bfc38eb8e9d68">samplecond</a> (const vec &amp;cond, double &amp;ll)</td></tr> 
     61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize the proposal density. This function must be called before <a class="el" href="classmerger.html#bc23accc77ec766bce7202934e2c180c" title="Create a mixture density, make sure to call init() before the first call.">merge()</a>! <br></td></tr> 
     62<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e56ad4a2bc9be2ddfc051626adf27715"></a><!-- doxytag: member="merger::merge" ref="e56ad4a2bc9be2ddfc051626adf27715" args="(const epdf *g0)" --> 
     63void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#e56ad4a2bc9be2ddfc051626adf27715">merge</a> (const <a class="el" href="classepdf.html">epdf</a> *g0)</td></tr> 
    6164 
    62 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  <a href="#a48887eb8738a9e5550bfc38eb8e9d68"></a><br></td></tr> 
    63 <tr><td class="memItemLeft" nowrap align="right" valign="top">mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#e171c40e210539c2af01d6237785620b">samplecond</a> (const vec &amp;cond, vec &amp;ll, int N)</td></tr> 
     65<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density using known proposal. <br></td></tr> 
     66<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc23accc77ec766bce7202934e2c180c"></a><!-- doxytag: member="merger::merge" ref="bc23accc77ec766bce7202934e2c180c" args="()" --> 
     67void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#bc23accc77ec766bce7202934e2c180c">merge</a> ()</td></tr> 
    6468 
    65 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns.  <a href="#e171c40e210539c2af01d6237785620b"></a><br></td></tr> 
    66 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f95a0cc6ab40611f46804682446ed83"></a><!-- doxytag: member="merger::condition" ref="0f95a0cc6ab40611f46804682446ed83" args="(const vec &amp;cond)" --> 
    67 virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#0f95a0cc6ab40611f46804682446ed83">condition</a> (const vec &amp;cond)</td></tr> 
     69<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density, make sure to call <a class="el" href="classmerger.html#02d2a445e44a87f37ee3a2b9b40cffd1" title="Initialize the proposal density. This function must be called before merge()!">init()</a> before the first call. <br></td></tr> 
     70<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="217c65f335c603033fa09a2ecc64bc05"></a><!-- doxytag: member="merger::lognorm_merge" ref="217c65f335c603033fa09a2ecc64bc05" args="(mat &amp;lW)" --> 
     71vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#217c65f335c603033fa09a2ecc64bc05">lognorm_merge</a> (mat &amp;lW)</td></tr> 
    6872 
    69 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update <code>ep</code> so that it represents this <a class="el" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> conditioned on <code>rvc</code> = cond. <br></td></tr> 
    70 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80b738ece5bd4f8c4edaee4b38906f91"></a><!-- doxytag: member="merger::evalcond" ref="80b738ece5bd4f8c4edaee4b38906f91" args="(const vec &amp;dt, const vec &amp;cond)" --> 
    71 virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#80b738ece5bd4f8c4edaee4b38906f91">evalcond</a> (const vec &amp;dt, const vec &amp;cond)</td></tr> 
     73<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Merge log-likelihood values. <br></td></tr> 
     74<tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#379198c3d2063bfa63f5d1245a2511ba">sample</a> () const </td></tr> 
    7275 
    73 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shortcut for conditioning and evaluation of the internal <a class="el" href="classepdf.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> 
    74 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec9c850305984582548e8deb64f0ffe8"></a><!-- doxytag: member="merger::_rvc" ref="ec9c850305984582548e8deb64f0ffe8" args="()" --> 
    75 <a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#ec9c850305984582548e8deb64f0ffe8">_rvc</a> ()</td></tr> 
     76<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8c37688902b1a1e9fa32edc5709e5a00"></a><!-- doxytag: member="merger::evalpdflog" ref="8c37688902b1a1e9fa32edc5709e5a00" args="(const vec &amp;dt) const " --> 
     77double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#8c37688902b1a1e9fa32edc5709e5a00">evalpdflog</a> (const vec &amp;dt) const </td></tr> 
    7678 
    77 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr> 
    78 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e71ad4c66d5884c82d4a3b06b42fe32"></a><!-- doxytag: member="merger::_rv" ref="1e71ad4c66d5884c82d4a3b06b42fe32" args="()" --> 
    79 <a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#1e71ad4c66d5884c82d4a3b06b42fe32">_rv</a> ()</td></tr> 
     79<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> 
     80<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a46999cd77047d5d4ac6c1cb735a83e"></a><!-- doxytag: member="merger::mean" ref="3a46999cd77047d5d4ac6c1cb735a83e" args="() const " --> 
     81vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#3a46999cd77047d5d4ac6c1cb735a83e">mean</a> () const </td></tr> 
    8082 
    81 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr> 
    82 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e17780ee5b2cfe05922a6c56af1462f8"></a><!-- doxytag: member="merger::_epdf" ref="e17780ee5b2cfe05922a6c56af1462f8" args="()" --> 
    83 <a class="el" href="classepdf.html">epdf</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#e17780ee5b2cfe05922a6c56af1462f8">_epdf</a> ()</td></tr> 
     83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr> 
     84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="51e425ee1dd46d73353526e6a1c24ca3"></a><!-- doxytag: member="merger::~merger" ref="51e425ee1dd46d73353526e6a1c24ca3" args="()" --> 
     85virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#51e425ee1dd46d73353526e6a1c24ca3">~merger</a> ()</td></tr> 
    8486 
    85 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr> 
     87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for future use <br></td></tr> 
     88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="635d219fb3e32852400d6f98aa4bdc93"></a><!-- doxytag: member="merger::getrv" ref="635d219fb3e32852400d6f98aa4bdc93" args="(bool checkoverlap=false)" --> 
     89<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>getrv</b> (bool checkoverlap=false)</td></tr> 
     90 
     91<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a4479785c1fdb2cc351fbea07b899ac"></a><!-- doxytag: member="merger::setrvc" ref="5a4479785c1fdb2cc351fbea07b899ac" args="(const RV &amp;rv, RV &amp;rvc)" --> 
     92void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setrvc</b> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>, <a class="el" href="classRV.html">RV</a> &amp;rvc)</td></tr> 
     93 
     94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08958c8f76d65de94ecc37b8d90bc77a"></a><!-- doxytag: member="merger::setindices" ref="08958c8f76d65de94ecc37b8d90bc77a" args="(const RV &amp;rv)" --> 
     95void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setindices</b> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr> 
     96 
     97<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3bd4ada95f381ea6c4cff2dc86e957c4"></a><!-- doxytag: member="merger::setrvcinrv" ref="3bd4ada95f381ea6c4cff2dc86e957c4" args="(const RV &amp;rvc, Array&lt; ivec &gt; &amp;rvcind)" --> 
     98void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setrvcinrv</b> (const <a class="el" href="classRV.html">RV</a> &amp;rvc, Array&lt; ivec &gt; &amp;rvcind)</td></tr> 
     99 
     100<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54d7dd53a641b618771cd9bee135181f"></a><!-- doxytag: member="merger::sampleN" ref="54d7dd53a641b618771cd9bee135181f" args="(int N) const " --> 
     101virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#54d7dd53a641b618771cd9bee135181f">sampleN</a> (int N) const </td></tr> 
     102 
     103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns N samples from density <img class="formulaInl" alt="$epdf(rv)$" src="form_59.png">. <br></td></tr> 
     104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ea597362e11a0040fe7c990269d072c"></a><!-- doxytag: member="merger::eval" ref="3ea597362e11a0040fe7c990269d072c" args="(const vec &amp;val) const " --> 
     105virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ea597362e11a0040fe7c990269d072c">eval</a> (const vec &amp;val) const </td></tr> 
     106 
     107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr> 
     108<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cebbdd7a85e6328f7358fc0ba8eee06c"></a><!-- doxytag: member="merger::evalpdflog_m" ref="cebbdd7a85e6328f7358fc0ba8eee06c" args="(const mat &amp;Val) const " --> 
     109virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#cebbdd7a85e6328f7358fc0ba8eee06c">evalpdflog_m</a> (const mat &amp;Val) const </td></tr> 
     110 
     111<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> 
     112<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0d32aabb4cbba347e0c37fe8607562"></a><!-- doxytag: member="merger::_rv" ref="ca0d32aabb4cbba347e0c37fe8607562" args="() const " --> 
     113const <a class="el" href="classRV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#ca0d32aabb4cbba347e0c37fe8607562">_rv</a> () const </td></tr> 
     114 
     115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function, possibly dangerous! <br></td></tr> 
     116<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7fb94ce90d1ac7077d29f7d6a6c3e0a5"></a><!-- doxytag: member="merger::_renewrv" ref="7fb94ce90d1ac7077d29f7d6a6c3e0a5" args="(const RV &amp;in_rv)" --> 
     117void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#7fb94ce90d1ac7077d29f7d6a6c3e0a5">_renewrv</a> (const <a class="el" href="classRV.html">RV</a> &amp;in_rv)</td></tr> 
     118 
     119<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr> 
    86120<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> 
    87 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1712341746811f2844de5499817abb46"></a><!-- doxytag: member="merger::condpdf" ref="1712341746811f2844de5499817abb46" args="" --> 
    88 <a class="el" href="classenorm.html">enorm</a>&lt; <a class="el" href="classfsqmat.html">fsqmat</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#1712341746811f2844de5499817abb46">condpdf</a></td></tr> 
     121<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="021d1522cea70db8545d708afd32ec2f"></a><!-- doxytag: member="merger::Mix" ref="021d1522cea70db8545d708afd32ec2f" args="" --> 
     122<a class="el" href="classMixEF.html">MixEF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#021d1522cea70db8545d708afd32ec2f">Mix</a></td></tr> 
    89123 
    90 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Additional pdf on the part in condition (if undefined);. <br></td></tr> 
    91 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11eb177ef6409926b2ba3b4630bceab1"></a><!-- doxytag: member="merger::overlaps" ref="11eb177ef6409926b2ba3b4630bceab1" args="" --> 
    92 Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#11eb177ef6409926b2ba3b4630bceab1">overlaps</a></td></tr> 
     124<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal mixture of EF models. <br></td></tr> 
     125<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce84de1824875b4262eefb640e8c6d69"></a><!-- doxytag: member="merger::Ns" ref="ce84de1824875b4262eefb640e8c6d69" args="" --> 
     126int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#ce84de1824875b4262eefb640e8c6d69">Ns</a></td></tr> 
    93127 
    94 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find potential overlaps in rv. <br></td></tr> 
    95 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7dcf1dde4a220f8c7b97ed987bff6c1f"></a><!-- doxytag: member="merger::n" ref="7dcf1dde4a220f8c7b97ed987bff6c1f" args="" --> 
    96 int&nbsp;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr> 
     128<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of samples used in approximation. <br></td></tr> 
     129<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6acf33e1c64aaaee20689725e8110f65"></a><!-- doxytag: member="merger::Nc" ref="6acf33e1c64aaaee20689725e8110f65" args="" --> 
     130int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#6acf33e1c64aaaee20689725e8110f65">Nc</a></td></tr> 
    97131 
    98 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0883ce383e8475546df138719918f70e"></a><!-- doxytag: member="merger::epdfs" ref="0883ce383e8475546df138719918f70e" args="" --> 
    99 Array&lt; <a class="el" href="classepdf.html">epdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>epdfs</b></td></tr> 
     132<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of components in a mixture. <br></td></tr> 
     133<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e68a72e2740007ae68545e378c7701ad"></a><!-- doxytag: member="merger::beta" ref="e68a72e2740007ae68545e378c7701ad" args="" --> 
     134double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#e68a72e2740007ae68545e378c7701ad">beta</a></td></tr> 
    100135 
    101 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2389c7585ac5d0d79587625186818889"></a><!-- doxytag: member="merger::mpdfs" ref="2389c7585ac5d0d79587625186818889" args="" --> 
    102 Array&lt; <a class="el" href="classmpdf.html">mpdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>mpdfs</b></td></tr> 
     136<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr> 
     137<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1646fe41ff5934d010e54ccaa46133f"></a><!-- doxytag: member="merger::n" ref="c1646fe41ff5934d010e54ccaa46133f" args="" --> 
     138int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#c1646fe41ff5934d010e54ccaa46133f">n</a></td></tr> 
    103139 
    104 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c8f78fbcdb4e38ecd3197d2958082497"></a><!-- doxytag: member="merger::rvinds" ref="c8f78fbcdb4e38ecd3197d2958082497" args="" --> 
    105 Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#c8f78fbcdb4e38ecd3197d2958082497">rvinds</a></td></tr> 
     140<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr> 
     141<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="637877061b917a16a0421bb5c4cd480d"></a><!-- doxytag: member="merger::mpdfs" ref="637877061b917a16a0421bb5c4cd480d" args="" --> 
     142Array&lt; <a class="el" href="classmpdf.html">mpdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#637877061b917a16a0421bb5c4cd480d">mpdfs</a></td></tr> 
     143 
     144<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elements of composition. <br></td></tr> 
     145<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4d4a8269f9faefeca8cdc251a5a29a7f"></a><!-- doxytag: member="merger::rvsinrv" ref="4d4a8269f9faefeca8cdc251a5a29a7f" args="" --> 
     146Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#4d4a8269f9faefeca8cdc251a5a29a7f">rvsinrv</a></td></tr> 
    106147 
    107148<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indeces of rvs in common rv. <br></td></tr> 
    108 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1725c7b497a27ab3c4889b846666b516"></a><!-- doxytag: member="merger::rvcinrv" ref="1725c7b497a27ab3c4889b846666b516" args="" --> 
    109 Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#1725c7b497a27ab3c4889b846666b516">rvcinrv</a></td></tr> 
     149<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3df07bb5e3ed36a3119b145043296676"></a><!-- doxytag: member="merger::rvcsinrv" ref="3df07bb5e3ed36a3119b145043296676" args="" --> 
     150Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#3df07bb5e3ed36a3119b145043296676">rvcsinrv</a></td></tr> 
    110151 
    111152<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indeces of rvc in common rv. <br></td></tr> 
    112 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc85192d8abc01832937ed8b62e363a6"></a><!-- doxytag: member="merger::rvcinds" ref="cc85192d8abc01832937ed8b62e363a6" args="" --> 
    113 Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmprod.html#cc85192d8abc01832937ed8b62e363a6">rvcinds</a></td></tr> 
     153<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="merger::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" --> 
     154<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a></td></tr> 
    114155 
    115 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indeces of rvc in common rvc. <br></td></tr> 
    116 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6687c07ff07d47812dd565368ca59eb"></a><!-- doxytag: member="merger::rv" ref="f6687c07ff07d47812dd565368ca59eb" args="" --> 
    117 <a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#f6687c07ff07d47812dd565368ca59eb">rv</a></td></tr> 
    118  
    119 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modeled random variable <br></td></tr> 
    120 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="acb7dda792b3cd5576f39fa3129abbab"></a><!-- doxytag: member="merger::rvc" ref="acb7dda792b3cd5576f39fa3129abbab" args="" --> 
    121 <a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#acb7dda792b3cd5576f39fa3129abbab">rvc</a></td></tr> 
    122  
    123 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">random variable in condition <br></td></tr> 
    124 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7aa894208a32f3487827df6d5054424c"></a><!-- doxytag: member="merger::ep" ref="7aa894208a32f3487827df6d5054424c" args="" --> 
    125 <a class="el" href="classepdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmpdf.html#7aa894208a32f3487827df6d5054424c">ep</a></td></tr> 
    126  
    127 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pointer to internal <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> <br></td></tr> 
     156<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr> 
    128157</table> 
    129158<hr><a name="_details"></a><h2>Detailed Description</h2> 
    130159Function for general combination of pdfs.  
    131160<p> 
    132 Parent of simple arithmentic or geometric combinations <hr><h2>Constructor &amp; Destructor Documentation</h2> 
    133 <a class="anchor" name="51e425ee1dd46d73353526e6a1c24ca3"></a><!-- doxytag: member="merger::~merger" ref="51e425ee1dd46d73353526e6a1c24ca3" args="()" --> 
     161Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <hr><h2>Member Function Documentation</h2> 
     162<a class="anchor" name="379198c3d2063bfa63f5d1245a2511ba"></a><!-- doxytag: member="merger::sample" ref="379198c3d2063bfa63f5d1245a2511ba" args="() const " --> 
    134163<div class="memitem"> 
    135164<div class="memproto"> 
    136165      <table class="memname"> 
    137166        <tr> 
    138           <td class="memname">virtual merger::~merger           </td> 
     167          <td class="memname">vec merger::sample           </td> 
    139168          <td>(</td> 
    140169          <td class="paramname">          </td> 
    141170          <td>&nbsp;)&nbsp;</td> 
    142           <td><code> [inline, virtual]</code></td> 
     171          <td> const<code> [inline, virtual]</code></td> 
    143172        </tr> 
    144173      </table> 
     
    147176 
    148177<p> 
    149 for future use  
    150 <p> 
    151178sample from merged density weight w is a  
    152 </div> 
    153 </div><p> 
    154 <hr><h2>Member Function Documentation</h2> 
    155 <a class="anchor" name="a48887eb8738a9e5550bfc38eb8e9d68"></a><!-- doxytag: member="merger::samplecond" ref="a48887eb8738a9e5550bfc38eb8e9d68" args="(const vec &amp;cond, double &amp;ll)" --> 
    156 <div class="memitem"> 
    157 <div class="memproto"> 
    158       <table class="memname"> 
    159         <tr> 
    160           <td class="memname">vec mprod::samplecond           </td> 
    161           <td>(</td> 
    162           <td class="paramtype">const vec &amp;&nbsp;</td> 
    163           <td class="paramname"> <em>cond</em>, </td> 
    164         </tr> 
    165         <tr> 
    166           <td class="paramkey"></td> 
    167           <td></td> 
    168           <td class="paramtype">double &amp;&nbsp;</td> 
    169           <td class="paramname"> <em>ll</em></td><td>&nbsp;</td> 
    170         </tr> 
    171         <tr> 
    172           <td></td> 
    173           <td>)</td> 
    174           <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> 
    175         </tr> 
    176       </table> 
    177 </div> 
    178 <div class="memdoc"> 
     179<p>Implements <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf</a>.</p> 
    179180 
    180 <p> 
    181 Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  
    182 <p> 
    183 Returns a sample from the density conditioned on <code>cond</code>, <img class="formulaInl" alt="$x \sim epdf(rv|cond)$" src="form_10.png">. <dl compact><dt><b>Parameters:</b></dt><dd> 
    184   <table border="0" cellspacing="2" cellpadding="0"> 
    185     <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr> 
    186     <tr><td valign="top"></td><td valign="top"><em>ll</em>&nbsp;</td><td>is a return value of log-likelihood of the sample. </td></tr> 
    187   </table> 
    188 </dl> 
    189  
    190 <p>Reimplemented from <a class="el" href="classmpdf.html#3f172b79ec4a5ebc87898a5381141f1b">mpdf</a>.</p> 
    191  
    192 <p>References <a class="el" href="libBM_8h-source.html#l00069">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00186">mpdf::rv</a>, <a class="el" href="emix_8h-source.html#l00083">mprod::rvcinds</a>, <a class="el" href="emix_8h-source.html#l00081">mprod::rvcinrv</a>, and <a class="el" href="emix_8h-source.html#l00079">mprod::rvinds</a>.</p> 
    193  
    194 <p>Referenced by <a class="el" href="emix_8h-source.html#l00128">mprod::samplecond()</a>.</p> 
     181<p>References <a class="el" href="mixef_8h-source.html#l00092">MixEF::_epdf()</a>, <a class="el" href="merger_8h-source.html#l00031">Mix</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p> 
    195182 
    196183</div> 
    197184</div><p> 
    198 <a class="anchor" name="e171c40e210539c2af01d6237785620b"></a><!-- doxytag: member="merger::samplecond" ref="e171c40e210539c2af01d6237785620b" args="(const vec &amp;cond, vec &amp;ll, int N)" --> 
    199 <div class="memitem"> 
    200 <div class="memproto"> 
    201       <table class="memname"> 
    202         <tr> 
    203           <td class="memname">mat mprod::samplecond           </td> 
    204           <td>(</td> 
    205           <td class="paramtype">const vec &amp;&nbsp;</td> 
    206           <td class="paramname"> <em>cond</em>, </td> 
    207         </tr> 
    208         <tr> 
    209           <td class="paramkey"></td> 
    210           <td></td> 
    211           <td class="paramtype">vec &amp;&nbsp;</td> 
    212           <td class="paramname"> <em>ll</em>, </td> 
    213         </tr> 
    214         <tr> 
    215           <td class="paramkey"></td> 
    216           <td></td> 
    217           <td class="paramtype">int&nbsp;</td> 
    218           <td class="paramname"> <em>N</em></td><td>&nbsp;</td> 
    219         </tr> 
    220         <tr> 
    221           <td></td> 
    222           <td>)</td> 
    223           <td></td><td></td><td><code> [inline, virtual, inherited]</code></td> 
    224         </tr> 
    225       </table> 
     185<hr>The documentation for this class was generated from the following files:<ul> 
     186<li>work/git/mixpp/bdm/estim/<a class="el" href="merger_8h-source.html">merger.h</a><li>work/git/mixpp/bdm/estim/merger.cpp</ul> 
    226187</div> 
    227 <div class="memdoc"> 
    228  
    229 <p> 
    230 Returns.  
    231 <p> 
    232 <dl compact><dt><b>Parameters:</b></dt><dd> 
    233   <table border="0" cellspacing="2" cellpadding="0"> 
    234     <tr><td valign="top"></td><td valign="top"><em>N</em>&nbsp;</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> 
    235     <tr><td valign="top"></td><td valign="top"><em>cond</em>&nbsp;</td><td>is numeric value of <code>rv</code> </td></tr> 
    236     <tr><td valign="top"></td><td valign="top"><em>ll</em>&nbsp;</td><td>is a return value of log-likelihood of the sample. </td></tr> 
    237   </table> 
    238 </dl> 
    239  
    240 <p>Reimplemented from <a class="el" href="classmpdf.html#0e37163660f93df2a4d723cedb1da89c">mpdf</a>.</p> 
    241  
    242 <p>References <a class="el" href="libBM_8h-source.html#l00069">RV::count()</a>, <a class="el" href="libBM_8h-source.html#l00186">mpdf::rv</a>, and <a class="el" href="emix_8h-source.html#l00105">mprod::samplecond()</a>.</p> 
    243  
    244 </div> 
    245 </div><p> 
    246 <hr>The documentation for this class was generated from the following file:<ul> 
    247 <li>work/git/mixpp/bdm/stat/<a class="el" href="merger_8h-source.html">merger.h</a></ul> 
    248 </div> 
    249 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 23 16:00:53 2008 for mixpp by&nbsp; 
     188<hr size="1"><address style="text-align: right;"><small>Generated on Thu Oct 9 21:26:41 2008 for mixpp by&nbsp; 
    250189<a href="http://www.doxygen.org/index.html"> 
    251190<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>