Show
Ignore:
Timestamp:
05/12/08 17:37:08 (17 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/html/classemix.html

    r33 r106  
    55<link href="tabs.css" rel="stylesheet" type="text/css"> 
    66</head><body> 
    7 <!-- Generated by Doxygen 1.5.3 --> 
    8 <div class="tabs"> 
    9   <ul> 
    10     <li><a href="index.html"><span>Main&nbsp;Page</span></a></li> 
    11     <li class="current"><a href="annotated.html"><span>Classes</span></a></li> 
    12     <li><a href="files.html"><span>Files</span></a></li> 
    13     <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> 
    14   </ul> 
     7<!-- Generated by Doxygen 1.5.5 --> 
     8<div class="navigation" id="top"> 
     9  <div class="tabs"> 
     10    <ul> 
     11      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li> 
     12      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li> 
     13      <li class="current"><a href="annotated.html"><span>Classes</span></a></li> 
     14      <li><a href="files.html"><span>Files</span></a></li> 
     15    </ul> 
     16  </div> 
     17  <div class="tabs"> 
     18    <ul> 
     19      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li> 
     20      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li> 
     21      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li> 
     22    </ul> 
     23  </div> 
    1524</div> 
    16 <div class="tabs"> 
    17   <ul> 
    18     <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li> 
    19     <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li> 
    20     <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li> 
    21   </ul> 
    22 </div> 
    23 <h1>emix Class Reference</h1><!-- doxytag: class="emix" --><!-- doxytag: inherits="epdf" -->Weighted mixture of epdfs with external owned components.   
     25<div class="contents"> 
     26<h1>emix Class Reference</h1><!-- doxytag: class="emix" --><!-- doxytag: inherits="epdf" -->Mixture of epdfs.   
    2427<a href="#_details">More...</a> 
    2528<p> 
    26 <code>#include &lt;<a class="el" href="libEF_8h-source.html">libEF.h</a>&gt;</code> 
     29<code>#include &lt;<a class="el" href="emix_8h-source.html">emix.h</a>&gt;</code> 
    2730<p> 
    2831<div class="dynheader"> 
     
    3134<p><center><img src="classemix__inherit__graph.png" border="0" usemap="#emix__inherit__map" alt="Inheritance graph"></center> 
    3235<map name="emix__inherit__map"> 
    33 <area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="7,7,57,33"></map> 
     36<area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="7,7,52,31"></map> 
    3437<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> 
    3538<div class="dynheader"> 
     
    3841<p><center><img src="classemix__coll__graph.png" border="0" usemap="#emix__coll__map" alt="Collaboration graph"></center> 
    3942<map name="emix__coll__map"> 
    40 <area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="7,103,57,129"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="13,7,51,33"><area shape="rect" title="rv" alt="" coords="28,31,36,39"><area shape="rect" title="rv" alt="" coords="28,99,36,107"></map> 
     43<area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="7,95,52,119"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="11,7,48,31"></map> 
    4144<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> 
    4245 
     
    4548<tr><td></td></tr> 
    4649<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> 
    47 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0ac204af8919c22bce72816ed82019e"></a><!-- doxytag: member="emix::emix" ref="b0ac204af8919c22bce72816ed82019e" args="(const RV &amp;rv, vec &amp;w0)" --> 
    48 &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#b0ac204af8919c22bce72816ed82019e">emix</a> (const <a class="el" href="classRV.html">RV</a> &amp;rv, vec &amp;w0)</td></tr> 
     50<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a10c8481115a5460877272ddb6532a6"></a><!-- doxytag: member="emix::emix" ref="3a10c8481115a5460877272ddb6532a6" args="(RV &amp;rv)" --> 
     51&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#3a10c8481115a5460877272ddb6532a6">emix</a> (<a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr> 
    4952 
    5053<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr> 
    51 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7be197d56e64f7cb578be3932663dfe5"></a><!-- doxytag: member="emix::set_parameters" ref="7be197d56e64f7cb578be3932663dfe5" args="(int &amp;i, double wi, epdf *ep)" --> 
    52 void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int &amp;i, double wi, <a class="el" href="classepdf.html">epdf</a> *ep)</td></tr> 
     54<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6ce82b24d7fe540ddbf44b472a005555"></a><!-- doxytag: member="emix::set_parameters" ref="6ce82b24d7fe540ddbf44b472a005555" args="(const vec &amp;w, const Array&lt; epdf * &gt; &amp;Coms)" --> 
     55void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#6ce82b24d7fe540ddbf44b472a005555">set_parameters</a> (const vec &amp;<a class="el" href="classemix.html#cdc8f4e2a5e43595ac5450d8a7f9d1ab">w</a>, const Array&lt; <a class="el" href="classepdf.html">epdf</a> * &gt; &amp;<a class="el" href="classemix.html#7155d827417b53fb6aa5cff1459e6eb4">Coms</a>)</td></tr> 
    5356 
    54 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dcb3f927bf061eac6229850158ca1558"></a><!-- doxytag: member="emix::mean" ref="dcb3f927bf061eac6229850158ca1558" args="()" --> 
    55 vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>mean</b> ()</td></tr> 
     57<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set weights <code>w</code> and components <code>R</code>. <br></td></tr> 
     58<tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#0650601f24e633e0ab09aa1e46c14483">sample</a> () const </td></tr> 
    5659 
    57 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3eb9a8e12ce1c5c8a3ddb245354b6941"></a><!-- doxytag: member="emix::sample" ref="3eb9a8e12ce1c5c8a3ddb245354b6941" args="()" --> 
    58 vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>sample</b> ()</td></tr> 
     60<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="#0650601f24e633e0ab09aa1e46c14483"></a><br></td></tr> 
     61<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b662a51d042b062020460e64bff4e9e8"></a><!-- doxytag: member="emix::mean" ref="b662a51d042b062020460e64bff4e9e8" args="() const " --> 
     62vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#b662a51d042b062020460e64bff4e9e8">mean</a> () const </td></tr> 
    5963 
    60 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">sample</a> () const =0</td></tr> 
     64<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr> 
     65<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="469e910479b3402589104ef3bb1b5741"></a><!-- doxytag: member="emix::evalpdflog" ref="469e910479b3402589104ef3bb1b5741" args="(const vec &amp;val) const " --> 
     66double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#469e910479b3402589104ef3bb1b5741">evalpdflog</a> (const vec &amp;val) const </td></tr> 
    6167 
    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="#8019654e494bf5e458f6fb947e11b262"></a><br></td></tr> 
     68<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> 
     69<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35baf0f62307455cebfbf462144b4dd8"></a><!-- doxytag: member="emix::_w" ref="35baf0f62307455cebfbf462144b4dd8" args="()" --> 
     70vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#35baf0f62307455cebfbf462144b4dd8">_w</a> ()</td></tr> 
     71 
     72<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br></td></tr> 
     73<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b3523bce1de49f58afe7c1e428cc4fd"></a><!-- doxytag: member="emix::sample" ref="7b3523bce1de49f58afe7c1e428cc4fd" args="(int N) const " --> 
     74virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#7b3523bce1de49f58afe7c1e428cc4fd">sample</a> (int N) const </td></tr> 
     75 
     76<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> 
    6377<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ea597362e11a0040fe7c990269d072c"></a><!-- doxytag: member="emix::eval" ref="3ea597362e11a0040fe7c990269d072c" args="(const vec &amp;val) const " --> 
    6478virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ea597362e11a0040fe7c990269d072c">eval</a> (const vec &amp;val) const </td></tr> 
    6579 
    6680<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr> 
    67 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6aef3eca74899692503769c18add1a4c"></a><!-- doxytag: member="emix::evalpdflog" ref="6aef3eca74899692503769c18add1a4c" args="(const vec &amp;val) const =0" --> 
    68 virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#6aef3eca74899692503769c18add1a4c">evalpdflog</a> (const vec &amp;val) const =0</td></tr> 
    69  
    70 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> 
    71 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf0a070a8f3e67a93604ca724638b870"></a><!-- doxytag: member="emix::mean" ref="bf0a070a8f3e67a93604ca724638b870" args="() const =0" --> 
    72 virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#bf0a070a8f3e67a93604ca724638b870">mean</a> () const =0</td></tr> 
    73  
    74 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr> 
    7581<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b89143f12c9b49282e30841e4fb5f337"></a><!-- doxytag: member="emix::_rv" ref="b89143f12c9b49282e30841e4fb5f337" args="() const " --> 
    7682<a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#b89143f12c9b49282e30841e4fb5f337">_rv</a> () const </td></tr> 
     
    7884<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr> 
    7985<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> 
    80 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d408b764d002e5eb88acbf333921b2b3"></a><!-- doxytag: member="emix::n" ref="d408b764d002e5eb88acbf333921b2b3" args="" --> 
    81 int&nbsp;</td><td class="memItemRight" valign="bottom"><b>n</b></td></tr> 
     86<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cdc8f4e2a5e43595ac5450d8a7f9d1ab"></a><!-- doxytag: member="emix::w" ref="cdc8f4e2a5e43595ac5450d8a7f9d1ab" args="" --> 
     87vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#cdc8f4e2a5e43595ac5450d8a7f9d1ab">w</a></td></tr> 
    8288 
    83 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c79274a1e67dde9cc2914054c69b596b"></a><!-- doxytag: member="emix::w" ref="c79274a1e67dde9cc2914054c69b596b" args="" --> 
    84 vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>w</b></td></tr> 
     89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">weights of the components <br></td></tr> 
     90<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7155d827417b53fb6aa5cff1459e6eb4"></a><!-- doxytag: member="emix::Coms" ref="7155d827417b53fb6aa5cff1459e6eb4" args="" --> 
     91Array&lt; <a class="el" href="classepdf.html">epdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#7155d827417b53fb6aa5cff1459e6eb4">Coms</a></td></tr> 
    8592 
    86 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7155d827417b53fb6aa5cff1459e6eb4"></a><!-- doxytag: member="emix::Coms" ref="7155d827417b53fb6aa5cff1459e6eb4" args="" --> 
    87 Array&lt; <a class="el" href="classepdf.html">epdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>Coms</b></td></tr> 
     93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Component (epdfs). <br></td></tr> 
     94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="emix::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" --> 
     95<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> 
    8896 
    89 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="emix::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" --> 
    90 <a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>rv</b></td></tr> 
    91  
     97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr> 
    9298</table> 
    9399<hr><a name="_details"></a><h2>Detailed Description</h2> 
    94 Weighted mixture of epdfs with external owned components. <hr><h2>Member Function Documentation</h2> 
    95 <a class="anchor" name="8019654e494bf5e458f6fb947e11b262"></a><!-- doxytag: member="emix::sample" ref="8019654e494bf5e458f6fb947e11b262" args="() const =0" --> 
     100Mixture of epdfs.  
     101<p> 
     102Density function: <p class="formulaDsp"> 
     103<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_63.png"> 
     104<p> 
     105 where <img class="formulaInl" alt="$f_i(x)$" src="form_64.png"> is any density on random variable <img class="formulaInl" alt="$x$" src="form_28.png">, called <em>component</em>, <hr><h2>Member Function Documentation</h2> 
     106<a class="anchor" name="0650601f24e633e0ab09aa1e46c14483"></a><!-- doxytag: member="emix::sample" ref="0650601f24e633e0ab09aa1e46c14483" args="() const " --> 
    96107<div class="memitem"> 
    97108<div class="memproto"> 
    98109      <table class="memname"> 
    99110        <tr> 
    100           <td class="memname">virtual vec epdf::sample           </td> 
     111          <td class="memname">vec emix::sample           </td> 
    101112          <td>(</td> 
    102113          <td class="paramname">          </td> 
    103114          <td>&nbsp;)&nbsp;</td> 
    104           <td width="100%"> const<code> [pure virtual, inherited]</code></td> 
     115          <td width="100%"> const<code> [virtual]</code></td> 
    105116        </tr> 
    106117      </table> 
     
    111122Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.  
    112123<p> 
    113 Returns a sample from the density, <img class="formulaInl" alt="$x \sim epdf(rv)$" src="form_3.png">  
    114 <p>Implemented in <a class="el" href="classenorm.html#60b47544f6181ffd4530d3e415ce12c5">enorm&lt; sq_T &gt;</a>, <a class="el" href="classegamma.html#8e10c0021b5dfdd9cb62c6959b5ef425">egamma</a>, <a class="el" href="classeuni.html#4a0e09392be17beaee120ba98fc038cd">euni</a>, <a class="el" href="classeEmp.html#83f9283f92b805508d896479dc1ccf12">eEmp</a>, and <a class="el" href="classenorm.html#60b47544f6181ffd4530d3e415ce12c5">enorm&lt; ldmat &gt;</a>.</p> 
     124Returns a sample, <img class="formulaInl" alt="$x$" src="form_28.png"> from density <img class="formulaInl" alt="$epdf(rv)$" src="form_59.png">  
     125<p>Implements <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf</a>.</p> 
     126 
     127<p>References <a class="el" href="emix_8h-source.html#l00037">Coms</a>, and <a class="el" href="emix_8h-source.html#l00035">w</a>.</p> 
    115128 
    116129</div> 
    117130</div><p> 
    118 <hr>The documentation for this class was generated from the following file:<ul> 
    119 <li>work/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul> 
    120 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 5 13:08:12 2008 for mixpp by&nbsp; 
     131<hr>The documentation for this class was generated from the following files:<ul> 
     132<li>work/mixpp/bdm/stat/<a class="el" href="emix_8h-source.html">emix.h</a><li>work/mixpp/bdm/stat/emix.cpp</ul> 
     133</div> 
     134<hr size="1"><address style="text-align: right;"><small>Generated on Fri May 9 23:06:41 2008 for mixpp by&nbsp; 
    121135<a href="http://www.doxygen.org/index.html"> 
    122 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> 
     136<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address> 
    123137</body> 
    124138</html>