[353] | 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::egiwmix 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> |
---|
[398] | 7 | <!-- Generated by Doxygen 1.5.8 --> |
---|
[353] | 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_1egiwmix.html">egiwmix</a> |
---|
| 68 | </div> |
---|
| 69 | </div> |
---|
| 70 | <div class="contents"> |
---|
| 71 | <h1>bdm::egiwmix Class Reference</h1><!-- doxytag: class="bdm::egiwmix" --><!-- doxytag: inherits="bdm::egiw" -->Mixture of egiws. |
---|
| 72 | <a href="#_details">More...</a> |
---|
| 73 | <p> |
---|
[398] | 74 | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
---|
[353] | 75 | <p> |
---|
| 76 | |
---|
| 77 | <p> |
---|
| 78 | <a href="classbdm_1_1egiwmix-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="41f4cf7baf554e0a70bf495457179dbb"></a><!-- doxytag: member="bdm::egiwmix::egiwmix" ref="41f4cf7baf554e0a70bf495457179dbb" args="()" --> |
---|
| 82 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#41f4cf7baf554e0a70bf495457179dbb">egiwmix</a> ()</td></tr> |
---|
| 83 | |
---|
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
[354] | 85 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#c4627222e22df6e14f8f1496e13c4975">set_parameters</a> (const vec &<a class="el" href="classbdm_1_1egiwmix.html#2deb6d7cd689949b92450227de98afa4">w</a>, const Array< <a class="el" href="classbdm_1_1egiw.html">egiw</a> * > &<a class="el" href="classbdm_1_1egiwmix.html#8d0a3acd6ced68349b8f9950f4658280">Coms</a>, bool copy=false)</td></tr> |
---|
[353] | 86 | |
---|
| 87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74e7c77bd89a454a7fd984945c58df1c"></a><!-- doxytag: member="bdm::egiwmix::mean" ref="74e7c77bd89a454a7fd984945c58df1c" args="() const " --> |
---|
| 88 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#74e7c77bd89a454a7fd984945c58df1c">mean</a> () const </td></tr> |
---|
| 89 | |
---|
| 90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
| 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8bd92fb4c94a46220e84d9a39ddd2e28"></a><!-- doxytag: member="bdm::egiwmix::sample" ref="8bd92fb4c94a46220e84d9a39ddd2e28" args="() const " --> |
---|
| 92 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#8bd92fb4c94a46220e84d9a39ddd2e28">sample</a> () const </td></tr> |
---|
| 93 | |
---|
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return a sample from the density <br></td></tr> |
---|
| 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96e1cfb7157b87f04e2957ca4d883425"></a><!-- doxytag: member="bdm::egiwmix::variance" ref="96e1cfb7157b87f04e2957ca4d883425" args="() const " --> |
---|
| 96 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#96e1cfb7157b87f04e2957ca4d883425">variance</a> () const </td></tr> |
---|
| 97 | |
---|
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return the expected variance <br></td></tr> |
---|
| 99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="99962cd566fc4e6d59099dae6b7ecb8c"></a><!-- doxytag: member="bdm::egiwmix::mean_mat" ref="99962cd566fc4e6d59099dae6b7ecb8c" args="(mat &M, mat &R) const " --> |
---|
| 100 | void </td><td class="memItemRight" valign="bottom"><b>mean_mat</b> (mat &M, mat &R) const </td></tr> |
---|
| 101 | |
---|
| 102 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5713da45d66410382d6eca4e1b05a132"></a><!-- doxytag: member="bdm::egiwmix::evallog_nn" ref="5713da45d66410382d6eca4e1b05a132" args="(const vec &val) const " --> |
---|
| 103 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#5713da45d66410382d6eca4e1b05a132">evallog_nn</a> (const vec &val) const </td></tr> |
---|
| 104 | |
---|
| 105 | <tr><td class="mdescLeft"> </td><td class="mdescRight">In this instance, val= [theta, r]. For multivariate instances, it is stored columnwise val = [theta_1 theta_2 ... r_1 r_2 ]. <br></td></tr> |
---|
| 106 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7c9bc72ecea861dd2416f852905bf023"></a><!-- doxytag: member="bdm::egiwmix::lognc" ref="7c9bc72ecea861dd2416f852905bf023" args="() const " --> |
---|
| 107 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#7c9bc72ecea861dd2416f852905bf023">lognc</a> () const </td></tr> |
---|
| 108 | |
---|
[397] | 109 | <tr><td class="mdescLeft"> </td><td class="mdescRight">logarithm of the normalizing constant, <img class="formulaInl" alt="$\mathcal{I}$" src="form_89.png"> <br></td></tr> |
---|
[353] | 110 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="93d5e0abb98256a2cf7b557098f3f8ec"></a><!-- doxytag: member="bdm::egiwmix::marginal" ref="93d5e0abb98256a2cf7b557098f3f8ec" args="(const RV &rv) const " --> |
---|
| 111 | <a class="el" href="classbdm_1_1emix.html">emix</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#93d5e0abb98256a2cf7b557098f3f8ec">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> |
---|
| 112 | |
---|
| 113 | <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> |
---|
| 114 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="884d203ca3994b9fba4c8bd440f355ea"></a><!-- doxytag: member="bdm::egiwmix::_w" ref="884d203ca3994b9fba4c8bd440f355ea" args="()" --> |
---|
| 115 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#884d203ca3994b9fba4c8bd440f355ea">_w</a> ()</td></tr> |
---|
| 116 | |
---|
| 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br></td></tr> |
---|
| 118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="adc550fe74df25524c20867e89b5b096"></a><!-- doxytag: member="bdm::egiwmix::ownComs" ref="adc550fe74df25524c20867e89b5b096" args="()" --> |
---|
| 119 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#adc550fe74df25524c20867e89b5b096">ownComs</a> ()</td></tr> |
---|
| 120 | |
---|
| 121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function for taking ownership of the <a class="el" href="classbdm_1_1egiwmix.html#8d0a3acd6ced68349b8f9950f4658280" title="Component (epdfs).">Coms()</a>. <br></td></tr> |
---|
| 122 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d20a56a7b129c1ea9f71725e15f8ad8c"></a><!-- doxytag: member="bdm::egiwmix::_Coms" ref="d20a56a7b129c1ea9f71725e15f8ad8c" args="(int i)" --> |
---|
| 123 | <a class="el" href="classbdm_1_1egiw.html">egiw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#d20a56a7b129c1ea9f71725e15f8ad8c">_Coms</a> (int i)</td></tr> |
---|
| 124 | |
---|
| 125 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 126 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dc999c5c1402c450200f22128db688b2"></a><!-- doxytag: member="bdm::egiwmix::set_rv" ref="dc999c5c1402c450200f22128db688b2" args="(const RV &rv)" --> |
---|
| 127 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#dc999c5c1402c450200f22128db688b2">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>)</td></tr> |
---|
| 128 | |
---|
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
---|
| 130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="10894d50e82130cc5b93d3cbc30b2e4d"></a><!-- doxytag: member="bdm::egiwmix::approx" ref="10894d50e82130cc5b93d3cbc30b2e4d" args="()" --> |
---|
| 131 | <a class="el" href="classbdm_1_1egiw.html">egiw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#10894d50e82130cc5b93d3cbc30b2e4d">approx</a> ()</td></tr> |
---|
| 132 | |
---|
| 133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Approximation of a GiW mix by a single GiW pdf. <br></td></tr> |
---|
| 134 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66d2ba9295c306012b309efcc9e516f0"></a><!-- doxytag: member="bdm::egiwmix::est_theta" ref="66d2ba9295c306012b309efcc9e516f0" args="() const " --> |
---|
| 135 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#66d2ba9295c306012b309efcc9e516f0">est_theta</a> () const </td></tr> |
---|
| 136 | |
---|
[397] | 137 | <tr><td class="mdescLeft"> </td><td class="mdescRight">LS estimate of <img class="formulaInl" alt="$\theta$" src="form_90.png">. <br></td></tr> |
---|
[353] | 138 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88c321a2051d1afdbb31a098896a717b"></a><!-- doxytag: member="bdm::egiwmix::est_theta_cov" ref="88c321a2051d1afdbb31a098896a717b" args="() const " --> |
---|
| 139 | <a class="el" href="classldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#88c321a2051d1afdbb31a098896a717b">est_theta_cov</a> () const </td></tr> |
---|
| 140 | |
---|
| 141 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Covariance of the LS estimate. <br></td></tr> |
---|
| 142 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8e610e95401a11baf34f65e16ecd87be"></a><!-- doxytag: member="bdm::egiwmix::pow" ref="8e610e95401a11baf34f65e16ecd87be" args="(double p)" --> |
---|
| 143 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#8e610e95401a11baf34f65e16ecd87be">pow</a> (double p)</td></tr> |
---|
| 144 | |
---|
| 145 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Power of the density, used e.g. to flatten the density. <br></td></tr> |
---|
| 146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="deef7d6273ba4d5a5cf0bbd91ec7277a"></a><!-- doxytag: member="bdm::egiwmix::dupdate" ref="deef7d6273ba4d5a5cf0bbd91ec7277a" args="(mat &v)" --> |
---|
| 147 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#deef7d6273ba4d5a5cf0bbd91ec7277a">dupdate</a> (mat &v)</td></tr> |
---|
| 148 | |
---|
| 149 | <tr><td class="mdescLeft"> </td><td class="mdescRight">TODO decide if it is really needed. <br></td></tr> |
---|
| 150 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a36d06ecdd6f4c79dc122510eaccc692"></a><!-- doxytag: member="bdm::egiwmix::evallog" ref="a36d06ecdd6f4c79dc122510eaccc692" args="(const vec &val) const " --> |
---|
| 151 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#a36d06ecdd6f4c79dc122510eaccc692">evallog</a> (const vec &val) const </td></tr> |
---|
| 152 | |
---|
| 153 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability. <br></td></tr> |
---|
| 154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79a7c8ea8c02e45d410bd1d7ffd72b41"></a><!-- doxytag: member="bdm::egiwmix::evallog" ref="79a7c8ea8c02e45d410bd1d7ffd72b41" args="(const mat &Val) const " --> |
---|
| 155 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#79a7c8ea8c02e45d410bd1d7ffd72b41">evallog</a> (const mat &Val) const </td></tr> |
---|
| 156 | |
---|
| 157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br></td></tr> |
---|
[396] | 158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egiwmix::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
| 159 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
[353] | 160 | |
---|
| 161 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
[396] | 162 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egiwmix::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
| 163 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
---|
[353] | 164 | |
---|
| 165 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
[396] | 166 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egiwmix::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
| 167 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
[368] | 168 | |
---|
| 169 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
[353] | 170 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 171 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40b04f8ef133d089c4be2c7983e18b5c"></a><!-- doxytag: member="bdm::egiwmix::set_parameters" ref="40b04f8ef133d089c4be2c7983e18b5c" args="(int dimx0, ldmat V0, double nu0=-1.0)" --> |
---|
| 172 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dimx0, <a class="el" href="classldmat.html">ldmat</a> V0, double nu0=-1.0)</td></tr> |
---|
| 173 | |
---|
| 174 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
| 175 | <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> |
---|
| 176 | <li>empty constructor, </li> |
---|
| 177 | <li>copy constructor,</li> |
---|
| 178 | </ul> |
---|
| 179 | The following constructors should be supported for convenience: <ul> |
---|
| 180 | <li>constructor followed by calling <code><a class="el" href="classbdm_1_1egiwmix.html#c4627222e22df6e14f8f1496e13c4975">set_parameters()</a></code> </li> |
---|
| 181 | <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1egiwmix.html#dc999c5c1402c450200f22128db688b2" title="Name its rv.">set_rv()</a></code> </li> |
---|
| 182 | </ul> |
---|
| 183 | All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code><a class="el" href="classbdm_1_1egiwmix.html#c4627222e22df6e14f8f1496e13c4975">set_parameters()</a></code>. This way references can be initialized in constructors. <br><br></div></td></tr> |
---|
| 184 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::egiwmix::set_parameters" ref="840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> |
---|
| 185 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
| 186 | |
---|
| 187 | <tr><td colspan="2"><div class="groupHeader">Access attributes</div></td></tr> |
---|
| 188 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15792f3112e5cf67d572f491b09324c8"></a><!-- doxytag: member="bdm::egiwmix::_V" ref="15792f3112e5cf67d572f491b09324c8" args="()" --> |
---|
| 189 | <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><b>_V</b> ()</td></tr> |
---|
| 190 | |
---|
| 191 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ad9c539a80a552e837245ddcebcbbba4"></a><!-- doxytag: member="bdm::egiwmix::_V" ref="ad9c539a80a552e837245ddcebcbbba4" args="() const " --> |
---|
| 192 | const <a class="el" href="classldmat.html">ldmat</a> & </td><td class="memItemRight" valign="bottom"><b>_V</b> () const </td></tr> |
---|
| 193 | |
---|
| 194 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a025ee710274ca142dd0ae978735ad4a"></a><!-- doxytag: member="bdm::egiwmix::_nu" ref="a025ee710274ca142dd0ae978735ad4a" args="()" --> |
---|
| 195 | double & </td><td class="memItemRight" valign="bottom"><b>_nu</b> ()</td></tr> |
---|
| 196 | |
---|
| 197 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf3b2bcb158c15c24788bba90e4154e4"></a><!-- doxytag: member="bdm::egiwmix::_nu" ref="cf3b2bcb158c15c24788bba90e4154e4" args="() const " --> |
---|
| 198 | const double & </td><td class="memItemRight" valign="bottom"><b>_nu</b> () const </td></tr> |
---|
| 199 | |
---|
[396] | 200 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#55b76ec75bd2df5ef9cab3be20a33bbb">from_setting</a> (const Setting &set)</td></tr> |
---|
| 201 | |
---|
[353] | 202 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
| 203 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::egiwmix::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
| 204 | 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> |
---|
| 205 | |
---|
[397] | 206 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_9.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_10.png">. <br></td></tr> |
---|
[353] | 207 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34956d4dd3176eeb5937cf48a1546b62"></a><!-- doxytag: member="bdm::egiwmix::evallog_m" ref="34956d4dd3176eeb5937cf48a1546b62" args="(const mat &Val) const " --> |
---|
| 208 | 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> |
---|
| 209 | |
---|
| 210 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[396] | 211 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="512dbf057299e871fbc61ed55acb5888"></a><!-- doxytag: member="bdm::egiwmix::evallog_m" ref="512dbf057299e871fbc61ed55acb5888" args="(const Array< vec > &Avec) const " --> |
---|
| 212 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#512dbf057299e871fbc61ed55acb5888">evallog_m</a> (const Array< vec > &Avec) const </td></tr> |
---|
| 213 | |
---|
| 214 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
[353] | 215 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e584eac5579c1b6384947ecf66166c77"></a><!-- doxytag: member="bdm::egiwmix::condition" ref="e584eac5579c1b6384947ecf66166c77" args="(const RV &rv) const " --> |
---|
| 216 | 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> |
---|
| 217 | |
---|
| 218 | <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> |
---|
| 219 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::egiwmix::qbounds" ref="0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
---|
| 220 | 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> |
---|
| 221 | |
---|
| 222 | <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> |
---|
| 223 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
| 224 | <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> |
---|
| 225 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::egiwmix::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
| 226 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
| 227 | |
---|
| 228 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
---|
| 229 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::egiwmix::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
| 230 | 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> |
---|
| 231 | |
---|
| 232 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
---|
| 233 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
| 234 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::egiwmix::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
| 235 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
| 236 | |
---|
| 237 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
---|
| 238 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 239 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2deb6d7cd689949b92450227de98afa4"></a><!-- doxytag: member="bdm::egiwmix::w" ref="2deb6d7cd689949b92450227de98afa4" args="" --> |
---|
| 240 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#2deb6d7cd689949b92450227de98afa4">w</a></td></tr> |
---|
| 241 | |
---|
| 242 | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br></td></tr> |
---|
| 243 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d0a3acd6ced68349b8f9950f4658280"></a><!-- doxytag: member="bdm::egiwmix::Coms" ref="8d0a3acd6ced68349b8f9950f4658280" args="" --> |
---|
[354] | 244 | Array< <a class="el" href="classbdm_1_1egiw.html">egiw</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#8d0a3acd6ced68349b8f9950f4658280">Coms</a></td></tr> |
---|
[353] | 245 | |
---|
| 246 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br></td></tr> |
---|
| 247 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2a363169e5aa6c7cad1f4d7647fe9eec"></a><!-- doxytag: member="bdm::egiwmix::destroyComs" ref="2a363169e5aa6c7cad1f4d7647fe9eec" args="" --> |
---|
| 248 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#2a363169e5aa6c7cad1f4d7647fe9eec">destroyComs</a></td></tr> |
---|
| 249 | |
---|
| 250 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if owning Coms. <br></td></tr> |
---|
| 251 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae56852845c6af176fd9017dbebbbd52"></a><!-- doxytag: member="bdm::egiwmix::V" ref="ae56852845c6af176fd9017dbebbbd52" args="" --> |
---|
| 252 | <a class="el" href="classldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#ae56852845c6af176fd9017dbebbbd52">V</a></td></tr> |
---|
| 253 | |
---|
| 254 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Extended information matrix of sufficient statistics. <br></td></tr> |
---|
| 255 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="447eacf19d4f4083872686f044814dc4"></a><!-- doxytag: member="bdm::egiwmix::nu" ref="447eacf19d4f4083872686f044814dc4" args="" --> |
---|
| 256 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#447eacf19d4f4083872686f044814dc4">nu</a></td></tr> |
---|
| 257 | |
---|
| 258 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of data records (degrees of freedom) of sufficient statistics. <br></td></tr> |
---|
| 259 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23e4d78bea7e98840f3da30e76a2b57a"></a><!-- doxytag: member="bdm::egiwmix::dimx" ref="23e4d78bea7e98840f3da30e76a2b57a" args="" --> |
---|
| 260 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#23e4d78bea7e98840f3da30e76a2b57a">dimx</a></td></tr> |
---|
| 261 | |
---|
| 262 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the output. <br></td></tr> |
---|
| 263 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="322414c32d9a21a006a5aab0311f64fd"></a><!-- doxytag: member="bdm::egiwmix::nPsi" ref="322414c32d9a21a006a5aab0311f64fd" args="" --> |
---|
| 264 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#322414c32d9a21a006a5aab0311f64fd">nPsi</a></td></tr> |
---|
| 265 | |
---|
| 266 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the regressor. <br></td></tr> |
---|
| 267 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::egiwmix::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
| 268 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
| 269 | |
---|
| 270 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
---|
| 271 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::egiwmix::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
| 272 | <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> |
---|
| 273 | |
---|
| 274 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
---|
| 275 | </table> |
---|
| 276 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 277 | Mixture of egiws. <hr><h2>Member Function Documentation</h2> |
---|
[396] | 278 | <a class="anchor" name="55b76ec75bd2df5ef9cab3be20a33bbb"></a><!-- doxytag: member="bdm::egiwmix::from_setting" ref="55b76ec75bd2df5ef9cab3be20a33bbb" args="(const Setting &set)" --> |
---|
| 279 | <div class="memitem"> |
---|
| 280 | <div class="memproto"> |
---|
| 281 | <table class="memname"> |
---|
| 282 | <tr> |
---|
| 283 | <td class="memname">void bdm::egiw::from_setting </td> |
---|
| 284 | <td>(</td> |
---|
| 285 | <td class="paramtype">const Setting & </td> |
---|
| 286 | <td class="paramname"> <em>set</em> </td> |
---|
| 287 | <td> ) </td> |
---|
| 288 | <td><code> [inline, virtual, inherited]</code></td> |
---|
| 289 | </tr> |
---|
| 290 | </table> |
---|
| 291 | </div> |
---|
| 292 | <div class="memdoc"> |
---|
| 293 | |
---|
| 294 | <p> |
---|
| 295 | Load from structure with elements: <div class="fragment"><pre class="fragment"> { <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> |
---|
| 296 | <span class="comment">// elements of offsprings</span> |
---|
| 297 | } |
---|
| 298 | </pre></div> |
---|
| 299 | <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">bdm::epdf</a>.</p> |
---|
| 300 | |
---|
[401] | 301 | <p>References <a class="el" href="exp__family_8h-source.html#l00184">bdm::egiw::dimx</a>, <a class="el" href="user__info_8h-source.html#l00359">bdm::UI::get()</a>, <a class="el" href="exp__family_8h-source.html#l00182">bdm::egiw::nu</a>, <a class="el" href="bdmbase_8h-source.html#l00239">bdm::epdf::rv</a>, and <a class="el" href="bdmbase_8h-source.html#l00307">bdm::epdf::set_rv()</a>.</p> |
---|
[396] | 302 | |
---|
| 303 | </div> |
---|
| 304 | </div><p> |
---|
[353] | 305 | <a class="anchor" name="c4627222e22df6e14f8f1496e13c4975"></a><!-- doxytag: member="bdm::egiwmix::set_parameters" ref="c4627222e22df6e14f8f1496e13c4975" args="(const vec &w, const Array< egiw * > &Coms, bool copy=false)" --> |
---|
| 306 | <div class="memitem"> |
---|
| 307 | <div class="memproto"> |
---|
| 308 | <table class="memname"> |
---|
| 309 | <tr> |
---|
| 310 | <td class="memname">void bdm::egiwmix::set_parameters </td> |
---|
| 311 | <td>(</td> |
---|
| 312 | <td class="paramtype">const vec & </td> |
---|
| 313 | <td class="paramname"> <em>w</em>, </td> |
---|
| 314 | </tr> |
---|
| 315 | <tr> |
---|
| 316 | <td class="paramkey"></td> |
---|
| 317 | <td></td> |
---|
[354] | 318 | <td class="paramtype">const Array< <a class="el" href="classbdm_1_1egiw.html">egiw</a> * > & </td> |
---|
[353] | 319 | <td class="paramname"> <em>Coms</em>, </td> |
---|
| 320 | </tr> |
---|
| 321 | <tr> |
---|
| 322 | <td class="paramkey"></td> |
---|
| 323 | <td></td> |
---|
| 324 | <td class="paramtype">bool </td> |
---|
| 325 | <td class="paramname"> <em>copy</em> = <code>false</code></td><td> </td> |
---|
| 326 | </tr> |
---|
| 327 | <tr> |
---|
| 328 | <td></td> |
---|
| 329 | <td>)</td> |
---|
| 330 | <td></td><td></td><td></td> |
---|
| 331 | </tr> |
---|
| 332 | </table> |
---|
| 333 | </div> |
---|
| 334 | <div class="memdoc"> |
---|
| 335 | |
---|
| 336 | <p> |
---|
| 337 | Set weights <code>w</code> and components <code>Coms</code> By default Coms are copied inside. Parameter <code>copy</code> can be set to false if Coms live externally. Use method <a class="el" href="classbdm_1_1egiwmix.html#adc550fe74df25524c20867e89b5b096" title="Auxiliary function for taking ownership of the Coms().">ownComs()</a> if Coms should be destroyed by the destructor. |
---|
[397] | 338 | <p>References <a class="el" href="emix_8h-source.html#l00171">Coms</a>, <a class="el" href="emix_8h-source.html#l00173">destroyComs</a>, <a class="el" href="bdmbase_8h-source.html#l00237">bdm::epdf::dim</a>, <a class="el" href="bdmbase_8h-source.html#l00318">bdm::epdf::dimension()</a>, and <a class="el" href="emix_8h-source.html#l00169">w</a>.</p> |
---|
[353] | 339 | |
---|
| 340 | </div> |
---|
| 341 | </div><p> |
---|
| 342 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
[398] | 343 | <li><a class="el" href="emix_8h-source.html">emix.h</a><li>emix.cpp</ul> |
---|
[353] | 344 | </div> |
---|
[401] | 345 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 1 13:05:57 2009 for mixpp by |
---|
[353] | 346 | <a href="http://www.doxygen.org/index.html"> |
---|
[398] | 347 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
---|
[353] | 348 | </body> |
---|
| 349 | </html> |
---|