root/doc/html/classeprod.html @ 172

Revision 171, 10.0 kB (checked in by smidl, 16 years ago)

New documentation

Line 
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: eprod 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&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>
24</div>
25<div class="contents">
26<h1>eprod Class Reference</h1><!-- doxytag: class="eprod" --><!-- doxytag: inherits="epdf" -->Product of independent epdfs. For dependent pdfs, use <a class="el" href="classmprod.html" title="Chain rule decomposition of epdf.">mprod</a>
27<a href="#_details">More...</a>
28<p>
29<code>#include &lt;<a class="el" href="emix_8h-source.html">emix.h</a>&gt;</code>
30<p>
31<div class="dynheader">
32Inheritance diagram for eprod:</div>
33<div class="dynsection">
34<p><center><img src="classeprod__inherit__graph.png" border="0" usemap="#eprod__inherit__map" alt="Inheritance graph"></center>
35<map name="eprod__inherit__map">
36<area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="11,7,59,33"></map>
37<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
38<div class="dynheader">
39Collaboration diagram for eprod:</div>
40<div class="dynsection">
41<p><center><img src="classeprod__coll__graph.png" border="0" usemap="#eprod__coll__map" alt="Collaboration graph"></center>
42<map name="eprod__coll__map">
43<area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="11,103,59,129"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="16,7,53,33"></map>
44<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
45
46<p>
47<a href="classeprod-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
48<tr><td></td></tr>
49<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="288ace3ff1df274dfa89e1a641448a43"></a><!-- doxytag: member="eprod::eprod" ref="288ace3ff1df274dfa89e1a641448a43" args="(const Array&lt; const epdf * &gt; epdfs0)" -->
51&nbsp;</td><td class="memItemRight" valign="bottom"><b>eprod</b> (const Array&lt; const <a class="el" href="classepdf.html">epdf</a> * &gt; epdfs0)</td></tr>
52
53<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5752dd999e1f4638f9558b0cc35b64f7"></a><!-- doxytag: member="eprod::mean" ref="5752dd999e1f4638f9558b0cc35b64f7" args="() const " -->
54vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#5752dd999e1f4638f9558b0cc35b64f7">mean</a> () const </td></tr>
55
56<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
57<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94a5b7c44056cf7f4e688d53ba6295b4"></a><!-- doxytag: member="eprod::sample" ref="94a5b7c44056cf7f4e688d53ba6295b4" args="() const " -->
58vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#94a5b7c44056cf7f4e688d53ba6295b4">sample</a> () const </td></tr>
59
60<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$x$" src="form_28.png"> from density <img class="formulaInl" alt="$epdf(rv)$" src="form_59.png">. <br></td></tr>
61<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5adef154e3655a872c284b02635b8b35"></a><!-- doxytag: member="eprod::evalpdflog" ref="5adef154e3655a872c284b02635b8b35" args="(const vec &amp;val) const " -->
62double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#5adef154e3655a872c284b02635b8b35">evalpdflog</a> (const vec &amp;val) const </td></tr>
63
64<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
65<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c049331d8b1ec7e4c088cf0cc6d47f3f"></a><!-- doxytag: member="eprod::operator()" ref="c049331d8b1ec7e4c088cf0cc6d47f3f" args="(int i) const " -->
66const <a class="el" href="classepdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#c049331d8b1ec7e4c088cf0cc6d47f3f">operator()</a> (int i) const </td></tr>
67
68<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
69<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54d7dd53a641b618771cd9bee135181f"></a><!-- doxytag: member="eprod::sampleN" ref="54d7dd53a641b618771cd9bee135181f" args="(int N) const " -->
70virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#54d7dd53a641b618771cd9bee135181f">sampleN</a> (int N) const </td></tr>
71
72<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>
73<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ea597362e11a0040fe7c990269d072c"></a><!-- doxytag: member="eprod::eval" ref="3ea597362e11a0040fe7c990269d072c" args="(const vec &amp;val) const " -->
74virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ea597362e11a0040fe7c990269d072c">eval</a> (const vec &amp;val) const </td></tr>
75
76<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr>
77<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6af383b6f1c6ea6fc5f6724dd03d8877"></a><!-- doxytag: member="eprod::evalpdflog" ref="6af383b6f1c6ea6fc5f6724dd03d8877" args="(const mat &amp;Val) const " -->
78virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#6af383b6f1c6ea6fc5f6724dd03d8877">evalpdflog</a> (const mat &amp;Val) const </td></tr>
79
80<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr>
81<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0d32aabb4cbba347e0c37fe8607562"></a><!-- doxytag: member="eprod::_rv" ref="ca0d32aabb4cbba347e0c37fe8607562" args="() const " -->
82const <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>
83
84<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function, possibly dangerous! <br></td></tr>
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7fb94ce90d1ac7077d29f7d6a6c3e0a5"></a><!-- doxytag: member="eprod::_renewrv" ref="7fb94ce90d1ac7077d29f7d6a6c3e0a5" args="(const RV &amp;in_rv)" -->
86void&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>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr>
89<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63fc0db078542bce1c5dff94f9c3a357"></a><!-- doxytag: member="eprod::epdfs" ref="63fc0db078542bce1c5dff94f9c3a357" args="" -->
91Array&lt; const <a class="el" href="classepdf.html">epdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#63fc0db078542bce1c5dff94f9c3a357">epdfs</a></td></tr>
92
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Components (epdfs). <br></td></tr>
94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a471987de1115dc639eccff65f3b9aa3"></a><!-- doxytag: member="eprod::rvinds" ref="a471987de1115dc639eccff65f3b9aa3" args="" -->
95Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#a471987de1115dc639eccff65f3b9aa3">rvinds</a></td></tr>
96
97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of indeces. <br></td></tr>
98<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="eprod::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" -->
99<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>
100
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr>
102</table>
103<hr><a name="_details"></a><h2>Detailed Description</h2>
104Product of independent epdfs. For dependent pdfs, use <a class="el" href="classmprod.html" title="Chain rule decomposition of epdf.">mprod</a>. <hr>The documentation for this class was generated from the following file:<ul>
105<li>work/git/mixpp/bdm/stat/<a class="el" href="emix_8h-source.html">emix.h</a></ul>
106</div>
107<hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 23 16:00:52 2008 for mixpp by&nbsp;
108<a href="http://www.doxygen.org/index.html">
109<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
110</body>
111</html>
Note: See TracBrowser for help on using the browser.