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="tabs.css" rel="stylesheet" type="text/css"> |
---|
5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
6 | </head><body> |
---|
7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
8 | <script type="text/javascript"> |
---|
9 | <!-- |
---|
10 | function changeDisplayState (e){ |
---|
11 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
12 | var button=this.firstChild; |
---|
13 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
14 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
15 | sectionDiv.style.display='block'; |
---|
16 | button.src='open.gif'; |
---|
17 | }else{ |
---|
18 | sectionDiv.style.display='none'; |
---|
19 | button.src='closed.gif'; |
---|
20 | } |
---|
21 | } |
---|
22 | function initDynSections(){ |
---|
23 | var divs=document.getElementsByTagName('div'); |
---|
24 | var sectionCounter=1; |
---|
25 | for(var i=0;i<divs.length-1;i++){ |
---|
26 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
27 | var header=divs[i]; |
---|
28 | var section=divs[i+1]; |
---|
29 | var button=header.firstChild; |
---|
30 | if (button!='IMG'){ |
---|
31 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
32 | button=document.createElement('img'); |
---|
33 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
34 | } |
---|
35 | header.style.cursor='pointer'; |
---|
36 | header.onclick=changeDisplayState; |
---|
37 | header.id='dynheader'+sectionCounter; |
---|
38 | button.src='closed.gif'; |
---|
39 | section.id='dynsection'+sectionCounter; |
---|
40 | section.style.display='none'; |
---|
41 | section.style.marginLeft='14px'; |
---|
42 | sectionCounter++; |
---|
43 | } |
---|
44 | } |
---|
45 | } |
---|
46 | window.onload = initDynSections; |
---|
47 | --> |
---|
48 | </script> |
---|
49 | <div class="navigation" id="top"> |
---|
50 | <div class="tabs"> |
---|
51 | <ul> |
---|
52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
56 | <li><a href="files.html"><span>Files</span></a></li> |
---|
57 | </ul> |
---|
58 | </div> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
63 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
64 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
65 | </ul> |
---|
66 | </div> |
---|
67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1merger.html">merger</a> |
---|
68 | </div> |
---|
69 | </div> |
---|
70 | <div class="contents"> |
---|
71 | <h1>bdm::merger Class Reference</h1><!-- doxytag: class="bdm::merger" --><!-- doxytag: inherits="bdm::compositepdf,bdm::epdf" -->Function for general combination of pdfs. |
---|
72 | <a href="#_details">More...</a> |
---|
73 | <p> |
---|
74 | <code>#include <<a class="el" href="merger_8h-source.html">merger.h</a>></code> |
---|
75 | <p> |
---|
76 | |
---|
77 | <p> |
---|
78 | <a href="classbdm_1_1merger-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
79 | <tr><td></td></tr> |
---|
80 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
81 | <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< mpdf * > &S)" --> |
---|
82 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#30ae0fa8a88737185f598bf63fec0569">merger</a> (const Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > &S)</td></tr> |
---|
83 | |
---|
84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94b5358c9558a8389ac78a65b83244f6"></a><!-- doxytag: member="bdm::merger::debug_file" ref="94b5358c9558a8389ac78a65b83244f6" args="(const string fname)" --> |
---|
86 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#94b5358c9558a8389ac78a65b83244f6">debug_file</a> (const string fname)</td></tr> |
---|
87 | |
---|
88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set debug file <br></td></tr> |
---|
89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22216ad175880cf2345871f9313a3f19"></a><!-- doxytag: member="bdm::merger::set_parameters" ref="22216ad175880cf2345871f9313a3f19" args="(double beta0, int Ns0, int Nc0, double effss_coef0=0.5)" --> |
---|
90 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#22216ad175880cf2345871f9313a3f19">set_parameters</a> (double beta0, int Ns0, int Nc0, double effss_coef0=0.5)</td></tr> |
---|
91 | |
---|
92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr> |
---|
93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c0bc8cfd028a84ad438c457890224e2"></a><!-- doxytag: member="bdm::merger::set_grid" ref="7c0bc8cfd028a84ad438c457890224e2" args="(Array< vec > &XYZ)" --> |
---|
94 | void </td><td class="memItemRight" valign="bottom"><b>set_grid</b> (Array< vec > &XYZ)</td></tr> |
---|
95 | |
---|
96 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ae79a651e93d6e2d611556001af8aa8"></a><!-- doxytag: member="bdm::merger::init" ref="8ae79a651e93d6e2d611556001af8aa8" args="()" --> |
---|
97 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#8ae79a651e93d6e2d611556001af8aa8">init</a> ()</td></tr> |
---|
98 | |
---|
99 | <tr><td class="mdescLeft"> </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> |
---|
100 | <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)" --> |
---|
101 | void </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> |
---|
102 | |
---|
103 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a mixture density using known proposal. <br></td></tr> |
---|
104 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b72f4662c9ac760a8b17ebe5d697f3c2"></a><!-- doxytag: member="bdm::merger::merge" ref="b72f4662c9ac760a8b17ebe5d697f3c2" args="()" --> |
---|
105 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#b72f4662c9ac760a8b17ebe5d697f3c2">merge</a> ()</td></tr> |
---|
106 | |
---|
107 | <tr><td class="mdescLeft"> </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> |
---|
108 | <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 &lW)" --> |
---|
109 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#b90f1b8a21a693176dd953a3b983aa0b">lognorm_merge</a> (mat &lW)</td></tr> |
---|
110 | |
---|
111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Merge log-likelihood values. <br></td></tr> |
---|
112 | <tr><td class="memItemLeft" nowrap align="right" valign="top">vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#0ef73e76eeee44c8e3896e3a271ad974">sample</a> () const </td></tr> |
---|
113 | |
---|
114 | <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 &dt) const " --> |
---|
115 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#c47543661897638cab9f506c76a1f92f">evallog</a> (const vec &dt) const </td></tr> |
---|
116 | |
---|
117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> |
---|
118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="82c5ad7677315fde8e9fc9381c17ece5"></a><!-- doxytag: member="bdm::merger::mean" ref="82c5ad7677315fde8e9fc9381c17ece5" args="() const " --> |
---|
119 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#82c5ad7677315fde8e9fc9381c17ece5">mean</a> () const </td></tr> |
---|
120 | |
---|
121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88e75fe2b9d7c1247b20ea7760c061f1"></a><!-- doxytag: member="bdm::merger::covariance" ref="88e75fe2b9d7c1247b20ea7760c061f1" args="() const " --> |
---|
123 | mat </td><td class="memItemRight" valign="bottom"><b>covariance</b> () const </td></tr> |
---|
124 | |
---|
125 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcef70ece256b1ab1fa7a3a354eb1cc4"></a><!-- doxytag: member="bdm::merger::variance" ref="bcef70ece256b1ab1fa7a3a354eb1cc4" args="() const " --> |
---|
126 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#bcef70ece256b1ab1fa7a3a354eb1cc4">variance</a> () const </td></tr> |
---|
127 | |
---|
128 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
---|
129 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="febef179bb5e074ae6e34d15b4596273"></a><!-- doxytag: member="bdm::merger::~merger" ref="febef179bb5e074ae6e34d15b4596273" args="()" --> |
---|
130 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#febef179bb5e074ae6e34d15b4596273">~merger</a> ()</td></tr> |
---|
131 | |
---|
132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">for future use <br></td></tr> |
---|
133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13f8534f626a37bed91a6d9db54d6d2f"></a><!-- doxytag: member="bdm::merger::_Mix" ref="13f8534f626a37bed91a6d9db54d6d2f" args="()" --> |
---|
134 | <a class="el" href="classbdm_1_1MixEF.html">MixEF</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#13f8534f626a37bed91a6d9db54d6d2f">_Mix</a> ()</td></tr> |
---|
135 | |
---|
136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access function. <br></td></tr> |
---|
137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="59314cda058b05ede7831f36b9f759cf"></a><!-- doxytag: member="bdm::merger::proposal" ref="59314cda058b05ede7831f36b9f759cf" args="()" --> |
---|
138 | <a class="el" href="classbdm_1_1emix.html">emix</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#59314cda058b05ede7831f36b9f759cf">proposal</a> ()</td></tr> |
---|
139 | |
---|
140 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access function. <br></td></tr> |
---|
141 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23f5f8b80df579b05681006fbcfe3699"></a><!-- doxytag: member="bdm::merger::_Smp" ref="23f5f8b80df579b05681006fbcfe3699" args="()" --> |
---|
142 | <a class="el" href="classbdm_1_1eEmp.html">eEmp</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#23f5f8b80df579b05681006fbcfe3699">_Smp</a> ()</td></tr> |
---|
143 | |
---|
144 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Access function. <br></td></tr> |
---|
145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#c73d39acc4378eee6a63155c3517d3c9">getrv</a> (bool checkoverlap=false)</td></tr> |
---|
146 | |
---|
147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">find common rv, flag <a href="#c73d39acc4378eee6a63155c3517d3c9"></a><br></td></tr> |
---|
148 | <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 &rv, RV &rvc)" --> |
---|
149 | void </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> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>, <a class="el" href="classbdm_1_1RV.html">RV</a> &rvc)</td></tr> |
---|
150 | |
---|
151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">common rvc of all mpdfs is written to rvc <br></td></tr> |
---|
152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e47a8bd9337478fa4e46d5a2a4336f9a"></a><!-- doxytag: member="bdm::merger::to_string" ref="e47a8bd9337478fa4e46d5a2a4336f9a" args="()" --> |
---|
153 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#e47a8bd9337478fa4e46d5a2a4336f9a">to_string</a> ()</td></tr> |
---|
154 | |
---|
155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d4602efd3ad9fb9e4532426e4f488df8"></a><!-- doxytag: member="bdm::merger::from_setting" ref="d4602efd3ad9fb9e4532426e4f488df8" args="(const Setting &root)" --> |
---|
157 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#d4602efd3ad9fb9e4532426e4f488df8">from_setting</a> (const Setting &root)</td></tr> |
---|
158 | |
---|
159 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method arrange instance properties according the data stored in the Setting structure. <br></td></tr> |
---|
160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dd74cb898b22b95b7ee528e040a07618"></a><!-- doxytag: member="bdm::merger::to_setting" ref="dd74cb898b22b95b7ee528e040a07618" args="(Setting &root) const " --> |
---|
161 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#dd74cb898b22b95b7ee528e040a07618">to_setting</a> (Setting &root) const </td></tr> |
---|
162 | |
---|
163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d8cc21ea15fc723065eed5f3100757a5"></a><!-- doxytag: member="bdm::merger::validate" ref="d8cc21ea15fc723065eed5f3100757a5" args="()" --> |
---|
165 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1bdmroot.html#d8cc21ea15fc723065eed5f3100757a5">validate</a> ()</td></tr> |
---|
166 | |
---|
167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
168 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
169 | <tr><td colspan="2"><div class="groupText">Construction of each <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> should support two types of constructors: <ul> |
---|
170 | <li>empty constructor, </li> |
---|
171 | <li>copy constructor,</li> |
---|
172 | </ul> |
---|
173 | The following constructors should be supported for convenience: <ul> |
---|
174 | <li>constructor followed by calling <code><a class="el" href="classbdm_1_1merger.html#22216ad175880cf2345871f9313a3f19" title="Set internal parameters used in approximation.">set_parameters()</a></code> </li> |
---|
175 | <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> |
---|
176 | </ul> |
---|
177 | All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code><a class="el" href="classbdm_1_1merger.html#22216ad175880cf2345871f9313a3f19" title="Set internal parameters used in approximation.">set_parameters()</a></code>. This way references can be initialized in constructors. <br><br></div></td></tr> |
---|
178 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::merger::set_parameters" ref="840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> |
---|
179 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
180 | |
---|
181 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
182 | <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 " --> |
---|
183 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
---|
184 | |
---|
185 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_47.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_48.png">. <br></td></tr> |
---|
186 | <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 &Val) const " --> |
---|
187 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#34956d4dd3176eeb5937cf48a1546b62">evallog_m</a> (const mat &Val) const </td></tr> |
---|
188 | |
---|
189 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
190 | <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 &rv) const " --> |
---|
191 | virtual <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * </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> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
192 | |
---|
193 | <tr><td class="mdescLeft"> </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> |
---|
194 | <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 &rv) const " --> |
---|
195 | virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </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> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
---|
196 | |
---|
197 | <tr><td class="mdescLeft"> </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> |
---|
198 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::merger::qbounds" ref="0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
---|
199 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &lb, vec &ub, double percentage=0.95) const </td></tr> |
---|
200 | |
---|
201 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br></td></tr> |
---|
202 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
203 | <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> |
---|
204 | <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 &rv0)" --> |
---|
205 | void </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> &rv0)</td></tr> |
---|
206 | |
---|
207 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
---|
208 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::merger::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
209 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
210 | |
---|
211 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
---|
212 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::merger::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
213 | const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> |
---|
214 | |
---|
215 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
---|
216 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
217 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::merger::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
218 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
219 | |
---|
220 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
---|
221 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
222 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67ae71cbf0686d7c7bf116fa5db86d81"></a><!-- doxytag: member="bdm::merger::Mix" ref="67ae71cbf0686d7c7bf116fa5db86d81" args="" --> |
---|
223 | <a class="el" href="classbdm_1_1MixEF.html">MixEF</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#67ae71cbf0686d7c7bf116fa5db86d81">Mix</a></td></tr> |
---|
224 | |
---|
225 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal mixture of EF models. <br></td></tr> |
---|
226 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea3c9f4739f857877fd5285b3973289c"></a><!-- doxytag: member="bdm::merger::dls" ref="ea3c9f4739f857877fd5285b3973289c" args="" --> |
---|
227 | Array< <a class="el" href="classbdm_1_1datalink__m2e.html">datalink_m2e</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#ea3c9f4739f857877fd5285b3973289c">dls</a></td></tr> |
---|
228 | |
---|
229 | <tr><td class="mdescLeft"> </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> |
---|
230 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="135b938f841cb88ad00a8bbded818703"></a><!-- doxytag: member="bdm::merger::rvzs" ref="135b938f841cb88ad00a8bbded818703" args="" --> |
---|
231 | Array< <a class="el" href="classbdm_1_1RV.html">RV</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#135b938f841cb88ad00a8bbded818703">rvzs</a></td></tr> |
---|
232 | |
---|
233 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array of rvs that are not modelled by mpdfs at all (aux). <br></td></tr> |
---|
234 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c48bf36ec1f3f7b52e3159cf428a193"></a><!-- doxytag: member="bdm::merger::zdls" ref="6c48bf36ec1f3f7b52e3159cf428a193" args="" --> |
---|
235 | Array< <a class="el" href="classbdm_1_1datalink__m2e.html">datalink_m2e</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#6c48bf36ec1f3f7b52e3159cf428a193">zdls</a></td></tr> |
---|
236 | |
---|
237 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Data Links of rv0 mpdfs - these will be conditioned the (rv,rvc) of mpdfs. <br></td></tr> |
---|
238 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e91b83e6d9076848c71ae27664072109"></a><!-- doxytag: member="bdm::merger::Ns" ref="e91b83e6d9076848c71ae27664072109" args="" --> |
---|
239 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#e91b83e6d9076848c71ae27664072109">Ns</a></td></tr> |
---|
240 | |
---|
241 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of samples used in approximation. <br></td></tr> |
---|
242 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="214ca7c566e8f75d45bb243d7c74580d"></a><!-- doxytag: member="bdm::merger::Nc" ref="214ca7c566e8f75d45bb243d7c74580d" args="" --> |
---|
243 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#214ca7c566e8f75d45bb243d7c74580d">Nc</a></td></tr> |
---|
244 | |
---|
245 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of components in a mixture. <br></td></tr> |
---|
246 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a85d299f202a70afe0cdc1045c26a5d"></a><!-- doxytag: member="bdm::merger::beta" ref="1a85d299f202a70afe0cdc1045c26a5d" args="" --> |
---|
247 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#1a85d299f202a70afe0cdc1045c26a5d">beta</a></td></tr> |
---|
248 | |
---|
249 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr> |
---|
250 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="522d43f7aa13fe6701e93fba174dec94"></a><!-- doxytag: member="bdm::merger::eSmp" ref="522d43f7aa13fe6701e93fba174dec94" args="" --> |
---|
251 | <a class="el" href="classbdm_1_1eEmp.html">eEmp</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#522d43f7aa13fe6701e93fba174dec94">eSmp</a></td></tr> |
---|
252 | |
---|
253 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Projection to empirical density. <br></td></tr> |
---|
254 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="045974350a3612ef4080eab6360b3d70"></a><!-- doxytag: member="bdm::merger::effss_coef" ref="045974350a3612ef4080eab6360b3d70" args="" --> |
---|
255 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#045974350a3612ef4080eab6360b3d70">effss_coef</a></td></tr> |
---|
256 | |
---|
257 | <tr><td class="mdescLeft"> </td><td class="mdescRight">coefficient of resampling <br></td></tr> |
---|
258 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="14081d8c5cffdcc6c2f81cb61da41dbe"></a><!-- doxytag: member="bdm::merger::DBG" ref="14081d8c5cffdcc6c2f81cb61da41dbe" args="" --> |
---|
259 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#14081d8c5cffdcc6c2f81cb61da41dbe">DBG</a></td></tr> |
---|
260 | |
---|
261 | <tr><td class="mdescLeft"> </td><td class="mdescRight">debug or not debug <br></td></tr> |
---|
262 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b99a4a9384dc088dc164372d206138f"></a><!-- doxytag: member="bdm::merger::dbg" ref="2b99a4a9384dc088dc164372d206138f" args="" --> |
---|
263 | it_file * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#2b99a4a9384dc088dc164372d206138f">dbg</a></td></tr> |
---|
264 | |
---|
265 | <tr><td class="mdescLeft"> </td><td class="mdescRight">debugging file <br></td></tr> |
---|
266 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05dc6d9876677fcf84806d39f24e5509"></a><!-- doxytag: member="bdm::merger::fix_smp" ref="05dc6d9876677fcf84806d39f24e5509" args="" --> |
---|
267 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#05dc6d9876677fcf84806d39f24e5509">fix_smp</a></td></tr> |
---|
268 | |
---|
269 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if the samples are fixed or not. <br></td></tr> |
---|
270 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ca3cd8ed92a7154f5b9ff13b1e9d52a"></a><!-- doxytag: member="bdm::merger::n" ref="7ca3cd8ed92a7154f5b9ff13b1e9d52a" args="" --> |
---|
271 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#7ca3cd8ed92a7154f5b9ff13b1e9d52a">n</a></td></tr> |
---|
272 | |
---|
273 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr> |
---|
274 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::merger::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" --> |
---|
275 | Array< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#23faf2debc4dde10836393b8c665914a">mpdfs</a></td></tr> |
---|
276 | |
---|
277 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elements of composition. <br></td></tr> |
---|
278 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::merger::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
279 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
280 | |
---|
281 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
---|
282 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::merger::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
283 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
---|
284 | |
---|
285 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
---|
286 | </table> |
---|
287 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
288 | Function for general combination of pdfs. |
---|
289 | <p> |
---|
290 | Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <hr><h2>Member Function Documentation</h2> |
---|
291 | <a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::merger::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" --> |
---|
292 | <div class="memitem"> |
---|
293 | <div class="memproto"> |
---|
294 | <table class="memname"> |
---|
295 | <tr> |
---|
296 | <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv </td> |
---|
297 | <td>(</td> |
---|
298 | <td class="paramtype">bool </td> |
---|
299 | <td class="paramname"> <em>checkoverlap</em> = <code>false</code> </td> |
---|
300 | <td> ) </td> |
---|
301 | <td><code> [inherited]</code></td> |
---|
302 | </tr> |
---|
303 | </table> |
---|
304 | </div> |
---|
305 | <div class="memdoc"> |
---|
306 | |
---|
307 | <p> |
---|
308 | find common rv, flag |
---|
309 | <p> |
---|
310 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
311 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
312 | <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em> </td><td>modifies whether overlaps are acceptable </td></tr> |
---|
313 | </table> |
---|
314 | </dl> |
---|
315 | |
---|
316 | <p>References <a class="el" href="libBM_8cpp-source.html#l00078">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00563">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00561">bdm::compositepdf::n</a>.</p> |
---|
317 | |
---|
318 | <p>Referenced by <a class="el" href="merger_8h-source.html#l00060">merger()</a>, and <a class="el" href="emix_8h-source.html#l00236">bdm::mprod::mprod()</a>.</p> |
---|
319 | |
---|
320 | </div> |
---|
321 | </div><p> |
---|
322 | <a class="anchor" name="0ef73e76eeee44c8e3896e3a271ad974"></a><!-- doxytag: member="bdm::merger::sample" ref="0ef73e76eeee44c8e3896e3a271ad974" args="() const " --> |
---|
323 | <div class="memitem"> |
---|
324 | <div class="memproto"> |
---|
325 | <table class="memname"> |
---|
326 | <tr> |
---|
327 | <td class="memname">vec bdm::merger::sample </td> |
---|
328 | <td>(</td> |
---|
329 | <td class="paramname"> </td> |
---|
330 | <td> ) </td> |
---|
331 | <td> const<code> [inline, virtual]</code></td> |
---|
332 | </tr> |
---|
333 | </table> |
---|
334 | </div> |
---|
335 | <div class="memdoc"> |
---|
336 | |
---|
337 | <p> |
---|
338 | sample from merged density weight w is a |
---|
339 | <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b">bdm::epdf</a>.</p> |
---|
340 | |
---|
341 | <p>References <a class="el" href="merger_8h-source.html#l00033">Mix</a>, <a class="el" href="mixef_8h-source.html#l00109">bdm::MixEF::posterior()</a>, and <a class="el" href="libBM_8h-source.html#l00258">bdm::epdf::sample()</a>.</p> |
---|
342 | |
---|
343 | </div> |
---|
344 | </div><p> |
---|
345 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
346 | <li><a class="el" href="merger_8h-source.html">merger.h</a><li>merger.cpp</ul> |
---|
347 | </div> |
---|
348 | <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 15 13:47:07 2009 for mixpp by |
---|
349 | <a href="http://www.doxygen.org/index.html"> |
---|
350 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
351 | </body> |
---|
352 | </html> |
---|