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 Page</span></a></li> |
---|
12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
14 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
15 | <li><a href="files.html"><span>Files</span></a></li> |
---|
16 | </ul> |
---|
17 | </div> |
---|
18 | <div class="tabs"> |
---|
19 | <ul> |
---|
20 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
21 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
22 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
23 | </ul> |
---|
24 | </div> |
---|
25 | </div> |
---|
26 | <div class="contents"> |
---|
27 | <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>. |
---|
28 | <a href="#_details">More...</a> |
---|
29 | <p> |
---|
30 | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
---|
31 | <p> |
---|
32 | <div class="dynheader"> |
---|
33 | Inheritance diagram for eprod:</div> |
---|
34 | <div class="dynsection"> |
---|
35 | <p><center><img src="classeprod__inherit__graph.png" border="0" usemap="#eprod__inherit__map" alt="Inheritance graph"></center> |
---|
36 | <map name="eprod__inherit__map"> |
---|
37 | <area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="11,7,59,33"></map> |
---|
38 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
39 | <div class="dynheader"> |
---|
40 | Collaboration diagram for eprod:</div> |
---|
41 | <div class="dynsection"> |
---|
42 | <p><center><img src="classeprod__coll__graph.png" border="0" usemap="#eprod__coll__map" alt="Collaboration graph"></center> |
---|
43 | <map name="eprod__coll__map"> |
---|
44 | <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> |
---|
45 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
46 | |
---|
47 | <p> |
---|
48 | <a href="classeprod-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
49 | <tr><td></td></tr> |
---|
50 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="288ace3ff1df274dfa89e1a641448a43"></a><!-- doxytag: member="eprod::eprod" ref="288ace3ff1df274dfa89e1a641448a43" args="(const Array< const epdf * > epdfs0)" --> |
---|
52 | </td><td class="memItemRight" valign="bottom"><b>eprod</b> (const Array< const <a class="el" href="classepdf.html">epdf</a> * > epdfs0)</td></tr> |
---|
53 | |
---|
54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5752dd999e1f4638f9558b0cc35b64f7"></a><!-- doxytag: member="eprod::mean" ref="5752dd999e1f4638f9558b0cc35b64f7" args="() const " --> |
---|
55 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#5752dd999e1f4638f9558b0cc35b64f7">mean</a> () const </td></tr> |
---|
56 | |
---|
57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71d37aa4676dc41bb4ff6ceb4ccdc594"></a><!-- doxytag: member="eprod::variance" ref="71d37aa4676dc41bb4ff6ceb4ccdc594" args="() const " --> |
---|
59 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#71d37aa4676dc41bb4ff6ceb4ccdc594">variance</a> () const </td></tr> |
---|
60 | |
---|
61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
---|
62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94a5b7c44056cf7f4e688d53ba6295b4"></a><!-- doxytag: member="eprod::sample" ref="94a5b7c44056cf7f4e688d53ba6295b4" args="() const " --> |
---|
63 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#94a5b7c44056cf7f4e688d53ba6295b4">sample</a> () const </td></tr> |
---|
64 | |
---|
65 | <tr><td class="mdescLeft"> </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> |
---|
66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0af49e491414d6f270dc347bcb054eb6"></a><!-- doxytag: member="eprod::evallog" ref="0af49e491414d6f270dc347bcb054eb6" args="(const vec &val) const " --> |
---|
67 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#0af49e491414d6f270dc347bcb054eb6">evallog</a> (const vec &val) const </td></tr> |
---|
68 | |
---|
69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> |
---|
70 | <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 " --> |
---|
71 | const <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#c049331d8b1ec7e4c088cf0cc6d47f3f">operator()</a> (int i) const </td></tr> |
---|
72 | |
---|
73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
74 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe8cc34921cb43558654455007676f05"></a><!-- doxytag: member="eprod::~eprod" ref="fe8cc34921cb43558654455007676f05" args="()" --> |
---|
75 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#fe8cc34921cb43558654455007676f05">~eprod</a> ()</td></tr> |
---|
76 | |
---|
77 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr> |
---|
78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76608914c3b19e150292d5c56e93e508"></a><!-- doxytag: member="eprod::sample_m" ref="76608914c3b19e150292d5c56e93e508" args="(int N) const " --> |
---|
79 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#76608914c3b19e150292d5c56e93e508">sample_m</a> (int N) const </td></tr> |
---|
80 | |
---|
81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples from density <img class="formulaInl" alt="$epdf(rv)$" src="form_59.png">. <br></td></tr> |
---|
82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2495a04bbacb9b55fe5a3a59b78affca"></a><!-- doxytag: member="eprod::evallog_m" ref="2495a04bbacb9b55fe5a3a59b78affca" args="(const mat &Val) const " --> |
---|
83 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#2495a04bbacb9b55fe5a3a59b78affca">evallog_m</a> (const mat &Val) const </td></tr> |
---|
84 | |
---|
85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e87dc8260a5c37bc1b03eb66174741a0"></a><!-- doxytag: member="eprod::condition" ref="e87dc8260a5c37bc1b03eb66174741a0" args="(const RV &rv) const " --> |
---|
87 | virtual <a class="el" href="classmpdf.html">mpdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#e87dc8260a5c37bc1b03eb66174741a0">condition</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>) const </td></tr> |
---|
88 | |
---|
89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> |
---|
90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38de9f59b65ee06028554f3f74b66025"></a><!-- doxytag: member="eprod::marginal" ref="38de9f59b65ee06028554f3f74b66025" args="(const RV &rv) const " --> |
---|
91 | virtual <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#38de9f59b65ee06028554f3f74b66025">marginal</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>) const </td></tr> |
---|
92 | |
---|
93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> |
---|
94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0d32aabb4cbba347e0c37fe8607562"></a><!-- doxytag: member="eprod::_rv" ref="ca0d32aabb4cbba347e0c37fe8607562" args="() const " --> |
---|
95 | const <a class="el" href="classRV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#ca0d32aabb4cbba347e0c37fe8607562">_rv</a> () const </td></tr> |
---|
96 | |
---|
97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function, possibly dangerous! <br></td></tr> |
---|
98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7fb94ce90d1ac7077d29f7d6a6c3e0a5"></a><!-- doxytag: member="eprod::_renewrv" ref="7fb94ce90d1ac7077d29f7d6a6c3e0a5" args="(const RV &in_rv)" --> |
---|
99 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#7fb94ce90d1ac7077d29f7d6a6c3e0a5">_renewrv</a> (const <a class="el" href="classRV.html">RV</a> &in_rv)</td></tr> |
---|
100 | |
---|
101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr> |
---|
102 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63fc0db078542bce1c5dff94f9c3a357"></a><!-- doxytag: member="eprod::epdfs" ref="63fc0db078542bce1c5dff94f9c3a357" args="" --> |
---|
104 | Array< const <a class="el" href="classepdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#63fc0db078542bce1c5dff94f9c3a357">epdfs</a></td></tr> |
---|
105 | |
---|
106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Components (epdfs). <br></td></tr> |
---|
107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="852a8e1b5b52a992f56cd2ab6c0b4a29"></a><!-- doxytag: member="eprod::dls" ref="852a8e1b5b52a992f56cd2ab6c0b4a29" args="" --> |
---|
108 | Array< <a class="el" href="classdatalink__e2e.html">datalink_e2e</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classeprod.html#852a8e1b5b52a992f56cd2ab6c0b4a29">dls</a></td></tr> |
---|
109 | |
---|
110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array of indeces. <br></td></tr> |
---|
111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="eprod::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" --> |
---|
112 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a></td></tr> |
---|
113 | |
---|
114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Identified of the random variable. <br></td></tr> |
---|
115 | </table> |
---|
116 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
117 | Product 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> |
---|
118 | <li>work/git/mixpp/bdm/stat/<a class="el" href="emix_8h-source.html">emix.h</a></ul> |
---|
119 | </div> |
---|
120 | <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 15 10:51:09 2009 for mixpp by |
---|
121 | <a href="http://www.doxygen.org/index.html"> |
---|
122 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
123 | </body> |
---|
124 | </html> |
---|