root/doc/html/classeuni.html @ 91

Revision 91, 10.7 kB (checked in by smidl, 17 years ago)

drobnosti a 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.5 -->
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>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 &lt;<a class="el" href="libEF_8h-source.html">libEF.h</a>&gt;</code>
30<p>
31<div class="dynheader">
32Inheritance 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">
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>
37<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
38<div class="dynheader">
39Collaboration 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">
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>
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)" -->
51&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>
52
53<tr><td class="mdescLeft">&nbsp;</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 &amp;val) const " -->
55double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#2723d4992900b5c5495bfa03628195ed">eval</a> (const vec &amp;val) const </td></tr>
56
57<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr>
58<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 " -->
59double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#06af95d514a6623ad4688bd2ad50ad71">evalpdflog</a> (const vec &amp;val) const </td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
62<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>
63
64<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>
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 &amp;low0, const vec &amp;high0)" -->
66void&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>
67
68<tr><td class="mdescLeft">&nbsp;</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 " -->
70vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#8050087e421a9cfd1b4b1f8bd33b1cc1">mean</a> () const </td></tr>
71
72<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
73<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b89143f12c9b49282e30841e4fb5f337"></a><!-- doxytag: member="euni::_rv" ref="b89143f12c9b49282e30841e4fb5f337" args="() const " -->
74<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>
75
76<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br></td></tr>
77<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
78<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef42cd8d7645422048d46c46ec5cdac1"></a><!-- doxytag: member="euni::low" ref="ef42cd8d7645422048d46c46ec5cdac1" args="" -->
79vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#ef42cd8d7645422048d46c46ec5cdac1">low</a></td></tr>
80
81<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">lower bound on support <br></td></tr>
82<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71b6d6b41aeb61a7f76f682b72119231"></a><!-- doxytag: member="euni::high" ref="71b6d6b41aeb61a7f76f682b72119231" args="" -->
83vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#71b6d6b41aeb61a7f76f682b72119231">high</a></td></tr>
84
85<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">upper bound on support <br></td></tr>
86<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="52a6ff4a54010f88a6a19fca605c64a4"></a><!-- doxytag: member="euni::distance" ref="52a6ff4a54010f88a6a19fca605c64a4" args="" -->
87vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#52a6ff4a54010f88a6a19fca605c64a4">distance</a></td></tr>
88
89<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">internal <br></td></tr>
90<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="63105490e946e43372d6187ad1bafdda"></a><!-- doxytag: member="euni::nk" ref="63105490e946e43372d6187ad1bafdda" args="" -->
91double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#63105490e946e43372d6187ad1bafdda">nk</a></td></tr>
92
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">normalizing coefficients <br></td></tr>
94<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f445a0ce24f39d14c1a4eed53fc8e2c3"></a><!-- doxytag: member="euni::lnk" ref="f445a0ce24f39d14c1a4eed53fc8e2c3" args="" -->
95double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classeuni.html#f445a0ce24f39d14c1a4eed53fc8e2c3">lnk</a></td></tr>
96
97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">cache of log( <code>nk</code> ) <br></td></tr>
98<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="euni::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>
104Uniform distributed density on a rectangular support. <hr><h2>Member Function Documentation</h2>
105<a class="anchor" name="4a0e09392be17beaee120ba98fc038cd"></a><!-- doxytag: member="euni::sample" ref="4a0e09392be17beaee120ba98fc038cd" args="() const " -->
106<div class="memitem">
107<div class="memproto">
108      <table class="memname">
109        <tr>
110          <td class="memname">vec euni::sample           </td>
111          <td>(</td>
112          <td class="paramname">          </td>
113          <td>&nbsp;)&nbsp;</td>
114          <td width="100%"> const<code> [inline, virtual]</code></td>
115        </tr>
116      </table>
117</div>
118<div class="memdoc">
119
120<p>
121Returns the required moment of the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a>.
122<p>
123Returns a sample from the density, <img class="formulaInl" alt="$x \sim epdf(rv)$" src="form_3.png"> 
124<p>Implements <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf</a>.</p>
125
126<p>References <a class="el" href="libBM_8h-source.html#l00057">RV::count()</a>, <a class="el" href="libEF_8h-source.html#l00163">distance</a>, <a class="el" href="libEF_8h-source.html#l00159">low</a>, and <a class="el" href="libBM_8h-source.html#l00121">epdf::rv</a>.</p>
127
128</div>
129</div><p>
130<hr>The documentation for this class was generated from the following file:<ul>
131<li>work/mixpp/bdm/stat/<a class="el" href="libEF_8h-source.html">libEF.h</a></ul>
132</div>
133<hr size="1"><address style="text-align: right;"><small>Generated on Tue Apr 29 20:46:47 2008 for mixpp by&nbsp;
134<a href="http://www.doxygen.org/index.html">
135<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
136</body>
137</html>
Note: See TracBrowser for help on using the browser.