root/doc/html/classbdm_1_1merger.html @ 270

Revision 270, 25.4 kB (checked in by smidl, 16 years ago)

Changes in the very root classes!
* rv and rvc are no longer compulsory,
* samplecond does not return ll
* BM has drv

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: bdm::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><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&nbsp;List</span></a></li>
22      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
23      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
24      <li><a href="functions.html"><span>Class&nbsp;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_1merger.html">merger</a>
28  </div>
29</div>
30<div class="contents">
31<h1>bdm::merger Class Reference</h1><!-- doxytag: class="bdm::merger" --><!-- doxytag: inherits="bdm::compositepdf,bdm::epdf" --><code>#include &lt;<a class="el" href="merger_8h-source.html">merger.h</a>&gt;</code>
32<p>
33<div class="dynheader">
34Inheritance diagram for bdm::merger:</div>
35<div class="dynsection">
36<p><center><img src="classbdm_1_1merger__inherit__graph.png" border="0" usemap="#bdm_1_1merger__inherit__map" alt="Inheritance graph"></center>
37<map name="bdm_1_1merger__inherit__map">
38<area shape="rect" href="classbdm_1_1compositepdf.html" title="Abstract composition of pdfs, will be used for specific classes this abstract class..." alt="" coords="5,84,149,111"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="173,84,259,111"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="160,7,272,33"></map>
39<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
40
41<p>
42<a href="classbdm_1_1merger-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
43Function for general combination of pdfs.
44<p>
45Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <table border="0" cellpadding="0" cellspacing="0">
46<tr><td></td></tr>
47<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
48<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="30ae0fa8a88737185f598bf63fec0569"></a><!-- doxytag: member="bdm::merger::merger" ref="30ae0fa8a88737185f598bf63fec0569" args="(const Array&lt; mpdf * &gt; &amp;S)" -->
49&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#30ae0fa8a88737185f598bf63fec0569">merger</a> (const Array&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * &gt; &amp;S)</td></tr>
50
51<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
52<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc867c8e2b4709041bf8802ae9c78e37"></a><!-- doxytag: member="bdm::merger::set_parameters" ref="bc867c8e2b4709041bf8802ae9c78e37" args="(double beta0, int Ns0, int Nc0)" -->
53void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#bc867c8e2b4709041bf8802ae9c78e37">set_parameters</a> (double beta0, int Ns0, int Nc0)</td></tr>
54
55<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr>
56<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ae79a651e93d6e2d611556001af8aa8"></a><!-- doxytag: member="bdm::merger::init" ref="8ae79a651e93d6e2d611556001af8aa8" args="()" -->
57void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#8ae79a651e93d6e2d611556001af8aa8">init</a> ()</td></tr>
58
59<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize the proposal density. This function must be called before <a class="el" href="classbdm_1_1merger.html#b72f4662c9ac760a8b17ebe5d697f3c2" title="Create a mixture density, make sure to call init() before the first call.">merge()</a>! <br></td></tr>
60<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3d9f0ba04c8e74be8246d840cc537879"></a><!-- doxytag: member="bdm::merger::merge" ref="3d9f0ba04c8e74be8246d840cc537879" args="(const epdf *g0)" -->
61void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#3d9f0ba04c8e74be8246d840cc537879">merge</a> (const <a class="el" href="classbdm_1_1epdf.html">epdf</a> *g0)</td></tr>
62
63<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density using known proposal. <br></td></tr>
64<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b72f4662c9ac760a8b17ebe5d697f3c2"></a><!-- doxytag: member="bdm::merger::merge" ref="b72f4662c9ac760a8b17ebe5d697f3c2" args="()" -->
65void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#b72f4662c9ac760a8b17ebe5d697f3c2">merge</a> ()</td></tr>
66
67<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density, make sure to call <a class="el" href="classbdm_1_1merger.html#8ae79a651e93d6e2d611556001af8aa8" title="Initialize the proposal density. This function must be called before merge()!">init()</a> before the first call. <br></td></tr>
68<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b90f1b8a21a693176dd953a3b983aa0b"></a><!-- doxytag: member="bdm::merger::lognorm_merge" ref="b90f1b8a21a693176dd953a3b983aa0b" args="(mat &amp;lW)" -->
69vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#b90f1b8a21a693176dd953a3b983aa0b">lognorm_merge</a> (mat &amp;lW)</td></tr>
70
71<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Merge log-likelihood values. <br></td></tr>
72<tr><td class="memItemLeft" nowrap align="right" valign="top">vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#0ef73e76eeee44c8e3896e3a271ad974">sample</a> () const </td></tr>
73
74<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c47543661897638cab9f506c76a1f92f"></a><!-- doxytag: member="bdm::merger::evallog" ref="c47543661897638cab9f506c76a1f92f" args="(const vec &amp;dt) const " -->
75double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#c47543661897638cab9f506c76a1f92f">evallog</a> (const vec &amp;dt) const </td></tr>
76
77<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
78<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="82c5ad7677315fde8e9fc9381c17ece5"></a><!-- doxytag: member="bdm::merger::mean" ref="82c5ad7677315fde8e9fc9381c17ece5" args="() const " -->
79vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#82c5ad7677315fde8e9fc9381c17ece5">mean</a> () const </td></tr>
80
81<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
82<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88e75fe2b9d7c1247b20ea7760c061f1"></a><!-- doxytag: member="bdm::merger::covariance" ref="88e75fe2b9d7c1247b20ea7760c061f1" args="() const " -->
83mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>covariance</b> () const </td></tr>
84
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcef70ece256b1ab1fa7a3a354eb1cc4"></a><!-- doxytag: member="bdm::merger::variance" ref="bcef70ece256b1ab1fa7a3a354eb1cc4" args="() const " -->
86vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#bcef70ece256b1ab1fa7a3a354eb1cc4">variance</a> () const </td></tr>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr>
89<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="febef179bb5e074ae6e34d15b4596273"></a><!-- doxytag: member="bdm::merger::~merger" ref="febef179bb5e074ae6e34d15b4596273" args="()" -->
90virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#febef179bb5e074ae6e34d15b4596273">~merger</a> ()</td></tr>
91
92<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for future use <br></td></tr>
93<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13f8534f626a37bed91a6d9db54d6d2f"></a><!-- doxytag: member="bdm::merger::_Mix" ref="13f8534f626a37bed91a6d9db54d6d2f" args="()" -->
94<a class="el" href="classbdm_1_1MixEF.html">MixEF</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#13f8534f626a37bed91a6d9db54d6d2f">_Mix</a> ()</td></tr>
95
96<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access function. <br></td></tr>
97<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23f5f8b80df579b05681006fbcfe3699"></a><!-- doxytag: member="bdm::merger::_Smp" ref="23f5f8b80df579b05681006fbcfe3699" args="()" -->
98<a class="el" href="classbdm_1_1eEmp.html">eEmp</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#23f5f8b80df579b05681006fbcfe3699">_Smp</a> ()</td></tr>
99
100<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access function. <br></td></tr>
101<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c73d39acc4378eee6a63155c3517d3c9">getrv</a> (bool checkoverlap=false)</td></tr>
102
103<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">find common rv, flag  <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr>
104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c71fc2c51f49d797e61f479f543c75ce"></a><!-- doxytag: member="bdm::merger::setrvc" ref="c71fc2c51f49d797e61f479f543c75ce" args="(const RV &amp;rv, RV &amp;rvc)" -->
105void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c71fc2c51f49d797e61f479f543c75ce">setrvc</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>, <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rvc)</td></tr>
106
107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr>
108<tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr>
109<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::merger::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " -->
110virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr>
111
112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_108.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_109.png">. <br></td></tr>
113<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34956d4dd3176eeb5937cf48a1546b62"></a><!-- doxytag: member="bdm::merger::evallog_m" ref="34956d4dd3176eeb5937cf48a1546b62" args="(const mat &amp;Val) const " -->
114virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#34956d4dd3176eeb5937cf48a1546b62">evallog_m</a> (const mat &amp;Val) const </td></tr>
115
116<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr>
117<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e584eac5579c1b6384947ecf66166c77"></a><!-- doxytag: member="bdm::merger::condition" ref="e584eac5579c1b6384947ecf66166c77" args="(const RV &amp;rv) const " -->
118virtual <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> *&nbsp;</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> &amp;<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr>
119
120<tr><td class="mdescLeft">&nbsp;</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>
121<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fb2ece54f720b62ad325e61214fa0a1"></a><!-- doxytag: member="bdm::merger::marginal" ref="3fb2ece54f720b62ad325e61214fa0a1" args="(const RV &amp;rv) const " -->
122virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> *&nbsp;</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> &amp;<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr>
123
124<tr><td class="mdescLeft">&nbsp;</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>
125<tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr>
126<tr><td colspan="2"><div class="groupText">Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: <br><br></div></td></tr>
127<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::merger::set_rv" ref="f423e28448dbb69ef4905295ec8de8ff" args="(const RV &amp;rv0)" -->
128void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv0)</td></tr>
129
130<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Name its rv. <br></td></tr>
131<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::merger::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " -->
132bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr>
133
134<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if rv is assigned. <br></td></tr>
135<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::merger::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " -->
136const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr>
137
138<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr>
139<tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr>
140<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="46dfe100cd621716ee5c7ee25a20f24b"></a><!-- doxytag: member="bdm::merger::dimension" ref="46dfe100cd621716ee5c7ee25a20f24b" args="() const " -->
141bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#46dfe100cd621716ee5c7ee25a20f24b">dimension</a> () const </td></tr>
142
143<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Size of the random variable. <br></td></tr>
144<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
145<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67ae71cbf0686d7c7bf116fa5db86d81"></a><!-- doxytag: member="bdm::merger::Mix" ref="67ae71cbf0686d7c7bf116fa5db86d81" args="" -->
146<a class="el" href="classbdm_1_1MixEF.html">MixEF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#67ae71cbf0686d7c7bf116fa5db86d81">Mix</a></td></tr>
147
148<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal mixture of EF models. <br></td></tr>
149<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea3c9f4739f857877fd5285b3973289c"></a><!-- doxytag: member="bdm::merger::dls" ref="ea3c9f4739f857877fd5285b3973289c" args="" -->
150Array&lt; <a class="el" href="classbdm_1_1datalink__m2e.html">datalink_m2e</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#ea3c9f4739f857877fd5285b3973289c">dls</a></td></tr>
151
152<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Data link for each <a class="el" href="classbdm_1_1mpdf.html" title="Conditional probability density, e.g. modeling some dependencies.">mpdf</a> in mpdfs. <br></td></tr>
153<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="135b938f841cb88ad00a8bbded818703"></a><!-- doxytag: member="bdm::merger::rvzs" ref="135b938f841cb88ad00a8bbded818703" args="" -->
154Array&lt; <a class="el" href="classbdm_1_1RV.html">RV</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#135b938f841cb88ad00a8bbded818703">rvzs</a></td></tr>
155
156<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of rvs that are not modelled by mpdfs at all (aux). <br></td></tr>
157<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c48bf36ec1f3f7b52e3159cf428a193"></a><!-- doxytag: member="bdm::merger::zdls" ref="6c48bf36ec1f3f7b52e3159cf428a193" args="" -->
158Array&lt; <a class="el" href="classbdm_1_1datalink__m2e.html">datalink_m2e</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#6c48bf36ec1f3f7b52e3159cf428a193">zdls</a></td></tr>
159
160<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>
161<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e91b83e6d9076848c71ae27664072109"></a><!-- doxytag: member="bdm::merger::Ns" ref="e91b83e6d9076848c71ae27664072109" args="" -->
162int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#e91b83e6d9076848c71ae27664072109">Ns</a></td></tr>
163
164<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of samples used in approximation. <br></td></tr>
165<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="214ca7c566e8f75d45bb243d7c74580d"></a><!-- doxytag: member="bdm::merger::Nc" ref="214ca7c566e8f75d45bb243d7c74580d" args="" -->
166int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#214ca7c566e8f75d45bb243d7c74580d">Nc</a></td></tr>
167
168<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of components in a mixture. <br></td></tr>
169<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a85d299f202a70afe0cdc1045c26a5d"></a><!-- doxytag: member="bdm::merger::beta" ref="1a85d299f202a70afe0cdc1045c26a5d" args="" -->
170double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#1a85d299f202a70afe0cdc1045c26a5d">beta</a></td></tr>
171
172<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr>
173<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="522d43f7aa13fe6701e93fba174dec94"></a><!-- doxytag: member="bdm::merger::eSmp" ref="522d43f7aa13fe6701e93fba174dec94" args="" -->
174<a class="el" href="classbdm_1_1eEmp.html">eEmp</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#522d43f7aa13fe6701e93fba174dec94">eSmp</a></td></tr>
175
176<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Projection to empirical density. <br></td></tr>
177<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ca3cd8ed92a7154f5b9ff13b1e9d52a"></a><!-- doxytag: member="bdm::merger::n" ref="7ca3cd8ed92a7154f5b9ff13b1e9d52a" args="" -->
178int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#7ca3cd8ed92a7154f5b9ff13b1e9d52a">n</a></td></tr>
179
180<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr>
181<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::merger::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" -->
182Array&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a">mpdfs</a></td></tr>
183
184<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elements of composition. <br></td></tr>
185<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::merger::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" -->
186int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr>
187
188<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension of the random variable <br></td></tr>
189<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::merger::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" -->
190<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr>
191
192<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Description of the random variable. <br></td></tr>
193</table>
194<hr><h2>Member Function Documentation</h2>
195<a class="anchor" name="0ef73e76eeee44c8e3896e3a271ad974"></a><!-- doxytag: member="bdm::merger::sample" ref="0ef73e76eeee44c8e3896e3a271ad974" args="() const " -->
196<div class="memitem">
197<div class="memproto">
198      <table class="memname">
199        <tr>
200          <td class="memname">vec bdm::merger::sample           </td>
201          <td>(</td>
202          <td class="paramname">          </td>
203          <td>&nbsp;)&nbsp;</td>
204          <td> const<code> [inline, virtual]</code></td>
205        </tr>
206      </table>
207</div>
208<div class="memdoc">
209
210<p>
211sample from merged density weight w is a
212<p>Implements <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf</a>.</p>
213
214<p>References <a class="el" href="mixef_8h-source.html#l00106">bdm::MixEF::_epdf()</a>, <a class="el" href="merger_8h-source.html#l00031">Mix</a>, and <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf::sample()</a>.</p>
215
216</div>
217</div><p>
218<a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::merger::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" -->
219<div class="memitem">
220<div class="memproto">
221      <table class="memname">
222        <tr>
223          <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv           </td>
224          <td>(</td>
225          <td class="paramtype">bool&nbsp;</td>
226          <td class="paramname"> <em>checkoverlap</em> = <code>false</code>          </td>
227          <td>&nbsp;)&nbsp;</td>
228          <td><code> [inherited]</code></td>
229        </tr>
230      </table>
231</div>
232<div class="memdoc">
233
234<p>
235find common rv, flag
236<p>
237<dl compact><dt><b>Parameters:</b></dt><dd>
238  <table border="0" cellspacing="2" cellpadding="0">
239    <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em>&nbsp;</td><td>modifies whether overlaps are acceptable </td></tr>
240  </table>
241</dl>
242
243<p>References <a class="el" href="libBM_8cpp-source.html#l00059">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00508">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00506">bdm::compositepdf::n</a>.</p>
244
245</div>
246</div><p>
247<hr>The documentation for this class was generated from the following files:<ul>
248<li><a class="el" href="merger_8h-source.html">merger.h</a><li>merger.cpp</ul>
249</div>
250<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 23:34:02 2009 for mixpp by&nbsp;
251<a href="http://www.doxygen.org/index.html">
252<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
253</body>
254</html>
Note: See TracBrowser for help on using the browser.