root/doc/html/classmerger.html @ 187

Revision 181, 23.2 kB (checked in by smidl, 16 years ago)

Regenerated doc

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: merger 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&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>merger Class Reference</h1><!-- doxytag: class="merger" --><!-- doxytag: inherits="compositepdf,epdf" -->Function for general combination of pdfs. 
27<a href="#_details">More...</a>
28<p>
29<code>#include &lt;<a class="el" href="merger_8h-source.html">merger.h</a>&gt;</code>
30<p>
31<div class="dynheader">
32Inheritance diagram for merger:</div>
33<div class="dynsection">
34<p><center><img src="classmerger__inherit__graph.png" border="0" usemap="#merger__inherit__map" alt="Inheritance graph"></center>
35<map name="merger__inherit__map">
36<area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes." alt="" coords="5,7,112,33"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="136,7,184,33"></map>
37<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
38<div class="dynheader">
39Collaboration diagram for merger:</div>
40<div class="dynsection">
41<p><center><img src="classmerger__coll__graph.png" border="0" usemap="#merger__coll__map" alt="Collaboration graph"></center>
42<map name="merger__coll__map">
43<area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes." alt="" coords="5,481,112,508"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="187,103,235,129"><area shape="rect" href="classeprod.html" title="Product of independent epdfs. For dependent pdfs, use mprod." alt="" coords="171,236,229,263"><area shape="rect" href="classeEF.html" title="General conjugate exponential family posterior density." alt="" coords="241,183,284,209"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="252,7,289,33"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="333,183,373,209"><area shape="rect" href="classMixEF.html" title="Mixture of Exponential Family Densities." alt="" coords="215,481,271,508"><area shape="rect" href="classBMEF.html" title="Estimator for Exponential family." alt="" coords="325,289,381,316"><area shape="rect" href="classmultiBM.html" title="Estimator for Multinomial density." alt="" coords="237,385,309,412"><area shape="rect" href="classeDirich.html" title="Dirichlet posterior density." alt="" coords="237,289,301,316"></map>
44<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
45
46<p>
47<a href="classmerger-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="3f9a955329eab65026e8322e9027d469"></a><!-- doxytag: member="merger::merger" ref="3f9a955329eab65026e8322e9027d469" args="(const Array&lt; mpdf * &gt; &amp;S)" -->
51&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#3f9a955329eab65026e8322e9027d469">merger</a> (const Array&lt; <a class="el" href="classmpdf.html">mpdf</a> * &gt; &amp;S)</td></tr>
52
53<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
54<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79420e251308df4502c834171d518ad9"></a><!-- doxytag: member="merger::set_parameters" ref="79420e251308df4502c834171d518ad9" args="(double beta0, int Ns0, int Nc0)" -->
55void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#79420e251308df4502c834171d518ad9">set_parameters</a> (double beta0, int Ns0, int Nc0)</td></tr>
56
57<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr>
58<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02d2a445e44a87f37ee3a2b9b40cffd1"></a><!-- doxytag: member="merger::init" ref="02d2a445e44a87f37ee3a2b9b40cffd1" args="()" -->
59void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#02d2a445e44a87f37ee3a2b9b40cffd1">init</a> ()</td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize the proposal density. This function must be called before <a class="el" href="classmerger.html#bc23accc77ec766bce7202934e2c180c" title="Create a mixture density, make sure to call init() before the first call.">merge()</a>! <br></td></tr>
62<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e56ad4a2bc9be2ddfc051626adf27715"></a><!-- doxytag: member="merger::merge" ref="e56ad4a2bc9be2ddfc051626adf27715" args="(const epdf *g0)" -->
63void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#e56ad4a2bc9be2ddfc051626adf27715">merge</a> (const <a class="el" href="classepdf.html">epdf</a> *g0)</td></tr>
64
65<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density using known proposal. <br></td></tr>
66<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc23accc77ec766bce7202934e2c180c"></a><!-- doxytag: member="merger::merge" ref="bc23accc77ec766bce7202934e2c180c" args="()" -->
67void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#bc23accc77ec766bce7202934e2c180c">merge</a> ()</td></tr>
68
69<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density, make sure to call <a class="el" href="classmerger.html#02d2a445e44a87f37ee3a2b9b40cffd1" title="Initialize the proposal density. This function must be called before merge()!">init()</a> before the first call. <br></td></tr>
70<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="217c65f335c603033fa09a2ecc64bc05"></a><!-- doxytag: member="merger::lognorm_merge" ref="217c65f335c603033fa09a2ecc64bc05" args="(mat &amp;lW)" -->
71vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#217c65f335c603033fa09a2ecc64bc05">lognorm_merge</a> (mat &amp;lW)</td></tr>
72
73<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Merge log-likelihood values. <br></td></tr>
74<tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#379198c3d2063bfa63f5d1245a2511ba">sample</a> () const </td></tr>
75
76<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8c37688902b1a1e9fa32edc5709e5a00"></a><!-- doxytag: member="merger::evalpdflog" ref="8c37688902b1a1e9fa32edc5709e5a00" args="(const vec &amp;dt) const " -->
77double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#8c37688902b1a1e9fa32edc5709e5a00">evalpdflog</a> (const vec &amp;dt) const </td></tr>
78
79<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
80<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a46999cd77047d5d4ac6c1cb735a83e"></a><!-- doxytag: member="merger::mean" ref="3a46999cd77047d5d4ac6c1cb735a83e" args="() const " -->
81vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#3a46999cd77047d5d4ac6c1cb735a83e">mean</a> () const </td></tr>
82
83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="51e425ee1dd46d73353526e6a1c24ca3"></a><!-- doxytag: member="merger::~merger" ref="51e425ee1dd46d73353526e6a1c24ca3" args="()" -->
85virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#51e425ee1dd46d73353526e6a1c24ca3">~merger</a> ()</td></tr>
86
87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for future use <br></td></tr>
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classRV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#635d219fb3e32852400d6f98aa4bdc93">getrv</a> (bool checkoverlap=false)</td></tr>
89
90<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">find common rv, flag  <a href="#635d219fb3e32852400d6f98aa4bdc93"></a><br></td></tr>
91<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a4479785c1fdb2cc351fbea07b899ac"></a><!-- doxytag: member="merger::setrvc" ref="5a4479785c1fdb2cc351fbea07b899ac" args="(const RV &amp;rv, RV &amp;rvc)" -->
92void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#5a4479785c1fdb2cc351fbea07b899ac">setrvc</a> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>, <a class="el" href="classRV.html">RV</a> &amp;rvc)</td></tr>
93
94<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr>
95<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08958c8f76d65de94ecc37b8d90bc77a"></a><!-- doxytag: member="merger::setindices" ref="08958c8f76d65de94ecc37b8d90bc77a" args="(const RV &amp;rv)" -->
96void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#08958c8f76d65de94ecc37b8d90bc77a">setindices</a> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr>
97
98<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">fill all rv*inrv* according to <br></td></tr>
99<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3bd4ada95f381ea6c4cff2dc86e957c4"></a><!-- doxytag: member="merger::setrvcinrv" ref="3bd4ada95f381ea6c4cff2dc86e957c4" args="(const RV &amp;rvc, Array&lt; ivec &gt; &amp;rvcind)" -->
100void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#3bd4ada95f381ea6c4cff2dc86e957c4">setrvcinrv</a> (const <a class="el" href="classRV.html">RV</a> &amp;rvc, Array&lt; ivec &gt; &amp;rvcind)</td></tr>
101
102<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function fills Array by indeces of mpdfs inside given rv. <br></td></tr>
103<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54d7dd53a641b618771cd9bee135181f"></a><!-- doxytag: member="merger::sampleN" ref="54d7dd53a641b618771cd9bee135181f" args="(int N) const " -->
104virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#54d7dd53a641b618771cd9bee135181f">sampleN</a> (int N) const </td></tr>
105
106<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns N samples from density <img class="formulaInl" alt="$epdf(rv)$" src="form_59.png">. <br></td></tr>
107<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ea597362e11a0040fe7c990269d072c"></a><!-- doxytag: member="merger::eval" ref="3ea597362e11a0040fe7c990269d072c" args="(const vec &amp;val) const " -->
108virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ea597362e11a0040fe7c990269d072c">eval</a> (const vec &amp;val) const </td></tr>
109
110<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr>
111<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cebbdd7a85e6328f7358fc0ba8eee06c"></a><!-- doxytag: member="merger::evalpdflog_m" ref="cebbdd7a85e6328f7358fc0ba8eee06c" args="(const mat &amp;Val) const " -->
112virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#cebbdd7a85e6328f7358fc0ba8eee06c">evalpdflog_m</a> (const mat &amp;Val) const </td></tr>
113
114<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr>
115<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ba08c0e788deff22134c049b9269666"></a><!-- doxytag: member="merger::condition" ref="3ba08c0e788deff22134c049b9269666" args="(const RV &amp;rv)" -->
116<a class="el" href="classmpdf.html">mpdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ba08c0e788deff22134c049b9269666">condition</a> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr>
117
118<tr><td class="mdescLeft">&nbsp;</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>
119<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc0c171b6dafacd78d26263913b1d0c0"></a><!-- doxytag: member="merger::marginal" ref="bc0c171b6dafacd78d26263913b1d0c0" args="(const RV &amp;rv)" -->
120<a class="el" href="classepdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#bc0c171b6dafacd78d26263913b1d0c0">marginal</a> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr>
121
122<tr><td class="mdescLeft">&nbsp;</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>
123<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0d32aabb4cbba347e0c37fe8607562"></a><!-- doxytag: member="merger::_rv" ref="ca0d32aabb4cbba347e0c37fe8607562" args="() const " -->
124const <a class="el" href="classRV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#ca0d32aabb4cbba347e0c37fe8607562">_rv</a> () const </td></tr>
125
126<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function, possibly dangerous! <br></td></tr>
127<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7fb94ce90d1ac7077d29f7d6a6c3e0a5"></a><!-- doxytag: member="merger::_renewrv" ref="7fb94ce90d1ac7077d29f7d6a6c3e0a5" args="(const RV &amp;in_rv)" -->
128void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#7fb94ce90d1ac7077d29f7d6a6c3e0a5">_renewrv</a> (const <a class="el" href="classRV.html">RV</a> &amp;in_rv)</td></tr>
129
130<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr>
131<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
132<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="021d1522cea70db8545d708afd32ec2f"></a><!-- doxytag: member="merger::Mix" ref="021d1522cea70db8545d708afd32ec2f" args="" -->
133<a class="el" href="classMixEF.html">MixEF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#021d1522cea70db8545d708afd32ec2f">Mix</a></td></tr>
134
135<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal mixture of EF models. <br></td></tr>
136<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce84de1824875b4262eefb640e8c6d69"></a><!-- doxytag: member="merger::Ns" ref="ce84de1824875b4262eefb640e8c6d69" args="" -->
137int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#ce84de1824875b4262eefb640e8c6d69">Ns</a></td></tr>
138
139<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of samples used in approximation. <br></td></tr>
140<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6acf33e1c64aaaee20689725e8110f65"></a><!-- doxytag: member="merger::Nc" ref="6acf33e1c64aaaee20689725e8110f65" args="" -->
141int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#6acf33e1c64aaaee20689725e8110f65">Nc</a></td></tr>
142
143<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of components in a mixture. <br></td></tr>
144<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e68a72e2740007ae68545e378c7701ad"></a><!-- doxytag: member="merger::beta" ref="e68a72e2740007ae68545e378c7701ad" args="" -->
145double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#e68a72e2740007ae68545e378c7701ad">beta</a></td></tr>
146
147<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr>
148<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1646fe41ff5934d010e54ccaa46133f"></a><!-- doxytag: member="merger::n" ref="c1646fe41ff5934d010e54ccaa46133f" args="" -->
149int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#c1646fe41ff5934d010e54ccaa46133f">n</a></td></tr>
150
151<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr>
152<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="637877061b917a16a0421bb5c4cd480d"></a><!-- doxytag: member="merger::mpdfs" ref="637877061b917a16a0421bb5c4cd480d" args="" -->
153Array&lt; <a class="el" href="classmpdf.html">mpdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#637877061b917a16a0421bb5c4cd480d">mpdfs</a></td></tr>
154
155<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elements of composition. <br></td></tr>
156<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4d4a8269f9faefeca8cdc251a5a29a7f"></a><!-- doxytag: member="merger::rvsinrv" ref="4d4a8269f9faefeca8cdc251a5a29a7f" args="" -->
157Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#4d4a8269f9faefeca8cdc251a5a29a7f">rvsinrv</a></td></tr>
158
159<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indeces of rvs in common rv. <br></td></tr>
160<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3df07bb5e3ed36a3119b145043296676"></a><!-- doxytag: member="merger::rvcsinrv" ref="3df07bb5e3ed36a3119b145043296676" args="" -->
161Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#3df07bb5e3ed36a3119b145043296676">rvcsinrv</a></td></tr>
162
163<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indeces of rvc in common rv. <br></td></tr>
164<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de3bd289a26d5549dcf1ed19e5b13569"></a><!-- doxytag: member="merger::rvinrvcs" ref="de3bd289a26d5549dcf1ed19e5b13569" args="" -->
165Array&lt; ivec &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#de3bd289a26d5549dcf1ed19e5b13569">rvinrvcs</a></td></tr>
166
167<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indeces of common rv in rvc. <br></td></tr>
168<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="merger::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" -->
169<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>
170
171<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr>
172</table>
173<hr><a name="_details"></a><h2>Detailed Description</h2>
174Function for general combination of pdfs.
175<p>
176Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <hr><h2>Member Function Documentation</h2>
177<a class="anchor" name="379198c3d2063bfa63f5d1245a2511ba"></a><!-- doxytag: member="merger::sample" ref="379198c3d2063bfa63f5d1245a2511ba" args="() const " -->
178<div class="memitem">
179<div class="memproto">
180      <table class="memname">
181        <tr>
182          <td class="memname">vec merger::sample           </td>
183          <td>(</td>
184          <td class="paramname">          </td>
185          <td>&nbsp;)&nbsp;</td>
186          <td> const<code> [inline, virtual]</code></td>
187        </tr>
188      </table>
189</div>
190<div class="memdoc">
191
192<p>
193sample from merged density weight w is a
194<p>Implements <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf</a>.</p>
195
196<p>References <a class="el" href="mixef_8h-source.html#l00092">MixEF::_epdf()</a>, <a class="el" href="merger_8h-source.html#l00031">Mix</a>, and <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf::sample()</a>.</p>
197
198</div>
199</div><p>
200<a class="anchor" name="635d219fb3e32852400d6f98aa4bdc93"></a><!-- doxytag: member="merger::getrv" ref="635d219fb3e32852400d6f98aa4bdc93" args="(bool checkoverlap=false)" -->
201<div class="memitem">
202<div class="memproto">
203      <table class="memname">
204        <tr>
205          <td class="memname"><a class="el" href="classRV.html">RV</a> compositepdf::getrv           </td>
206          <td>(</td>
207          <td class="paramtype">bool&nbsp;</td>
208          <td class="paramname"> <em>checkoverlap</em> = <code>false</code>          </td>
209          <td>&nbsp;)&nbsp;</td>
210          <td><code> [inherited]</code></td>
211        </tr>
212      </table>
213</div>
214<div class="memdoc">
215
216<p>
217find common rv, flag
218<p>
219<dl compact><dt><b>Parameters:</b></dt><dd>
220  <table border="0" cellspacing="2" cellpadding="0">
221    <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em>&nbsp;</td><td>modifies whether overlaps are acceptable </td></tr>
222  </table>
223</dl>
224
225<p>References <a class="el" href="libBM_8cpp-source.html#l00051">RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00258">compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00256">compositepdf::n</a>.</p>
226
227</div>
228</div><p>
229<hr>The documentation for this class was generated from the following files:<ul>
230<li>work/git/mixpp/bdm/estim/<a class="el" href="merger_8h-source.html">merger.h</a><li>work/git/mixpp/bdm/estim/merger.cpp</ul>
231</div>
232<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 15 15:57:15 2008 for mixpp by&nbsp;
233<a href="http://www.doxygen.org/index.html">
234<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
235</body>
236</html>
Note: See TracBrowser for help on using the browser.