[259] | 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"> |
---|
[290] | 5 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
[259] | 6 | </head><body> |
---|
[290] | 7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
[271] | 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> |
---|
[259] | 49 | <div class="navigation" id="top"> |
---|
| 50 | <div class="tabs"> |
---|
| 51 | <ul> |
---|
[271] | 52 | <li><a href="main.html"><span>Main Page</span></a></li> |
---|
[259] | 53 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 54 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
[290] | 55 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
[259] | 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> |
---|
[290] | 62 | <li><a href="classes.html"><span>Class Index</span></a></li> |
---|
[259] | 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> |
---|
[271] | 67 | <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1merger.html">merger</a> |
---|
[259] | 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
[290] | 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> |
---|
[259] | 73 | <p> |
---|
[290] | 74 | <code>#include <<a class="el" href="merger_8h-source.html">merger.h</a>></code> |
---|
| 75 | <p> |
---|
[259] | 76 | |
---|
| 77 | <p> |
---|
[290] | 78 | <a href="classbdm_1_1merger-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
[259] | 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> |
---|
[302] | 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> |
---|
[312] | 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> |
---|
[259] | 91 | |
---|
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set internal parameters used in approximation. <br></td></tr> |
---|
[302] | 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 | |
---|
[259] | 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> |
---|
[312] | 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> |
---|
[259] | 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> |
---|
[271] | 152 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 153 | <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> |
---|
| 154 | <li>empty constructor, </li> |
---|
| 155 | <li>copy constructor,</li> |
---|
| 156 | </ul> |
---|
| 157 | The following constructors should be supported for convenience: <ul> |
---|
[312] | 158 | <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> |
---|
[271] | 159 | <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> |
---|
| 160 | </ul> |
---|
[312] | 161 | 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> |
---|
[271] | 162 | <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)" --> |
---|
| 163 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
| 164 | |
---|
[270] | 165 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
[259] | 166 | <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 " --> |
---|
| 167 | 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> |
---|
| 168 | |
---|
[275] | 169 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_44.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_45.png">. <br></td></tr> |
---|
[259] | 170 | <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 " --> |
---|
| 171 | 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> |
---|
| 172 | |
---|
| 173 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
| 174 | <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 " --> |
---|
| 175 | 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> |
---|
| 176 | |
---|
| 177 | <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> |
---|
| 178 | <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 " --> |
---|
| 179 | 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> |
---|
| 180 | |
---|
| 181 | <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> |
---|
[287] | 182 | <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 " --> |
---|
| 183 | 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> |
---|
| 184 | |
---|
| 185 | <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> |
---|
[270] | 186 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
| 187 | <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> |
---|
| 188 | <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)" --> |
---|
| 189 | 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> |
---|
| 190 | |
---|
| 191 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
---|
| 192 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::merger::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
| 193 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
| 194 | |
---|
| 195 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
---|
[259] | 196 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::merger::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
| 197 | 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> |
---|
| 198 | |
---|
[270] | 199 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
---|
| 200 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
[271] | 201 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::merger::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
| 202 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
[259] | 203 | |
---|
[270] | 204 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
---|
[259] | 205 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 206 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67ae71cbf0686d7c7bf116fa5db86d81"></a><!-- doxytag: member="bdm::merger::Mix" ref="67ae71cbf0686d7c7bf116fa5db86d81" args="" --> |
---|
| 207 | <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> |
---|
| 208 | |
---|
| 209 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Internal mixture of EF models. <br></td></tr> |
---|
| 210 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea3c9f4739f857877fd5285b3973289c"></a><!-- doxytag: member="bdm::merger::dls" ref="ea3c9f4739f857877fd5285b3973289c" args="" --> |
---|
| 211 | 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> |
---|
| 212 | |
---|
| 213 | <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> |
---|
| 214 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="135b938f841cb88ad00a8bbded818703"></a><!-- doxytag: member="bdm::merger::rvzs" ref="135b938f841cb88ad00a8bbded818703" args="" --> |
---|
| 215 | 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> |
---|
| 216 | |
---|
| 217 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Array of rvs that are not modelled by mpdfs at all (aux). <br></td></tr> |
---|
| 218 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c48bf36ec1f3f7b52e3159cf428a193"></a><!-- doxytag: member="bdm::merger::zdls" ref="6c48bf36ec1f3f7b52e3159cf428a193" args="" --> |
---|
| 219 | 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> |
---|
| 220 | |
---|
| 221 | <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> |
---|
| 222 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e91b83e6d9076848c71ae27664072109"></a><!-- doxytag: member="bdm::merger::Ns" ref="e91b83e6d9076848c71ae27664072109" args="" --> |
---|
| 223 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#e91b83e6d9076848c71ae27664072109">Ns</a></td></tr> |
---|
| 224 | |
---|
| 225 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of samples used in approximation. <br></td></tr> |
---|
| 226 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="214ca7c566e8f75d45bb243d7c74580d"></a><!-- doxytag: member="bdm::merger::Nc" ref="214ca7c566e8f75d45bb243d7c74580d" args="" --> |
---|
| 227 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#214ca7c566e8f75d45bb243d7c74580d">Nc</a></td></tr> |
---|
| 228 | |
---|
| 229 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of components in a mixture. <br></td></tr> |
---|
| 230 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a85d299f202a70afe0cdc1045c26a5d"></a><!-- doxytag: member="bdm::merger::beta" ref="1a85d299f202a70afe0cdc1045c26a5d" args="" --> |
---|
| 231 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#1a85d299f202a70afe0cdc1045c26a5d">beta</a></td></tr> |
---|
| 232 | |
---|
| 233 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Prior on the log-normal merging model. <br></td></tr> |
---|
| 234 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="522d43f7aa13fe6701e93fba174dec94"></a><!-- doxytag: member="bdm::merger::eSmp" ref="522d43f7aa13fe6701e93fba174dec94" args="" --> |
---|
| 235 | <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> |
---|
| 236 | |
---|
| 237 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Projection to empirical density. <br></td></tr> |
---|
[312] | 238 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="045974350a3612ef4080eab6360b3d70"></a><!-- doxytag: member="bdm::merger::effss_coef" ref="045974350a3612ef4080eab6360b3d70" args="" --> |
---|
| 239 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#045974350a3612ef4080eab6360b3d70">effss_coef</a></td></tr> |
---|
| 240 | |
---|
| 241 | <tr><td class="mdescLeft"> </td><td class="mdescRight">coefficient of resampling <br></td></tr> |
---|
[302] | 242 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="14081d8c5cffdcc6c2f81cb61da41dbe"></a><!-- doxytag: member="bdm::merger::DBG" ref="14081d8c5cffdcc6c2f81cb61da41dbe" args="" --> |
---|
| 243 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#14081d8c5cffdcc6c2f81cb61da41dbe">DBG</a></td></tr> |
---|
| 244 | |
---|
| 245 | <tr><td class="mdescLeft"> </td><td class="mdescRight">debug or not debug <br></td></tr> |
---|
| 246 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b99a4a9384dc088dc164372d206138f"></a><!-- doxytag: member="bdm::merger::dbg" ref="2b99a4a9384dc088dc164372d206138f" args="" --> |
---|
| 247 | it_file * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#2b99a4a9384dc088dc164372d206138f">dbg</a></td></tr> |
---|
| 248 | |
---|
| 249 | <tr><td class="mdescLeft"> </td><td class="mdescRight">debugging file <br></td></tr> |
---|
| 250 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05dc6d9876677fcf84806d39f24e5509"></a><!-- doxytag: member="bdm::merger::fix_smp" ref="05dc6d9876677fcf84806d39f24e5509" args="" --> |
---|
| 251 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1merger.html#05dc6d9876677fcf84806d39f24e5509">fix_smp</a></td></tr> |
---|
| 252 | |
---|
| 253 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if the samples are fixed or not. <br></td></tr> |
---|
[259] | 254 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ca3cd8ed92a7154f5b9ff13b1e9d52a"></a><!-- doxytag: member="bdm::merger::n" ref="7ca3cd8ed92a7154f5b9ff13b1e9d52a" args="" --> |
---|
| 255 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1compositepdf.html#7ca3cd8ed92a7154f5b9ff13b1e9d52a">n</a></td></tr> |
---|
| 256 | |
---|
| 257 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of mpdfs in the composite. <br></td></tr> |
---|
| 258 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23faf2debc4dde10836393b8c665914a"></a><!-- doxytag: member="bdm::merger::mpdfs" ref="23faf2debc4dde10836393b8c665914a" args="" --> |
---|
| 259 | 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> |
---|
| 260 | |
---|
| 261 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Elements of composition. <br></td></tr> |
---|
[270] | 262 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::merger::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
| 263 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
| 264 | |
---|
| 265 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
---|
[259] | 266 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::merger::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
| 267 | <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> |
---|
| 268 | |
---|
[270] | 269 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
---|
[259] | 270 | </table> |
---|
[290] | 271 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 272 | Function for general combination of pdfs. |
---|
| 273 | <p> |
---|
| 274 | Mixtures of Gaussian densities are used internally. Switching to other densities should be trivial. <hr><h2>Member Function Documentation</h2> |
---|
| 275 | <a class="anchor" name="c73d39acc4378eee6a63155c3517d3c9"></a><!-- doxytag: member="bdm::merger::getrv" ref="c73d39acc4378eee6a63155c3517d3c9" args="(bool checkoverlap=false)" --> |
---|
[259] | 276 | <div class="memitem"> |
---|
| 277 | <div class="memproto"> |
---|
| 278 | <table class="memname"> |
---|
| 279 | <tr> |
---|
[290] | 280 | <td class="memname"><a class="el" href="classbdm_1_1RV.html">RV</a> bdm::compositepdf::getrv </td> |
---|
[259] | 281 | <td>(</td> |
---|
[290] | 282 | <td class="paramtype">bool </td> |
---|
| 283 | <td class="paramname"> <em>checkoverlap</em> = <code>false</code> </td> |
---|
[259] | 284 | <td> ) </td> |
---|
[290] | 285 | <td><code> [inherited]</code></td> |
---|
[259] | 286 | </tr> |
---|
| 287 | </table> |
---|
| 288 | </div> |
---|
| 289 | <div class="memdoc"> |
---|
| 290 | |
---|
| 291 | <p> |
---|
[290] | 292 | find common rv, flag |
---|
| 293 | <p> |
---|
| 294 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 295 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 296 | <tr><td valign="top"></td><td valign="top"><em>checkoverlap</em> </td><td>modifies whether overlaps are acceptable </td></tr> |
---|
| 297 | </table> |
---|
| 298 | </dl> |
---|
[259] | 299 | |
---|
[302] | 300 | <p>References <a class="el" href="libBM_8cpp-source.html#l00079">bdm::RV::add()</a>, <a class="el" href="libBM_8h-source.html#l00545">bdm::compositepdf::mpdfs</a>, and <a class="el" href="libBM_8h-source.html#l00543">bdm::compositepdf::n</a>.</p> |
---|
[259] | 301 | |
---|
[312] | 302 | <p>Referenced by <a class="el" href="merger_8h-source.html#l00060">merger()</a>, and <a class="el" href="emix_8h-source.html#l00180">bdm::mprod::mprod()</a>.</p> |
---|
[290] | 303 | |
---|
[259] | 304 | </div> |
---|
| 305 | </div><p> |
---|
[290] | 306 | <a class="anchor" name="0ef73e76eeee44c8e3896e3a271ad974"></a><!-- doxytag: member="bdm::merger::sample" ref="0ef73e76eeee44c8e3896e3a271ad974" args="() const " --> |
---|
[259] | 307 | <div class="memitem"> |
---|
| 308 | <div class="memproto"> |
---|
| 309 | <table class="memname"> |
---|
| 310 | <tr> |
---|
[290] | 311 | <td class="memname">vec bdm::merger::sample </td> |
---|
[259] | 312 | <td>(</td> |
---|
[290] | 313 | <td class="paramname"> </td> |
---|
[259] | 314 | <td> ) </td> |
---|
[290] | 315 | <td> const<code> [inline, virtual]</code></td> |
---|
[259] | 316 | </tr> |
---|
| 317 | </table> |
---|
| 318 | </div> |
---|
| 319 | <div class="memdoc"> |
---|
| 320 | |
---|
| 321 | <p> |
---|
[290] | 322 | sample from merged density weight w is a |
---|
| 323 | <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b">bdm::epdf</a>.</p> |
---|
[259] | 324 | |
---|
[302] | 325 | <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#l00242">bdm::epdf::sample()</a>.</p> |
---|
[259] | 326 | |
---|
| 327 | </div> |
---|
| 328 | </div><p> |
---|
| 329 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[261] | 330 | <li><a class="el" href="merger_8h-source.html">merger.h</a><li>merger.cpp</ul> |
---|
[259] | 331 | </div> |
---|
[312] | 332 | <hr size="1"><address style="text-align: right;"><small>Generated on Thu Apr 9 14:33:21 2009 for mixpp by |
---|
[259] | 333 | <a href="http://www.doxygen.org/index.html"> |
---|
[290] | 334 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[259] | 335 | </body> |
---|
| 336 | </html> |
---|