[32] | 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: euni 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> |
---|
[139] | 7 | <!-- Generated by Doxygen 1.5.6 --> |
---|
[91] | 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 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 List</span></a></li> |
---|
| 20 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 21 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 22 | </ul> |
---|
| 23 | </div> |
---|
[32] | 24 | </div> |
---|
[91] | 25 | <div class="contents"> |
---|
[32] | 26 | <h1>euni Class Reference</h1><!-- doxytag: class="euni" --><!-- doxytag: inherits="epdf" -->Uniform distributed density on a rectangular support. |
---|
| 27 | <a href="#_details">More...</a> |
---|
| 28 | <p> |
---|
| 29 | <code>#include <<a class="el" href="libEF_8h-source.html">libEF.h</a>></code> |
---|
| 30 | <p> |
---|
| 31 | <div class="dynheader"> |
---|
| 32 | Inheritance diagram for euni:</div> |
---|
| 33 | <div class="dynsection"> |
---|
| 34 | <p><center><img src="classeuni__inherit__graph.png" border="0" usemap="#euni__inherit__map" alt="Inheritance graph"></center> |
---|
| 35 | <map name="euni__inherit__map"> |
---|
[91] | 36 | <area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="5,7,51,31"></map> |
---|
[32] | 37 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 38 | <div class="dynheader"> |
---|
| 39 | Collaboration diagram for euni:</div> |
---|
| 40 | <div class="dynsection"> |
---|
| 41 | <p><center><img src="classeuni__coll__graph.png" border="0" usemap="#euni__coll__map" alt="Collaboration graph"></center> |
---|
| 42 | <map name="euni__coll__map"> |
---|
[91] | 43 | <area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="5,95,51,119"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="9,7,47,31"></map> |
---|
[32] | 44 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
| 45 | |
---|
| 46 | <p> |
---|
| 47 | <a href="classeuni-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="2537a6c239cff52e3ba814851a1116cd"></a><!-- doxytag: member="euni::euni" ref="2537a6c239cff52e3ba814851a1116cd" args="(const RV rv)" --> |
---|
[33] | 51 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#2537a6c239cff52e3ba814851a1116cd">euni</a> (const <a class="el" href="classRV.html">RV</a> <a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr> |
---|
[32] | 52 | |
---|
[33] | 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Defualt constructor. <br></td></tr> |
---|
| 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2723d4992900b5c5495bfa03628195ed"></a><!-- doxytag: member="euni::eval" ref="2723d4992900b5c5495bfa03628195ed" args="(const vec &val) const " --> |
---|
[210] | 55 | double </td><td class="memItemRight" valign="bottom"><b>eval</b> (const vec &val) const </td></tr> |
---|
[32] | 56 | |
---|
[33] | 57 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06af95d514a6623ad4688bd2ad50ad71"></a><!-- doxytag: member="euni::evalpdflog" ref="06af95d514a6623ad4688bd2ad50ad71" args="(const vec &val) const " --> |
---|
| 58 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#06af95d514a6623ad4688bd2ad50ad71">evalpdflog</a> (const vec &val) const </td></tr> |
---|
[32] | 59 | |
---|
| 60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> |
---|
[171] | 61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4a0e09392be17beaee120ba98fc038cd"></a><!-- doxytag: member="euni::sample" ref="4a0e09392be17beaee120ba98fc038cd" args="() const " --> |
---|
| 62 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#4a0e09392be17beaee120ba98fc038cd">sample</a> () const </td></tr> |
---|
[32] | 63 | |
---|
[171] | 64 | <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> |
---|
[32] | 65 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4fd7c6a05100616ad16ece405cad7bf2"></a><!-- doxytag: member="euni::set_parameters" ref="4fd7c6a05100616ad16ece405cad7bf2" args="(const vec &low0, const vec &high0)" --> |
---|
[33] | 66 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#4fd7c6a05100616ad16ece405cad7bf2">set_parameters</a> (const vec &low0, const vec &high0)</td></tr> |
---|
[32] | 67 | |
---|
[33] | 68 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set values of <code>low</code> and <code>high</code> <br></td></tr> |
---|
| 69 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8050087e421a9cfd1b4b1f8bd33b1cc1"></a><!-- doxytag: member="euni::mean" ref="8050087e421a9cfd1b4b1f8bd33b1cc1" args="() const " --> |
---|
| 70 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#8050087e421a9cfd1b4b1f8bd33b1cc1">mean</a> () const </td></tr> |
---|
[32] | 71 | |
---|
| 72 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
[210] | 73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76608914c3b19e150292d5c56e93e508"></a><!-- doxytag: member="euni::sample_m" ref="76608914c3b19e150292d5c56e93e508" args="(int N) const " --> |
---|
| 74 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#76608914c3b19e150292d5c56e93e508">sample_m</a> (int N) const </td></tr> |
---|
[106] | 75 | |
---|
| 76 | <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> |
---|
[180] | 77 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cebbdd7a85e6328f7358fc0ba8eee06c"></a><!-- doxytag: member="euni::evalpdflog_m" ref="cebbdd7a85e6328f7358fc0ba8eee06c" args="(const mat &Val) const " --> |
---|
| 78 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#cebbdd7a85e6328f7358fc0ba8eee06c">evalpdflog_m</a> (const mat &Val) const </td></tr> |
---|
[33] | 79 | |
---|
[171] | 80 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[210] | 81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e87dc8260a5c37bc1b03eb66174741a0"></a><!-- doxytag: member="euni::condition" ref="e87dc8260a5c37bc1b03eb66174741a0" args="(const RV &rv) const " --> |
---|
| 82 | 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> |
---|
[181] | 83 | |
---|
| 84 | <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> |
---|
[210] | 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38de9f59b65ee06028554f3f74b66025"></a><!-- doxytag: member="euni::marginal" ref="38de9f59b65ee06028554f3f74b66025" args="(const RV &rv) const " --> |
---|
| 86 | 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> |
---|
[181] | 87 | |
---|
| 88 | <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> |
---|
[171] | 89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0d32aabb4cbba347e0c37fe8607562"></a><!-- doxytag: member="euni::_rv" ref="ca0d32aabb4cbba347e0c37fe8607562" args="() const " --> |
---|
| 90 | 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> |
---|
| 91 | |
---|
[162] | 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function, possibly dangerous! <br></td></tr> |
---|
[171] | 93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7fb94ce90d1ac7077d29f7d6a6c3e0a5"></a><!-- doxytag: member="euni::_renewrv" ref="7fb94ce90d1ac7077d29f7d6a6c3e0a5" args="(const RV &in_rv)" --> |
---|
| 94 | 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> |
---|
| 95 | |
---|
| 96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr> |
---|
[32] | 97 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef42cd8d7645422048d46c46ec5cdac1"></a><!-- doxytag: member="euni::low" ref="ef42cd8d7645422048d46c46ec5cdac1" args="" --> |
---|
| 99 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#ef42cd8d7645422048d46c46ec5cdac1">low</a></td></tr> |
---|
| 100 | |
---|
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">lower bound on support <br></td></tr> |
---|
| 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71b6d6b41aeb61a7f76f682b72119231"></a><!-- doxytag: member="euni::high" ref="71b6d6b41aeb61a7f76f682b72119231" args="" --> |
---|
| 103 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#71b6d6b41aeb61a7f76f682b72119231">high</a></td></tr> |
---|
| 104 | |
---|
| 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">upper bound on support <br></td></tr> |
---|
| 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="52a6ff4a54010f88a6a19fca605c64a4"></a><!-- doxytag: member="euni::distance" ref="52a6ff4a54010f88a6a19fca605c64a4" args="" --> |
---|
| 107 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#52a6ff4a54010f88a6a19fca605c64a4">distance</a></td></tr> |
---|
| 108 | |
---|
| 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">internal <br></td></tr> |
---|
| 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63105490e946e43372d6187ad1bafdda"></a><!-- doxytag: member="euni::nk" ref="63105490e946e43372d6187ad1bafdda" args="" --> |
---|
| 111 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#63105490e946e43372d6187ad1bafdda">nk</a></td></tr> |
---|
| 112 | |
---|
| 113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">normalizing coefficients <br></td></tr> |
---|
| 114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f445a0ce24f39d14c1a4eed53fc8e2c3"></a><!-- doxytag: member="euni::lnk" ref="f445a0ce24f39d14c1a4eed53fc8e2c3" args="" --> |
---|
[33] | 115 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#f445a0ce24f39d14c1a4eed53fc8e2c3">lnk</a></td></tr> |
---|
[32] | 116 | |
---|
[33] | 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of log( <code>nk</code> ) <br></td></tr> |
---|
[32] | 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="euni::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" --> |
---|
[33] | 119 | <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> |
---|
[32] | 120 | |
---|
[33] | 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Identified of the random variable. <br></td></tr> |
---|
[32] | 122 | </table> |
---|
| 123 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
[171] | 124 | Uniform distributed density on a rectangular support. <hr>The documentation for this class was generated from the following file:<ul> |
---|
[145] | 125 | <li>work/git/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul> |
---|
[91] | 126 | </div> |
---|
[210] | 127 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Nov 12 19:18:52 2008 for mixpp by |
---|
[32] | 128 | <a href="http://www.doxygen.org/index.html"> |
---|
[139] | 129 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
[32] | 130 | </body> |
---|
| 131 | </html> |
---|