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: bdm::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> |
---|
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><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
15 | <li class="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
16 | <li><a href="files.html"><span>Files</span></a></li> |
---|
17 | </ul> |
---|
18 | </div> |
---|
19 | <div class="tabs"> |
---|
20 | <ul> |
---|
21 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
22 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
23 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
24 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
25 | </ul> |
---|
26 | </div> |
---|
27 | <div class="navpath"><a class="el" href="namespacebdm.html">bdm</a>::<a class="el" href="classbdm_1_1euni.html">euni</a> |
---|
28 | </div> |
---|
29 | </div> |
---|
30 | <div class="contents"> |
---|
31 | <h1>bdm::euni Class Reference</h1><!-- doxytag: class="bdm::euni" --><!-- doxytag: inherits="bdm::epdf" -->Uniform distributed density on a rectangular support. |
---|
32 | <a href="#_details">More...</a> |
---|
33 | <p> |
---|
34 | <code>#include <<a class="el" href="libEF_8h-source.html">libEF.h</a>></code> |
---|
35 | <p> |
---|
36 | <div class="dynheader"> |
---|
37 | Inheritance diagram for bdm::euni:</div> |
---|
38 | <div class="dynsection"> |
---|
39 | <p><center><img src="classbdm_1_1euni__inherit__graph.png" border="0" usemap="#bdm_1_1euni__inherit__map" alt="Inheritance graph"></center> |
---|
40 | <map name="bdm_1_1euni__inherit__map"> |
---|
41 | <area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="19,84,104,111"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="5,7,117,33"></map> |
---|
42 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
43 | <div class="dynheader"> |
---|
44 | Collaboration diagram for bdm::euni:</div> |
---|
45 | <div class="dynsection"> |
---|
46 | <p><center><img src="classbdm_1_1euni__coll__graph.png" border="0" usemap="#bdm_1_1euni__coll__map" alt="Collaboration graph"></center> |
---|
47 | <map name="bdm_1_1euni__coll__map"> |
---|
48 | <area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="13,183,99,209"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="5,7,117,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="72,87,147,113"></map> |
---|
49 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
50 | |
---|
51 | <p> |
---|
52 | <a href="classbdm_1_1euni-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
53 | <tr><td></td></tr> |
---|
54 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dca02eda833d6295e0c19f6e120b64e0"></a><!-- doxytag: member="bdm::euni::euni" ref="dca02eda833d6295e0c19f6e120b64e0" args="(const RV rv)" --> |
---|
56 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#dca02eda833d6295e0c19f6e120b64e0">euni</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> <a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>)</td></tr> |
---|
57 | |
---|
58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Defualt constructor. <br></td></tr> |
---|
59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c282673b9d33928001e945443f636a1d"></a><!-- doxytag: member="bdm::euni::eval" ref="c282673b9d33928001e945443f636a1d" args="(const vec &val) const " --> |
---|
60 | double </td><td class="memItemRight" valign="bottom"><b>eval</b> (const vec &val) const </td></tr> |
---|
61 | |
---|
62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="caa07b8307bd793d5339d6583e0aba81"></a><!-- doxytag: member="bdm::euni::evallog" ref="caa07b8307bd793d5339d6583e0aba81" args="(const vec &val) const " --> |
---|
63 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#caa07b8307bd793d5339d6583e0aba81">evallog</a> (const vec &val) const </td></tr> |
---|
64 | |
---|
65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> |
---|
66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc5df80359ead2918384b2004ce67194"></a><!-- doxytag: member="bdm::euni::sample" ref="fc5df80359ead2918384b2004ce67194" args="() const " --> |
---|
67 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#fc5df80359ead2918384b2004ce67194">sample</a> () const </td></tr> |
---|
68 | |
---|
69 | <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> |
---|
70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8e130b323c62b42f1699537f99af6f09"></a><!-- doxytag: member="bdm::euni::set_parameters" ref="8e130b323c62b42f1699537f99af6f09" args="(const vec &low0, const vec &high0)" --> |
---|
71 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#8e130b323c62b42f1699537f99af6f09">set_parameters</a> (const vec &low0, const vec &high0)</td></tr> |
---|
72 | |
---|
73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set values of <code>low</code> and <code>high</code> <br></td></tr> |
---|
74 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="46caa8c13aba2e6228f964208918b226"></a><!-- doxytag: member="bdm::euni::mean" ref="46caa8c13aba2e6228f964208918b226" args="() const " --> |
---|
75 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#46caa8c13aba2e6228f964208918b226">mean</a> () const </td></tr> |
---|
76 | |
---|
77 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
78 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="951f932155111f6053c980f672b4c22c"></a><!-- doxytag: member="bdm::euni::variance" ref="951f932155111f6053c980f672b4c22c" args="() const " --> |
---|
79 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#951f932155111f6053c980f672b4c22c">variance</a> () const </td></tr> |
---|
80 | |
---|
81 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
---|
82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::euni::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
83 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
---|
84 | |
---|
85 | <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> |
---|
86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34956d4dd3176eeb5937cf48a1546b62"></a><!-- doxytag: member="bdm::euni::evallog_m" ref="34956d4dd3176eeb5937cf48a1546b62" args="(const mat &Val) const " --> |
---|
87 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#34956d4dd3176eeb5937cf48a1546b62">evallog_m</a> (const mat &Val) const </td></tr> |
---|
88 | |
---|
89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
90 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e584eac5579c1b6384947ecf66166c77"></a><!-- doxytag: member="bdm::euni::condition" ref="e584eac5579c1b6384947ecf66166c77" args="(const RV &rv) const " --> |
---|
91 | virtual <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#e584eac5579c1b6384947ecf66166c77">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
92 | |
---|
93 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> |
---|
94 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fb2ece54f720b62ad325e61214fa0a1"></a><!-- doxytag: member="bdm::euni::marginal" ref="3fb2ece54f720b62ad325e61214fa0a1" args="(const RV &rv) const " --> |
---|
95 | virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#3fb2ece54f720b62ad325e61214fa0a1">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
96 | |
---|
97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> |
---|
98 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::euni::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
99 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> |
---|
100 | |
---|
101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function, possibly dangerous! <br></td></tr> |
---|
102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62e88cbce0ce77a8692f5e15d76e805f"></a><!-- doxytag: member="bdm::euni::_renewrv" ref="62e88cbce0ce77a8692f5e15d76e805f" args="(const RV &in_rv)" --> |
---|
103 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62e88cbce0ce77a8692f5e15d76e805f">_renewrv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &in_rv)</td></tr> |
---|
104 | |
---|
105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr> |
---|
106 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ff7ce6a2ef5ef0015bbd1398bed12f32"></a><!-- doxytag: member="bdm::euni::low" ref="ff7ce6a2ef5ef0015bbd1398bed12f32" args="" --> |
---|
108 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#ff7ce6a2ef5ef0015bbd1398bed12f32">low</a></td></tr> |
---|
109 | |
---|
110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">lower bound on support <br></td></tr> |
---|
111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cfad2dea4a62db6872bda8abd75f0de1"></a><!-- doxytag: member="bdm::euni::high" ref="cfad2dea4a62db6872bda8abd75f0de1" args="" --> |
---|
112 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#cfad2dea4a62db6872bda8abd75f0de1">high</a></td></tr> |
---|
113 | |
---|
114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">upper bound on support <br></td></tr> |
---|
115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d3c27e331f90c754d80228108de8ed4c"></a><!-- doxytag: member="bdm::euni::distance" ref="d3c27e331f90c754d80228108de8ed4c" args="" --> |
---|
116 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#d3c27e331f90c754d80228108de8ed4c">distance</a></td></tr> |
---|
117 | |
---|
118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">internal <br></td></tr> |
---|
119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="31bb13e8449a8eff35246d46dae35c20"></a><!-- doxytag: member="bdm::euni::nk" ref="31bb13e8449a8eff35246d46dae35c20" args="" --> |
---|
120 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#31bb13e8449a8eff35246d46dae35c20">nk</a></td></tr> |
---|
121 | |
---|
122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">normalizing coefficients <br></td></tr> |
---|
123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3e63be48dd58659663ca60cd18700476"></a><!-- doxytag: member="bdm::euni::lnk" ref="3e63be48dd58659663ca60cd18700476" args="" --> |
---|
124 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1euni.html#3e63be48dd58659663ca60cd18700476">lnk</a></td></tr> |
---|
125 | |
---|
126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of log( <code>nk</code> ) <br></td></tr> |
---|
127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::euni::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
128 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
---|
129 | |
---|
130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Identified of the random variable. <br></td></tr> |
---|
131 | </table> |
---|
132 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
133 | Uniform distributed density on a rectangular support. <hr>The documentation for this class was generated from the following file:<ul> |
---|
134 | <li><a class="el" href="libEF_8h-source.html">libEF.h</a></ul> |
---|
135 | </div> |
---|
136 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 15:29:54 2009 for mixpp by |
---|
137 | <a href="http://www.doxygen.org/index.html"> |
---|
138 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
139 | </body> |
---|
140 | </html> |
---|