70 | | <h1>bdm::egiwmix Class Reference</h1><!-- doxytag: class="bdm::egiwmix" --><!-- doxytag: inherits="bdm::egiw" -->Mixture of egiws. |
71 | | <a href="#_details">More...</a> |
72 | | <p> |
73 | | <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> |
74 | | <p> |
75 | | |
76 | | <p> |
77 | | <a href="classbdm_1_1egiwmix-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
78 | | <tr><td></td></tr> |
79 | | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
80 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41f4cf7baf554e0a70bf495457179dbb"></a><!-- doxytag: member="bdm::egiwmix::egiwmix" ref="41f4cf7baf554e0a70bf495457179dbb" args="()" --> |
81 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#41f4cf7baf554e0a70bf495457179dbb">egiwmix</a> ()</td></tr> |
82 | | |
83 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
84 | | <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> |
85 | | |
86 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="74e7c77bd89a454a7fd984945c58df1c"></a><!-- doxytag: member="bdm::egiwmix::mean" ref="74e7c77bd89a454a7fd984945c58df1c" args="() const " --> |
87 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#74e7c77bd89a454a7fd984945c58df1c">mean</a> () const </td></tr> |
88 | | |
89 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
90 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8bd92fb4c94a46220e84d9a39ddd2e28"></a><!-- doxytag: member="bdm::egiwmix::sample" ref="8bd92fb4c94a46220e84d9a39ddd2e28" args="() const " --> |
91 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#8bd92fb4c94a46220e84d9a39ddd2e28">sample</a> () const </td></tr> |
92 | | |
93 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return a sample from the density <br></td></tr> |
94 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96e1cfb7157b87f04e2957ca4d883425"></a><!-- doxytag: member="bdm::egiwmix::variance" ref="96e1cfb7157b87f04e2957ca4d883425" args="() const " --> |
95 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#96e1cfb7157b87f04e2957ca4d883425">variance</a> () const </td></tr> |
96 | | |
97 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">return the expected variance <br></td></tr> |
98 | | <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 " --> |
99 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#99962cd566fc4e6d59099dae6b7ecb8c">mean_mat</a> (mat &M, mat &R) const </td></tr> |
100 | | |
101 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">expected values of the linear coefficient and the covariance matrix are written to <code>M</code> and <code>R</code> , respectively <br></td></tr> |
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 | | |
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> |
110 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ab30611d0ca7cc718956548a42a1f67d"></a><!-- doxytag: member="bdm::egiwmix::marginal" ref="ab30611d0ca7cc718956548a42a1f67d" args="(const RV &rv) const " --> |
111 | | <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#ab30611d0ca7cc718956548a42a1f67d">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="0f403bb5b09d5855b7098665290434bf"></a><!-- doxytag: member="bdm::egiwmix::marginal" ref="0f403bb5b09d5855b7098665290434bf" args="(const RV &rv, emix &target) const " --> |
115 | | void </td><td class="memItemRight" valign="bottom"><b>marginal</b> (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_1emix.html">emix</a> &target) const </td></tr> |
116 | | |
117 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="884d203ca3994b9fba4c8bd440f355ea"></a><!-- doxytag: member="bdm::egiwmix::_w" ref="884d203ca3994b9fba4c8bd440f355ea" args="()" --> |
118 | | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#884d203ca3994b9fba4c8bd440f355ea">_w</a> ()</td></tr> |
119 | | |
120 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br></td></tr> |
121 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="adc550fe74df25524c20867e89b5b096"></a><!-- doxytag: member="bdm::egiwmix::ownComs" ref="adc550fe74df25524c20867e89b5b096" args="()" --> |
122 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#adc550fe74df25524c20867e89b5b096">ownComs</a> ()</td></tr> |
123 | | |
124 | | <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> |
125 | | <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)" --> |
126 | | <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> |
127 | | |
128 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
129 | | <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)" --> |
130 | | 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> |
131 | | |
132 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
133 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="10894d50e82130cc5b93d3cbc30b2e4d"></a><!-- doxytag: member="bdm::egiwmix::approx" ref="10894d50e82130cc5b93d3cbc30b2e4d" args="()" --> |
134 | | <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> |
135 | | |
136 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Approximation of a GiW mix by a single GiW pdf. <br></td></tr> |
137 | | <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 " --> |
138 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#66d2ba9295c306012b309efcc9e516f0">est_theta</a> () const </td></tr> |
139 | | |
140 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">LS estimate of <img class="formulaInl" alt="$\theta$" src="form_90.png">. <br></td></tr> |
141 | | <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 " --> |
142 | | <a class="el" href="classbdm_1_1ldmat.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> |
143 | | |
144 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Covariance of the LS estimate. <br></td></tr> |
145 | | <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)" --> |
146 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#8e610e95401a11baf34f65e16ecd87be">pow</a> (double p)</td></tr> |
147 | | |
148 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Power of the density, used e.g. to flatten the density. <br></td></tr> |
149 | | <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 " --> |
150 | | 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> |
151 | | |
152 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability. <br></td></tr> |
153 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6886c60b6b690e503913240db5de0c6f"></a><!-- doxytag: member="bdm::egiwmix::evallog_m" ref="6886c60b6b690e503913240db5de0c6f" args="(const mat &Val) const " --> |
154 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#6886c60b6b690e503913240db5de0c6f">evallog_m</a> (const mat &Val) const </td></tr> |
155 | | |
156 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br></td></tr> |
157 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d793f4fd6d0dcec5f16bff0ae45fc7d5"></a><!-- doxytag: member="bdm::egiwmix::evallog_m" ref="d793f4fd6d0dcec5f16bff0ae45fc7d5" args="(const Array< vec > &Val) const " --> |
158 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#d793f4fd6d0dcec5f16bff0ae45fc7d5">evallog_m</a> (const Array< vec > &Val) const </td></tr> |
159 | | |
160 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br></td></tr> |
161 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egiwmix::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
162 | | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
163 | | |
164 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
165 | | <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 " --> |
166 | | 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> |
167 | | |
168 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
169 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egiwmix::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
170 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
171 | | |
172 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
| 73 | <h1>bdm::egiwmix Class Reference</h1><!-- doxytag: class="bdm::egiwmix" --><!-- doxytag: inherits="bdm::egiw" --> |
| 74 | <p>Mixture of egiws. |
| 75 | <a href="#_details">More...</a></p> |
| 76 | |
| 77 | <p><code>#include <<a class="el" href="emix_8h_source.html">emix.h</a>></code></p> |
| 78 | |
| 79 | <p><a href="classbdm_1_1egiwmix-members.html">List of all members.</a></p> |
| 80 | <table border="0" cellpadding="0" cellspacing="0"> |
| 81 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
| 82 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41f4cf7baf554e0a70bf495457179dbb"></a><!-- doxytag: member="bdm::egiwmix::egiwmix" ref="a41f4cf7baf554e0a70bf495457179dbb" args="()" --> |
| 83 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a41f4cf7baf554e0a70bf495457179dbb">egiwmix</a> ()</td></tr> |
| 84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br/></td></tr> |
| 85 | <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#ac4627222e22df6e14f8f1496e13c4975">set_parameters</a> (const vec &<a class="el" href="classbdm_1_1egiwmix.html#a2deb6d7cd689949b92450227de98afa4">w</a>, const Array< <a class="el" href="classbdm_1_1egiw.html">egiw</a> * > &<a class="el" href="classbdm_1_1egiwmix.html#a8d0a3acd6ced68349b8f9950f4658280">Coms</a>, bool copy=false)</td></tr> |
| 86 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74e7c77bd89a454a7fd984945c58df1c"></a><!-- doxytag: member="bdm::egiwmix::mean" ref="a74e7c77bd89a454a7fd984945c58df1c" args="() const " --> |
| 87 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a74e7c77bd89a454a7fd984945c58df1c">mean</a> () const </td></tr> |
| 88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
| 89 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bd92fb4c94a46220e84d9a39ddd2e28"></a><!-- doxytag: member="bdm::egiwmix::sample" ref="a8bd92fb4c94a46220e84d9a39ddd2e28" args="() const " --> |
| 90 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a8bd92fb4c94a46220e84d9a39ddd2e28">sample</a> () const </td></tr> |
| 91 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return a sample from the density <br/></td></tr> |
| 92 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a96e1cfb7157b87f04e2957ca4d883425"></a><!-- doxytag: member="bdm::egiwmix::variance" ref="a96e1cfb7157b87f04e2957ca4d883425" args="() const " --> |
| 93 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a96e1cfb7157b87f04e2957ca4d883425">variance</a> () const </td></tr> |
| 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return the expected variance <br/></td></tr> |
| 95 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99962cd566fc4e6d59099dae6b7ecb8c"></a><!-- doxytag: member="bdm::egiwmix::mean_mat" ref="a99962cd566fc4e6d59099dae6b7ecb8c" args="(mat &M, mat &R) const " --> |
| 96 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a99962cd566fc4e6d59099dae6b7ecb8c">mean_mat</a> (mat &M, mat &R) const </td></tr> |
| 97 | <tr><td class="mdescLeft"> </td><td class="mdescRight">expected values of the linear coefficient and the covariance matrix are written to <code>M</code> and <code>R</code> , respectively <br/></td></tr> |
| 98 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5713da45d66410382d6eca4e1b05a132"></a><!-- doxytag: member="bdm::egiwmix::evallog_nn" ref="a5713da45d66410382d6eca4e1b05a132" args="(const vec &val) const " --> |
| 99 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a5713da45d66410382d6eca4e1b05a132">evallog_nn</a> (const vec &val) const </td></tr> |
| 100 | <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> |
| 101 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c9bc72ecea861dd2416f852905bf023"></a><!-- doxytag: member="bdm::egiwmix::lognc" ref="a7c9bc72ecea861dd2416f852905bf023" args="() const " --> |
| 102 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a7c9bc72ecea861dd2416f852905bf023">lognc</a> () const </td></tr> |
| 103 | <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> |
| 104 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab30611d0ca7cc718956548a42a1f67d"></a><!-- doxytag: member="bdm::egiwmix::marginal" ref="aab30611d0ca7cc718956548a42a1f67d" args="(const RV &rv) const " --> |
| 105 | <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#aab30611d0ca7cc718956548a42a1f67d">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> |
| 106 | <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> |
| 107 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f403bb5b09d5855b7098665290434bf"></a><!-- doxytag: member="bdm::egiwmix::marginal" ref="a0f403bb5b09d5855b7098665290434bf" args="(const RV &rv, emix &target) const " --> |
| 108 | void </td><td class="memItemRight" valign="bottom"><b>marginal</b> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>, <a class="el" href="classbdm_1_1emix.html">emix</a> &target) const </td></tr> |
| 109 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a884d203ca3994b9fba4c8bd440f355ea"></a><!-- doxytag: member="bdm::egiwmix::_w" ref="a884d203ca3994b9fba4c8bd440f355ea" args="()" --> |
| 110 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a884d203ca3994b9fba4c8bd440f355ea">_w</a> ()</td></tr> |
| 111 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br/></td></tr> |
| 112 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadc550fe74df25524c20867e89b5b096"></a><!-- doxytag: member="bdm::egiwmix::ownComs" ref="aadc550fe74df25524c20867e89b5b096" args="()" --> |
| 113 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#aadc550fe74df25524c20867e89b5b096">ownComs</a> ()</td></tr> |
| 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function for taking ownership of the <a class="el" href="classbdm_1_1egiwmix.html#a8d0a3acd6ced68349b8f9950f4658280" title="Component (epdfs).">Coms()</a>. <br/></td></tr> |
| 115 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad20a56a7b129c1ea9f71725e15f8ad8c"></a><!-- doxytag: member="bdm::egiwmix::_Coms" ref="ad20a56a7b129c1ea9f71725e15f8ad8c" args="(int i)" --> |
| 116 | <a class="el" href="classbdm_1_1egiw.html">egiw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#ad20a56a7b129c1ea9f71725e15f8ad8c">_Coms</a> (int i)</td></tr> |
| 117 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br/></td></tr> |
| 118 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc999c5c1402c450200f22128db688b2"></a><!-- doxytag: member="bdm::egiwmix::set_rv" ref="adc999c5c1402c450200f22128db688b2" args="(const RV &rv)" --> |
| 119 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#adc999c5c1402c450200f22128db688b2">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>)</td></tr> |
| 120 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br/></td></tr> |
| 121 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10894d50e82130cc5b93d3cbc30b2e4d"></a><!-- doxytag: member="bdm::egiwmix::approx" ref="a10894d50e82130cc5b93d3cbc30b2e4d" args="()" --> |
| 122 | <a class="el" href="classbdm_1_1egiw.html">egiw</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a10894d50e82130cc5b93d3cbc30b2e4d">approx</a> ()</td></tr> |
| 123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Approximation of a GiW mix by a single GiW pdf. <br/></td></tr> |
| 124 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66d2ba9295c306012b309efcc9e516f0"></a><!-- doxytag: member="bdm::egiwmix::est_theta" ref="a66d2ba9295c306012b309efcc9e516f0" args="() const " --> |
| 125 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#a66d2ba9295c306012b309efcc9e516f0">est_theta</a> () const </td></tr> |
| 126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">LS estimate of <img class="formulaInl" alt="$\theta$" src="form_90.png"/>. <br/></td></tr> |
| 127 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88c321a2051d1afdbb31a098896a717b"></a><!-- doxytag: member="bdm::egiwmix::est_theta_cov" ref="a88c321a2051d1afdbb31a098896a717b" args="() const " --> |
| 128 | <a class="el" href="classbdm_1_1ldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#a88c321a2051d1afdbb31a098896a717b">est_theta_cov</a> () const </td></tr> |
| 129 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Covariance of the LS estimate. <br/></td></tr> |
| 130 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e610e95401a11baf34f65e16ecd87be"></a><!-- doxytag: member="bdm::egiwmix::pow" ref="a8e610e95401a11baf34f65e16ecd87be" args="(double p)" --> |
| 131 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#a8e610e95401a11baf34f65e16ecd87be">pow</a> (double p)</td></tr> |
| 132 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Power of the density, used e.g. to flatten the density. <br/></td></tr> |
| 133 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa36d06ecdd6f4c79dc122510eaccc692"></a><!-- doxytag: member="bdm::egiwmix::evallog" ref="aa36d06ecdd6f4c79dc122510eaccc692" args="(const vec &val) const " --> |
| 134 | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#aa36d06ecdd6f4c79dc122510eaccc692">evallog</a> (const vec &val) const </td></tr> |
| 135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability. <br/></td></tr> |
| 136 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6886c60b6b690e503913240db5de0c6f"></a><!-- doxytag: member="bdm::egiwmix::evallog_m" ref="a6886c60b6b690e503913240db5de0c6f" args="(const mat &Val) const " --> |
| 137 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#a6886c60b6b690e503913240db5de0c6f">evallog_m</a> (const mat &Val) const </td></tr> |
| 138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br/></td></tr> |
| 139 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad793f4fd6d0dcec5f16bff0ae45fc7d5"></a><!-- doxytag: member="bdm::egiwmix::evallog_m" ref="ad793f4fd6d0dcec5f16bff0ae45fc7d5" args="(const Array< vec > &Val) const " --> |
| 140 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1eEF.html#ad793f4fd6d0dcec5f16bff0ae45fc7d5">evallog_m</a> (const Array< vec > &Val) const </td></tr> |
| 141 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Evaluate normalized log-probability for many samples. <br/></td></tr> |
| 142 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egiwmix::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
| 143 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
| 144 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
| 145 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egiwmix::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
| 146 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &set) const </td></tr> |
| 147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
| 148 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egiwmix::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
| 149 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
| 150 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
229 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::egiwmix::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
230 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
231 | | |
232 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
233 | | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
234 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2deb6d7cd689949b92450227de98afa4"></a><!-- doxytag: member="bdm::egiwmix::w" ref="2deb6d7cd689949b92450227de98afa4" args="" --> |
235 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#2deb6d7cd689949b92450227de98afa4">w</a></td></tr> |
236 | | |
237 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br></td></tr> |
238 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d0a3acd6ced68349b8f9950f4658280"></a><!-- doxytag: member="bdm::egiwmix::Coms" ref="8d0a3acd6ced68349b8f9950f4658280" args="" --> |
239 | | 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> |
240 | | |
241 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br></td></tr> |
242 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2a363169e5aa6c7cad1f4d7647fe9eec"></a><!-- doxytag: member="bdm::egiwmix::destroyComs" ref="2a363169e5aa6c7cad1f4d7647fe9eec" args="" --> |
243 | | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#2a363169e5aa6c7cad1f4d7647fe9eec">destroyComs</a></td></tr> |
244 | | |
245 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if owning Coms. <br></td></tr> |
246 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ae56852845c6af176fd9017dbebbbd52"></a><!-- doxytag: member="bdm::egiwmix::V" ref="ae56852845c6af176fd9017dbebbbd52" args="" --> |
247 | | <a class="el" href="classbdm_1_1ldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#ae56852845c6af176fd9017dbebbbd52">V</a></td></tr> |
248 | | |
249 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Extended information matrix of sufficient statistics. <br></td></tr> |
250 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="447eacf19d4f4083872686f044814dc4"></a><!-- doxytag: member="bdm::egiwmix::nu" ref="447eacf19d4f4083872686f044814dc4" args="" --> |
251 | | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#447eacf19d4f4083872686f044814dc4">nu</a></td></tr> |
252 | | |
253 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of data records (degrees of freedom) of sufficient statistics. <br></td></tr> |
254 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23e4d78bea7e98840f3da30e76a2b57a"></a><!-- doxytag: member="bdm::egiwmix::dimx" ref="23e4d78bea7e98840f3da30e76a2b57a" args="" --> |
255 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#23e4d78bea7e98840f3da30e76a2b57a">dimx</a></td></tr> |
256 | | |
257 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the output. <br></td></tr> |
258 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="322414c32d9a21a006a5aab0311f64fd"></a><!-- doxytag: member="bdm::egiwmix::nPsi" ref="322414c32d9a21a006a5aab0311f64fd" args="" --> |
259 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#322414c32d9a21a006a5aab0311f64fd">nPsi</a></td></tr> |
260 | | |
261 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the regressor. <br></td></tr> |
262 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::egiwmix::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> |
266 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::egiwmix::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 | | |
269 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
| 205 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> |
| 206 | <br/><br/></div></td></tr> |
| 207 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::egiwmix::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
| 208 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
| 209 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br/></td></tr> |
| 210 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
| 211 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2deb6d7cd689949b92450227de98afa4"></a><!-- doxytag: member="bdm::egiwmix::w" ref="a2deb6d7cd689949b92450227de98afa4" args="" --> |
| 212 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a2deb6d7cd689949b92450227de98afa4">w</a></td></tr> |
| 213 | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br/></td></tr> |
| 214 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d0a3acd6ced68349b8f9950f4658280"></a><!-- doxytag: member="bdm::egiwmix::Coms" ref="a8d0a3acd6ced68349b8f9950f4658280" args="" --> |
| 215 | 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#a8d0a3acd6ced68349b8f9950f4658280">Coms</a></td></tr> |
| 216 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br/></td></tr> |
| 217 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2a363169e5aa6c7cad1f4d7647fe9eec"></a><!-- doxytag: member="bdm::egiwmix::destroyComs" ref="a2a363169e5aa6c7cad1f4d7647fe9eec" args="" --> |
| 218 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiwmix.html#a2a363169e5aa6c7cad1f4d7647fe9eec">destroyComs</a></td></tr> |
| 219 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if owning Coms. <br/></td></tr> |
| 220 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae56852845c6af176fd9017dbebbbd52"></a><!-- doxytag: member="bdm::egiwmix::V" ref="aae56852845c6af176fd9017dbebbbd52" args="" --> |
| 221 | <a class="el" href="classbdm_1_1ldmat.html">ldmat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#aae56852845c6af176fd9017dbebbbd52">V</a></td></tr> |
| 222 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Extended information matrix of sufficient statistics. <br/></td></tr> |
| 223 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a447eacf19d4f4083872686f044814dc4"></a><!-- doxytag: member="bdm::egiwmix::nu" ref="a447eacf19d4f4083872686f044814dc4" args="" --> |
| 224 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#a447eacf19d4f4083872686f044814dc4">nu</a></td></tr> |
| 225 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of data records (degrees of freedom) of sufficient statistics. <br/></td></tr> |
| 226 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23e4d78bea7e98840f3da30e76a2b57a"></a><!-- doxytag: member="bdm::egiwmix::dimx" ref="a23e4d78bea7e98840f3da30e76a2b57a" args="" --> |
| 227 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#a23e4d78bea7e98840f3da30e76a2b57a">dimx</a></td></tr> |
| 228 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the output. <br/></td></tr> |
| 229 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a322414c32d9a21a006a5aab0311f64fd"></a><!-- doxytag: member="bdm::egiwmix::nPsi" ref="a322414c32d9a21a006a5aab0311f64fd" args="" --> |
| 230 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egiw.html#a322414c32d9a21a006a5aab0311f64fd">nPsi</a></td></tr> |
| 231 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Dimension of the regressor. <br/></td></tr> |
| 232 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::egiwmix::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
| 233 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
| 234 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br/></td></tr> |
| 235 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::egiwmix::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
| 236 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> |
| 237 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br/></td></tr> |