root/doc/html/classmerger.html @ 255

Revision 234, 24.2 kB (checked in by smidl, 16 years ago)

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><a href="modules.html"><span>Modules</span></a></li>
14      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
15      <li><a href="files.html"><span>Files</span></a></li>
16    </ul>
17  </div>
18  <div class="tabs">
19    <ul>
20      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
21      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
22      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
23    </ul>
24  </div>
25</div>
26<div class="contents">
27<h1>merger Class Reference</h1><!-- doxytag: class="merger" --><!-- doxytag: inherits="compositepdf,epdf" -->Function for general combination of pdfs. 
28<a href="#_details">More...</a>
29<p>
30<code>#include &lt;<a class="el" href="merger_8h-source.html">merger.h</a>&gt;</code>
31<p>
32<div class="dynheader">
33Inheritance diagram for merger:</div>
34<div class="dynsection">
35<p><center><img src="classmerger__inherit__graph.png" border="0" usemap="#merger__inherit__map" alt="Inheritance graph"></center>
36<map name="merger__inherit__map">
37<area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes this abstract class is..." 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>
38<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
39<div class="dynheader">
40Collaboration diagram for merger:</div>
41<div class="dynsection">
42<p><center><img src="classmerger__coll__graph.png" border="0" usemap="#merger__coll__map" alt="Collaboration graph"></center>
43<map name="merger__coll__map">
44<area shape="rect" href="classcompositepdf.html" title="Abstract composition of pdfs, a base for specific classes this abstract class is..." alt="" coords="5,519,112,545"><area shape="rect" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="249,103,297,129"><area shape="rect" href="classeEmp.html" title="Weighted empirical density." alt="" coords="183,263,241,289"><area shape="rect" href="classeprod.html" title="Product of independent epdfs. For dependent pdfs, use mprod." alt="" coords="252,369,311,396"><area shape="rect" href="classeEF.html" title="General conjugate exponential family posterior density." alt="" coords="316,209,359,236"><area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="295,7,332,33"><area shape="rect" href="classBM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="355,156,395,183"><area shape="rect" href="classMixEF.html" title="Mixture of Exponential Family Densities." alt="" coords="305,519,361,545"><area shape="rect" href="classBMEF.html" title="Estimator for Exponential family." alt="" coords="399,316,455,343"><area shape="rect" href="classmultiBM.html" title="Estimator for Multinomial density." alt="" coords="341,423,413,449"><area shape="rect" href="classeDirich.html" title="Dirichlet posterior density." alt="" coords="311,316,375,343"></map>
45<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
46
47<p>
48<a href="classmerger-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
49<tr><td></td></tr>
50<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
51<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)" -->
52&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>
53
54<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
55<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)" -->
56void&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>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr>
59<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02d2a445e44a87f37ee3a2b9b40cffd1"></a><!-- doxytag: member="merger::init" ref="02d2a445e44a87f37ee3a2b9b40cffd1" args="()" -->
60void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#02d2a445e44a87f37ee3a2b9b40cffd1">init</a> ()</td></tr>
61
62<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>
63<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)" -->
64void&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>
65
66<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density using known proposal. <br></td></tr>
67<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc23accc77ec766bce7202934e2c180c"></a><!-- doxytag: member="merger::merge" ref="bc23accc77ec766bce7202934e2c180c" args="()" -->
68void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#bc23accc77ec766bce7202934e2c180c">merge</a> ()</td></tr>
69
70<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>
71<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)" -->
72vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#217c65f335c603033fa09a2ecc64bc05">lognorm_merge</a> (mat &amp;lW)</td></tr>
73
74<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Merge log-likelihood values. <br></td></tr>
75<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>
76
77<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="632cd7e0bcd149c0dc85042063364f6b"></a><!-- doxytag: member="merger::evallog" ref="632cd7e0bcd149c0dc85042063364f6b" args="(const vec &amp;dt) const " -->
78double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#632cd7e0bcd149c0dc85042063364f6b">evallog</a> (const vec &amp;dt) const </td></tr>
79
80<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
81<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a46999cd77047d5d4ac6c1cb735a83e"></a><!-- doxytag: member="merger::mean" ref="3a46999cd77047d5d4ac6c1cb735a83e" args="() const " -->
82vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#3a46999cd77047d5d4ac6c1cb735a83e">mean</a> () const </td></tr>
83
84<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="598e5a3b91cfc724b39eef62946a47c2"></a><!-- doxytag: member="merger::covariance" ref="598e5a3b91cfc724b39eef62946a47c2" args="() const " -->
86mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>covariance</b> () const </td></tr>
87
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d6481bfb85df3c3773cee6c83687790a"></a><!-- doxytag: member="merger::variance" ref="d6481bfb85df3c3773cee6c83687790a" args="() const " -->
89vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#d6481bfb85df3c3773cee6c83687790a">variance</a> () const </td></tr>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr>
92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="51e425ee1dd46d73353526e6a1c24ca3"></a><!-- doxytag: member="merger::~merger" ref="51e425ee1dd46d73353526e6a1c24ca3" args="()" -->
93virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#51e425ee1dd46d73353526e6a1c24ca3">~merger</a> ()</td></tr>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for future use <br></td></tr>
96<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e430acd4eb7eea6078df0eb0a429821"></a><!-- doxytag: member="merger::_Mix" ref="6e430acd4eb7eea6078df0eb0a429821" args="()" -->
97<a class="el" href="classMixEF.html">MixEF</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#6e430acd4eb7eea6078df0eb0a429821">_Mix</a> ()</td></tr>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access function. <br></td></tr>
100<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f79677063ec72cdc175280a3fae8ebc2"></a><!-- doxytag: member="merger::_Smp" ref="f79677063ec72cdc175280a3fae8ebc2" args="()" -->
101<a class="el" href="classeEmp.html">eEmp</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#f79677063ec72cdc175280a3fae8ebc2">_Smp</a> ()</td></tr>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access function. <br></td></tr>
104<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>
105
106<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">find common rv, flag  <a href="#635d219fb3e32852400d6f98aa4bdc93"></a><br></td></tr>
107<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)" -->
108void&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>
109
110<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr>
111<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76608914c3b19e150292d5c56e93e508"></a><!-- doxytag: member="merger::sample_m" ref="76608914c3b19e150292d5c56e93e508" args="(int N) const " -->
112virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#76608914c3b19e150292d5c56e93e508">sample_m</a> (int N) const </td></tr>
113
114<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>
115<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2495a04bbacb9b55fe5a3a59b78affca"></a><!-- doxytag: member="merger::evallog_m" ref="2495a04bbacb9b55fe5a3a59b78affca" args="(const mat &amp;Val) const " -->
116virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#2495a04bbacb9b55fe5a3a59b78affca">evallog_m</a> (const mat &amp;Val) const </td></tr>
117
118<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr>
119<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e87dc8260a5c37bc1b03eb66174741a0"></a><!-- doxytag: member="merger::condition" ref="e87dc8260a5c37bc1b03eb66174741a0" args="(const RV &amp;rv) const " -->
120virtual <a class="el" href="classmpdf.html">mpdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#e87dc8260a5c37bc1b03eb66174741a0">condition</a> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>) const </td></tr>
121
122<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>
123<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38de9f59b65ee06028554f3f74b66025"></a><!-- doxytag: member="merger::marginal" ref="38de9f59b65ee06028554f3f74b66025" args="(const RV &amp;rv) const " -->
124virtual <a class="el" href="classepdf.html">epdf</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#38de9f59b65ee06028554f3f74b66025">marginal</a> (const <a class="el" href="classRV.html">RV</a> &amp;<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>) const </td></tr>
125
126<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>
127<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0d32aabb4cbba347e0c37fe8607562"></a><!-- doxytag: member="merger::_rv" ref="ca0d32aabb4cbba347e0c37fe8607562" args="() const " -->
128const <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>
129
130<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function, possibly dangerous! <br></td></tr>
131<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)" -->
132void&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>
133
134<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr>
135<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
136<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="021d1522cea70db8545d708afd32ec2f"></a><!-- doxytag: member="merger::Mix" ref="021d1522cea70db8545d708afd32ec2f" args="" -->
137<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>
138
139<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal mixture of EF models. <br></td></tr>
140<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="01e222f5df660e1b25c712e82da8df8f"></a><!-- doxytag: member="merger::dls" ref="01e222f5df660e1b25c712e82da8df8f" args="" -->
141Array&lt; <a class="el" href="classdatalink__m2e.html">datalink_m2e</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#01e222f5df660e1b25c712e82da8df8f">dls</a></td></tr>
142
143<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Data link for each <a class="el" href="classmpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> in mpdfs. <br></td></tr>
144<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e741e6096a7acec3dfa477efa1d8160e"></a><!-- doxytag: member="merger::rvzs" ref="e741e6096a7acec3dfa477efa1d8160e" args="" -->
145Array&lt; <a class="el" href="classRV.html">RV</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#e741e6096a7acec3dfa477efa1d8160e">rvzs</a></td></tr>
146
147<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of rvs that are not modelled by mpdfs at all (aux). <br></td></tr>
148<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d0ff2953f904f12a355f72f51813ca7a"></a><!-- doxytag: member="merger::zdls" ref="d0ff2953f904f12a355f72f51813ca7a" args="" -->
149Array&lt; <a class="el" href="classdatalink__m2e.html">datalink_m2e</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#d0ff2953f904f12a355f72f51813ca7a">zdls</a></td></tr>
150
151<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Data Links of rv0 mpdfs - these will be conditioned the (rv,rvc) of mpdfs. <br></td></tr>
152<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce84de1824875b4262eefb640e8c6d69"></a><!-- doxytag: member="merger::Ns" ref="ce84de1824875b4262eefb640e8c6d69" args="" -->
153int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#ce84de1824875b4262eefb640e8c6d69">Ns</a></td></tr>
154
155<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of samples used in approximation. <br></td></tr>
156<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6acf33e1c64aaaee20689725e8110f65"></a><!-- doxytag: member="merger::Nc" ref="6acf33e1c64aaaee20689725e8110f65" args="" -->
157int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#6acf33e1c64aaaee20689725e8110f65">Nc</a></td></tr>
158
159<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of components in a mixture. <br></td></tr>
160<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e68a72e2740007ae68545e378c7701ad"></a><!-- doxytag: member="merger::beta" ref="e68a72e2740007ae68545e378c7701ad" args="" -->
161double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#e68a72e2740007ae68545e378c7701ad">beta</a></td></tr>
162
163<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr>
164<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b13c9e8921e6bc6b8dd7bbafb54fa801"></a><!-- doxytag: member="merger::eSmp" ref="b13c9e8921e6bc6b8dd7bbafb54fa801" args="" -->
165<a class="el" href="classeEmp.html">eEmp</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmerger.html#b13c9e8921e6bc6b8dd7bbafb54fa801">eSmp</a></td></tr>
166
167<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Projection to empirical density. <br></td></tr>
168<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1646fe41ff5934d010e54ccaa46133f"></a><!-- doxytag: member="merger::n" ref="c1646fe41ff5934d010e54ccaa46133f" args="" -->
169int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcompositepdf.html#c1646fe41ff5934d010e54ccaa46133f">n</a></td></tr>
170
171<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr>
172<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="637877061b917a16a0421bb5c4cd480d"></a><!-- doxytag: member="merger::mpdfs" ref="637877061b917a16a0421bb5c4cd480d" args="" -->
173Array&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>
174
175<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elements of composition. <br></td></tr>
176<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74da992e3f5d598da8850b646b79b9d9"></a><!-- doxytag: member="merger::rv" ref="74da992e3f5d598da8850b646b79b9d9" args="" -->
177<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>
178
179<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr>
180</table>
181<hr><a name="_details"></a><h2>Detailed Description</h2>
182Function for general combination of pdfs.
183<p>
184Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <hr><h2>Member Function Documentation</h2>
185<a class="anchor" name="379198c3d2063bfa63f5d1245a2511ba"></a><!-- doxytag: member="merger::sample" ref="379198c3d2063bfa63f5d1245a2511ba" args="() const " -->
186<div class="memitem">
187<div class="memproto">
188      <table class="memname">
189        <tr>
190          <td class="memname">vec merger::sample           </td>
191          <td>(</td>
192          <td class="paramname">          </td>
193          <td>&nbsp;)&nbsp;</td>
194          <td> const<code> [inline, virtual]</code></td>
195        </tr>
196      </table>
197</div>
198<div class="memdoc">
199
200<p>
201sample from merged density weight w is a
202<p>Implements <a class="el" href="classepdf.html#8019654e494bf5e458f6fb947e11b262">epdf</a>.</p>
203
204<p>References <a class="el" href="mixef_8h-source.html#l00106">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>
205
206</div>
207</div><p>
208<a class="anchor" name="635d219fb3e32852400d6f98aa4bdc93"></a><!-- doxytag: member="merger::getrv" ref="635d219fb3e32852400d6f98aa4bdc93" args="(bool checkoverlap=false)" -->
209<div class="memitem">
210<div class="memproto">
211      <table class="memname">
212        <tr>
213          <td class="memname"><a class="el" href="classRV.html">RV</a> compositepdf::getrv           </td>
214          <td>(</td>
215          <td class="paramtype">bool&nbsp;</td>
216          <td class="paramname"> <em>checkoverlap</em> = <code>false</code>          </td>
217          <td>&nbsp;)&nbsp;</td>
218          <td><code> [inherited]</code></td>
219        </tr>
220      </table>
221</div>
222<div class="memdoc">
223
224<p>
225find common rv, flag
226<p>
227<dl compact><dt><b>Parameters:</b></dt><dd>
228  <table border="0" cellspacing="2" cellpadding="0">
229    <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em>&nbsp;</td><td>modifies whether overlaps are acceptable </td></tr>
230  </table>
231</dl>
232
233<p>References <a class="el" href="libBM_8cpp-source.html#l00053">RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00363">compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00361">compositepdf::n</a>.</p>
234
235</div>
236</div><p>
237<hr>The documentation for this class was generated from the following files:<ul>
238<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>
239</div>
240<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 15 10:51:19 2009 for mixpp by&nbsp;
241<a href="http://www.doxygen.org/index.html">
242<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
243</body>
244</html>
Note: See TracBrowser for help on using the browser.