root/doc/html/classbdm_1_1merger.html @ 269

Revision 269, 25.5 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: 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" -->Function for general combination of pdfs. 
32<a href="#_details">More...</a>
33<p>
34<code>#include &lt;<a class="el" href="merger_8h-source.html">merger.h</a>&gt;</code>
35<p>
36<div class="dynheader">
37Inheritance diagram for bdm::merger:</div>
38<div class="dynsection">
39<p><center><img src="classbdm_1_1merger__inherit__graph.png" border="0" usemap="#bdm_1_1merger__inherit__map" alt="Inheritance graph"></center>
40<map name="bdm_1_1merger__inherit__map">
41<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>
42<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
43<div class="dynheader">
44Collaboration diagram for bdm::merger:</div>
45<div class="dynsection">
46<p><center><img src="classbdm_1_1merger__coll__graph.png" border="0" usemap="#bdm_1_1merger__coll__map" alt="Collaboration graph"></center>
47<map name="bdm_1_1merger__coll__map">
48<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,588,149,615"><area shape="rect" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density." alt="" coords="291,199,376,225"><area shape="rect" href="classbdm_1_1eEF.html" title="General conjugate exponential family posterior density." alt="" coords="373,279,453,305"><area shape="rect" href="classbdm_1_1eprod.html" title="Product of independent epdfs. For dependent pdfs, use mprod." alt="" coords="285,332,381,359"><area shape="rect" href="classbdm_1_1eEmp.html" title="Weighted empirical density." alt="" coords="207,439,303,465"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="352,7,464,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="371,87,445,113"><area shape="rect" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities." alt="" coords="444,199,521,225"><area shape="rect" href="classbdm_1_1MixEF.html" title="Mixture of Exponential Family Densities." alt="" coords="320,588,413,615"><area shape="rect" href="classbdm_1_1BMEF.html" title="Estimator for Exponential family." alt="" coords="496,385,589,412"><area shape="rect" href="classbdm_1_1multiBM.html" title="Estimator for Multinomial density." alt="" coords="371,492,480,519"><area shape="rect" href="classbdm_1_1eDirich.html" title="Dirichlet posterior density." alt="" coords="371,385,472,412"></map>
49<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
50
51<p>
52<a href="classbdm_1_1merger-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
53<tr><td></td></tr>
54<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
55<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)" -->
56&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>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
59<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)" -->
60void&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>
61
62<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr>
63<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ae79a651e93d6e2d611556001af8aa8"></a><!-- doxytag: member="bdm::merger::init" ref="8ae79a651e93d6e2d611556001af8aa8" args="()" -->
64void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#8ae79a651e93d6e2d611556001af8aa8">init</a> ()</td></tr>
65
66<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>
67<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)" -->
68void&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>
69
70<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a mixture density using known proposal. <br></td></tr>
71<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b72f4662c9ac760a8b17ebe5d697f3c2"></a><!-- doxytag: member="bdm::merger::merge" ref="b72f4662c9ac760a8b17ebe5d697f3c2" args="()" -->
72void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#b72f4662c9ac760a8b17ebe5d697f3c2">merge</a> ()</td></tr>
73
74<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>
75<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)" -->
76vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#b90f1b8a21a693176dd953a3b983aa0b">lognorm_merge</a> (mat &amp;lW)</td></tr>
77
78<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Merge log-likelihood values. <br></td></tr>
79<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>
80
81<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 " -->
82double&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>
83
84<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr>
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="82c5ad7677315fde8e9fc9381c17ece5"></a><!-- doxytag: member="bdm::merger::mean" ref="82c5ad7677315fde8e9fc9381c17ece5" args="() const " -->
86vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#82c5ad7677315fde8e9fc9381c17ece5">mean</a> () const </td></tr>
87
88<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr>
89<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88e75fe2b9d7c1247b20ea7760c061f1"></a><!-- doxytag: member="bdm::merger::covariance" ref="88e75fe2b9d7c1247b20ea7760c061f1" args="() const " -->
90mat&nbsp;</td><td class="memItemRight" valign="bottom"><b>covariance</b> () const </td></tr>
91
92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcef70ece256b1ab1fa7a3a354eb1cc4"></a><!-- doxytag: member="bdm::merger::variance" ref="bcef70ece256b1ab1fa7a3a354eb1cc4" args="() const " -->
93vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#bcef70ece256b1ab1fa7a3a354eb1cc4">variance</a> () const </td></tr>
94
95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr>
96<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="febef179bb5e074ae6e34d15b4596273"></a><!-- doxytag: member="bdm::merger::~merger" ref="febef179bb5e074ae6e34d15b4596273" args="()" -->
97virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#febef179bb5e074ae6e34d15b4596273">~merger</a> ()</td></tr>
98
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">for future use <br></td></tr>
100<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13f8534f626a37bed91a6d9db54d6d2f"></a><!-- doxytag: member="bdm::merger::_Mix" ref="13f8534f626a37bed91a6d9db54d6d2f" args="()" -->
101<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>
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="anchor" name="23f5f8b80df579b05681006fbcfe3699"></a><!-- doxytag: member="bdm::merger::_Smp" ref="23f5f8b80df579b05681006fbcfe3699" args="()" -->
105<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>
106
107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access function. <br></td></tr>
108<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>
109
110<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">find common rv, flag  <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr>
111<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)" -->
112void&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>
113
114<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr>
115<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 " -->
116virtual 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>
117
118<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>
119<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 " -->
120virtual 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>
121
122<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr>
123<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 " -->
124virtual <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>
125
126<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>
127<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 " -->
128virtual <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>
129
130<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>
131<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::merger::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " -->
132const <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>
133
134<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function, possibly dangerous! <br></td></tr>
135<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62e88cbce0ce77a8692f5e15d76e805f"></a><!-- doxytag: member="bdm::merger::_renewrv" ref="62e88cbce0ce77a8692f5e15d76e805f" args="(const RV &amp;in_rv)" -->
136void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62e88cbce0ce77a8692f5e15d76e805f">_renewrv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;in_rv)</td></tr>
137
138<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">modifier function - useful when copying epdfs <br></td></tr>
139<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
140<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67ae71cbf0686d7c7bf116fa5db86d81"></a><!-- doxytag: member="bdm::merger::Mix" ref="67ae71cbf0686d7c7bf116fa5db86d81" args="" -->
141<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>
142
143<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Internal mixture of EF models. <br></td></tr>
144<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea3c9f4739f857877fd5285b3973289c"></a><!-- doxytag: member="bdm::merger::dls" ref="ea3c9f4739f857877fd5285b3973289c" args="" -->
145Array&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>
146
147<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>
148<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="135b938f841cb88ad00a8bbded818703"></a><!-- doxytag: member="bdm::merger::rvzs" ref="135b938f841cb88ad00a8bbded818703" args="" -->
149Array&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>
150
151<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of rvs that are not modelled by mpdfs at all (aux). <br></td></tr>
152<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c48bf36ec1f3f7b52e3159cf428a193"></a><!-- doxytag: member="bdm::merger::zdls" ref="6c48bf36ec1f3f7b52e3159cf428a193" args="" -->
153Array&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>
154
155<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>
156<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e91b83e6d9076848c71ae27664072109"></a><!-- doxytag: member="bdm::merger::Ns" ref="e91b83e6d9076848c71ae27664072109" args="" -->
157int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#e91b83e6d9076848c71ae27664072109">Ns</a></td></tr>
158
159<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of samples used in approximation. <br></td></tr>
160<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="214ca7c566e8f75d45bb243d7c74580d"></a><!-- doxytag: member="bdm::merger::Nc" ref="214ca7c566e8f75d45bb243d7c74580d" args="" -->
161int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#214ca7c566e8f75d45bb243d7c74580d">Nc</a></td></tr>
162
163<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of components in a mixture. <br></td></tr>
164<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a85d299f202a70afe0cdc1045c26a5d"></a><!-- doxytag: member="bdm::merger::beta" ref="1a85d299f202a70afe0cdc1045c26a5d" args="" -->
165double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#1a85d299f202a70afe0cdc1045c26a5d">beta</a></td></tr>
166
167<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr>
168<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="522d43f7aa13fe6701e93fba174dec94"></a><!-- doxytag: member="bdm::merger::eSmp" ref="522d43f7aa13fe6701e93fba174dec94" args="" -->
169<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>
170
171<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Projection to empirical density. <br></td></tr>
172<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ca3cd8ed92a7154f5b9ff13b1e9d52a"></a><!-- doxytag: member="bdm::merger::n" ref="7ca3cd8ed92a7154f5b9ff13b1e9d52a" args="" -->
173int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#7ca3cd8ed92a7154f5b9ff13b1e9d52a">n</a></td></tr>
174
175<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr>
176<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::merger::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" -->
177Array&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>
178
179<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elements of composition. <br></td></tr>
180<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::merger::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" -->
181<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>
182
183<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Identified of the random variable. <br></td></tr>
184</table>
185<hr><a name="_details"></a><h2>Detailed Description</h2>
186Function for general combination of pdfs.
187<p>
188Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <hr><h2>Member Function Documentation</h2>
189<a class="anchor" name="0ef73e76eeee44c8e3896e3a271ad974"></a><!-- doxytag: member="bdm::merger::sample" ref="0ef73e76eeee44c8e3896e3a271ad974" args="() const " -->
190<div class="memitem">
191<div class="memproto">
192      <table class="memname">
193        <tr>
194          <td class="memname">vec bdm::merger::sample           </td>
195          <td>(</td>
196          <td class="paramname">          </td>
197          <td>&nbsp;)&nbsp;</td>
198          <td> const<code> [inline, virtual]</code></td>
199        </tr>
200      </table>
201</div>
202<div class="memdoc">
203
204<p>
205sample from merged density weight w is a
206<p>Implements <a class="el" href="classbdm_1_1epdf.html#09721eb148bc49d6ec2f1956039f3a10">bdm::epdf</a>.</p>
207
208<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>
209
210</div>
211</div><p>
212<a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::merger::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" -->
213<div class="memitem">
214<div class="memproto">
215      <table class="memname">
216        <tr>
217          <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv           </td>
218          <td>(</td>
219          <td class="paramtype">bool&nbsp;</td>
220          <td class="paramname"> <em>checkoverlap</em> = <code>false</code>          </td>
221          <td>&nbsp;)&nbsp;</td>
222          <td><code> [inherited]</code></td>
223        </tr>
224      </table>
225</div>
226<div class="memdoc">
227
228<p>
229find common rv, flag
230<p>
231<dl compact><dt><b>Parameters:</b></dt><dd>
232  <table border="0" cellspacing="2" cellpadding="0">
233    <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em>&nbsp;</td><td>modifies whether overlaps are acceptable </td></tr>
234  </table>
235</dl>
236
237<p>References <a class="el" href="libBM_8cpp-source.html#l00060">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00438">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00436">bdm::compositepdf::n</a>.</p>
238
239</div>
240</div><p>
241<hr>The documentation for this class was generated from the following files:<ul>
242<li><a class="el" href="merger_8h-source.html">merger.h</a><li>merger.cpp</ul>
243</div>
244<hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 11 10:20:49 2009 for mixpp by&nbsp;
245<a href="http://www.doxygen.org/index.html">
246<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
247</body>
248</html>
Note: See TracBrowser for help on using the browser.