root/doc/html/classeuni.html @ 79

Revision 79, 10.5 kB (checked in by smidl, 17 years ago)

oprava dokumentace

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: 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.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>
15</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>euni Class Reference</h1><!-- doxytag: class="euni" --><!-- doxytag: inherits="epdf" -->Uniform distributed density on a rectangular support. 
24<a href="#_details">More...</a>
25<p>
26<code>#include &lt;<a class="el" href="libEF_8h-source.html">libEF.h</a>&gt;</code>
27<p>
28<div class="dynheader">
29Inheritance diagram for euni:</div>
30<div class="dynsection">
31<p><center><img src="classeuni__inherit__graph.png" border="0" usemap="#euni__inherit__map" alt="Inheritance graph"></center>
32<map name="euni__inherit__map">
33<area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="5,7,56,33"></map>
34<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
35<div class="dynheader">
36Collaboration diagram for euni:</div>
37<div class="dynsection">
38<p><center><img src="classeuni__coll__graph.png" border="0" usemap="#euni__coll__map" alt="Collaboration graph"></center>
39<map name="euni__coll__map">
40<area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="5,103,56,129"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="12,7,49,33"><area shape="rect" title="rv" alt="" coords="27,31,35,39"><area shape="rect" title="rv" alt="" coords="27,99,35,107"></map>
41<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
42
43<p>
44<a href="classeuni-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
45<tr><td></td></tr>
46<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="2537a6c239cff52e3ba814851a1116cd"></a><!-- doxytag: member="euni::euni" ref="2537a6c239cff52e3ba814851a1116cd" args="(const RV rv)" -->
48&nbsp;</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>
49
50<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Defualt constructor. <br></td></tr>
51<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2723d4992900b5c5495bfa03628195ed"></a><!-- doxytag: member="euni::eval" ref="2723d4992900b5c5495bfa03628195ed" args="(const vec &amp;val) const " -->
52double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#2723d4992900b5c5495bfa03628195ed">eval</a> (const vec &amp;val) const </td></tr>
53
54<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr>
55<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="06af95d514a6623ad4688bd2ad50ad71"></a><!-- doxytag: member="euni::evalpdflog" ref="06af95d514a6623ad4688bd2ad50ad71" args="(const vec &amp;val) const " -->
56double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#06af95d514a6623ad4688bd2ad50ad71">evalpdflog</a> (const vec &amp;val) const </td></tr>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
59<tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#4a0e09392be17beaee120ba98fc038cd">sample</a> () const </td></tr>
60
61<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="#4a0e09392be17beaee120ba98fc038cd"></a><br></td></tr>
62<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 &amp;low0, const vec &amp;high0)" -->
63void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#4fd7c6a05100616ad16ece405cad7bf2">set_parameters</a> (const vec &amp;low0, const vec &amp;high0)</td></tr>
64
65<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set values of <code>low</code> and <code>high</code> <br></td></tr>
66<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8050087e421a9cfd1b4b1f8bd33b1cc1"></a><!-- doxytag: member="euni::mean" ref="8050087e421a9cfd1b4b1f8bd33b1cc1" args="() const " -->
67vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#8050087e421a9cfd1b4b1f8bd33b1cc1">mean</a> () const </td></tr>
68
69<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
70<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b89143f12c9b49282e30841e4fb5f337"></a><!-- doxytag: member="euni::_rv" ref="b89143f12c9b49282e30841e4fb5f337" args="() const " -->
71<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>
72
73<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
74<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
75<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef42cd8d7645422048d46c46ec5cdac1"></a><!-- doxytag: member="euni::low" ref="ef42cd8d7645422048d46c46ec5cdac1" args="" -->
76vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#ef42cd8d7645422048d46c46ec5cdac1">low</a></td></tr>
77
78<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">lower bound on support <br></td></tr>
79<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71b6d6b41aeb61a7f76f682b72119231"></a><!-- doxytag: member="euni::high" ref="71b6d6b41aeb61a7f76f682b72119231" args="" -->
80vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#71b6d6b41aeb61a7f76f682b72119231">high</a></td></tr>
81
82<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">upper bound on support <br></td></tr>
83<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="52a6ff4a54010f88a6a19fca605c64a4"></a><!-- doxytag: member="euni::distance" ref="52a6ff4a54010f88a6a19fca605c64a4" args="" -->
84vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#52a6ff4a54010f88a6a19fca605c64a4">distance</a></td></tr>
85
86<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">internal <br></td></tr>
87<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63105490e946e43372d6187ad1bafdda"></a><!-- doxytag: member="euni::nk" ref="63105490e946e43372d6187ad1bafdda" args="" -->
88double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#63105490e946e43372d6187ad1bafdda">nk</a></td></tr>
89
90<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">normalizing coefficients <br></td></tr>
91<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f445a0ce24f39d14c1a4eed53fc8e2c3"></a><!-- doxytag: member="euni::lnk" ref="f445a0ce24f39d14c1a4eed53fc8e2c3" args="" -->
92double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#f445a0ce24f39d14c1a4eed53fc8e2c3">lnk</a></td></tr>
93
94<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cache of log( <code>nk</code> ) <br></td></tr>
95<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="euni::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" -->
96<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>
97
98<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr>
99</table>
100<hr><a name="_details"></a><h2>Detailed Description</h2>
101Uniform distributed density on a rectangular support. <hr><h2>Member Function Documentation</h2>
102<a class="anchor" name="4a0e09392be17beaee120ba98fc038cd"></a><!-- doxytag: member="euni::sample" ref="4a0e09392be17beaee120ba98fc038cd" args="() const " -->
103<div class="memitem">
104<div class="memproto">
105      <table class="memname">
106        <tr>
107          <td class="memname">vec euni::sample           </td>
108          <td>(</td>
109          <td class="paramname">          </td>
110          <td>&nbsp;)&nbsp;</td>
111          <td width="100%"> const<code> [inline, virtual]</code></td>
112        </tr>
113      </table>
114</div>
115<div class="memdoc">
116
117<p>
118Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.
119<p>
120Returns a sample from the density, <img class="formulaInl" alt="$x \sim epdf(rv)$" src="form_3.png"> 
121<p>Implements <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf</a>.</p>
122
123</div>
124</div><p>
125<hr>The documentation for this class was generated from the following file:<ul>
126<li>work/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul>
127<hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 18 11:15:20 2008 for mixpp by&nbsp;
128<a href="http://www.doxygen.org/index.html">
129<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
130</body>
131</html>
Note: See TracBrowser for help on using the browser.