Changeset 538 for library/doc/html/classbdm_1_1emix.html
- Timestamp:
- 08/16/09 18:14:04 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/doc/html/classbdm_1_1emix.html
r472 r538 5 5 <link href="doxygen.css" rel="stylesheet" type="text/css"> 6 6 </head><body> 7 <!-- Generated by Doxygen 1.5. 9-->7 <!-- Generated by Doxygen 1.5.8 --> 8 8 <script type="text/javascript"> 9 9 <!-- … … 71 71 <a href="#_details">More...</a> 72 72 <p> 73 <code>#include <<a class="el" href="emix_8h _source.html">emix.h</a>></code>73 <code>#include <<a class="el" href="emix_8h-source.html">emix.h</a>></code> 74 74 <p> 75 75 … … 82 82 83 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_1emix.html# 3a107a6b808a081389ef17af951c234a">set_parameters</a> (const vec &<a class="el" href="classbdm_1_1emix.html#bb7270345c76da627cd77ddf020bcf46">w</a>, const Array< <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > &<a class="el" href="classbdm_1_1emix.html#e2966a6a44b250e22e55bc9fb6af5c3e">Coms</a>, bool copy=false)</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_1emix.html#10b4e0c45dd8f7d78f73e325382c6922">set_parameters</a> (const vec &<a class="el" href="classbdm_1_1emix.html#bb7270345c76da627cd77ddf020bcf46">w</a>, const Array< <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > > &<a class="el" href="classbdm_1_1emix.html#866e75dacba151942ead95104e57a897">Coms</a>)</td></tr> 85 85 86 86 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e8839dbbb0d1276a8dbe957a67cfe0dc"></a><!-- doxytag: member="bdm::emix::sample" ref="e8839dbbb0d1276a8dbe957a67cfe0dc" args="() const " --> … … 106 106 107 107 <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function that returns pdflog for each component. <br></td></tr> 108 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" f7165371cc4f7be9292024b9f5431646"></a><!-- doxytag: member="bdm::emix::marginal" ref="f7165371cc4f7be9292024b9f5431646" args="(const RV &rv) const " -->109 <a class="el" href="classbdm_1_1 emix.html">emix</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#f7165371cc4f7be9292024b9f5431646">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>108 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4edf5ceb3179a03f01b870c67eb53bb6"></a><!-- doxytag: member="bdm::emix::marginal" ref="4edf5ceb3179a03f01b870c67eb53bb6" args="(const RV &rv) const " --> 109 <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_1emix.html#4edf5ceb3179a03f01b870c67eb53bb6">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> 110 110 111 111 <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> 112 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fc7772a2972959cf19ba26882feacecf"></a><!-- doxytag: member="bdm::emix::condition" ref="fc7772a2972959cf19ba26882feacecf" args="(const RV &rv) const " --> 113 <a class="el" href="classbdm_1_1mratio.html">mratio</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#fc7772a2972959cf19ba26882feacecf">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> 112 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d4ee18c3cdb5f35467f3bfc373c8544f"></a><!-- doxytag: member="bdm::emix::marginal" ref="d4ee18c3cdb5f35467f3bfc373c8544f" args="(const RV &rv, emix &target) const " --> 113 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#d4ee18c3cdb5f35467f3bfc373c8544f">marginal</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_1emix.html">emix</a> &target) const </td></tr> 114 115 <tr><td class="mdescLeft"> </td><td class="mdescRight">Update already existing marginal density <code>target</code>. <br></td></tr> 116 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4176e4dc11980db4200b9fab54402a09"></a><!-- doxytag: member="bdm::emix::condition" ref="4176e4dc11980db4200b9fab54402a09" args="(const RV &rv) const " --> 117 <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#4176e4dc11980db4200b9fab54402a09">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> 114 118 115 119 <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> … … 118 122 119 123 <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br></td></tr> 120 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="965fb16669250a3d28bc62cf76276d8e"></a><!-- doxytag: member="bdm::emix::ownComs" ref="965fb16669250a3d28bc62cf76276d8e" args="()" --> 121 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#965fb16669250a3d28bc62cf76276d8e">ownComs</a> ()</td></tr> 122 123 <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function for taking ownership of the <a class="el" href="classbdm_1_1emix.html#e2966a6a44b250e22e55bc9fb6af5c3e" title="Component (epdfs).">Coms()</a>. <br></td></tr> 124 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="578616445243674438257be99ba71612"></a><!-- doxytag: member="bdm::emix::_Coms" ref="578616445243674438257be99ba71612" args="(int i)" --> 125 <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#578616445243674438257be99ba71612">_Coms</a> (int i)</td></tr> 124 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="579437ba18bf9975b3084e10bfe1b727"></a><!-- doxytag: member="bdm::emix::_Coms" ref="579437ba18bf9975b3084e10bfe1b727" args="(int i)" --> 125 <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_1emix.html#579437ba18bf9975b3084e10bfe1b727">_Coms</a> (int i)</td></tr> 126 126 127 127 <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> … … 150 150 </ul> 151 151 The following constructors should be supported for convenience: <ul> 152 <li>constructor followed by calling <code><a class="el" href="classbdm_1_1emix.html# 3a107a6b808a081389ef17af951c234a">set_parameters()</a></code> </li>152 <li>constructor followed by calling <code><a class="el" href="classbdm_1_1emix.html#10b4e0c45dd8f7d78f73e325382c6922">set_parameters()</a></code> </li> 153 153 <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1emix.html#04a8632cfa9299ae937228eb732fd61e" title="Name its rv.">set_rv()</a></code> </li> 154 154 </ul> 155 All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code><a class="el" href="classbdm_1_1emix.html# 3a107a6b808a081389ef17af951c234a">set_parameters()</a></code>. This way references can be initialized in constructors. <br><br></div></td></tr>155 All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code><a class="el" href="classbdm_1_1emix.html#10b4e0c45dd8f7d78f73e325382c6922">set_parameters()</a></code>. This way references can be initialized in constructors. <br><br></div></td></tr> 156 156 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::emix::set_parameters" ref="840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> 157 157 void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> … … 162 162 163 163 <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> 164 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" 512dbf057299e871fbc61ed55acb5888"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="512dbf057299e871fbc61ed55acb5888" args="(const Array< vec > &Avec) const " -->165 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>164 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="9bc02dae61584138443baf6b1cbc1ac9" args="(const Array< vec > &Avec) const " --> 165 virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array< vec > &Avec) const </td></tr> 166 166 167 167 <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> … … 190 190 191 191 <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br></td></tr> 192 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name=" e2966a6a44b250e22e55bc9fb6af5c3e"></a><!-- doxytag: member="bdm::emix::Coms" ref="e2966a6a44b250e22e55bc9fb6af5c3e" args="" -->193 Array< <a class="el" href="classbdm_1_1 epdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#e2966a6a44b250e22e55bc9fb6af5c3e">Coms</a></td></tr>192 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="866e75dacba151942ead95104e57a897"></a><!-- doxytag: member="bdm::emix::Coms" ref="866e75dacba151942ead95104e57a897" args="" --> 193 Array< <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_1emix.html#866e75dacba151942ead95104e57a897">Coms</a></td></tr> 194 194 195 195 <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br></td></tr> 196 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="47189df41a4616c2fed5972f015743f4"></a><!-- doxytag: member="bdm::emix::destroyComs" ref="47189df41a4616c2fed5972f015743f4" args="" -->197 bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#47189df41a4616c2fed5972f015743f4">destroyComs</a></td></tr>198 199 <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if owning Coms. <br></td></tr>200 196 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::emix::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> 201 197 int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> … … 234 230 <p>Reimplemented from <a class="el" href="classbdm_1_1epdf.html#deab266d63c236c277538867d5c3f249">bdm::epdf</a>.</p> 235 231 236 <p>References <a class="el" href="emix_8h_source.html#l00096">Coms</a>, and <a class="el" href="emix_8h_source.html#l00094">w</a>.</p> 232 <p>References <a class="el" href="emix_8h-source.html#l00110">Coms</a>, and <a class="el" href="emix_8h-source.html#l00108">w</a>.</p> 233 234 <p>Referenced by <a class="el" href="merger_8cpp-source.html#l00064">bdm::merger_mix::merge()</a>.</p> 237 235 238 236 </div> … … 261 259 <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> 262 260 263 <p>Reimplemented in <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1 enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p>264 265 <p>References <a class="el" href="bdmbase_8h _source.html#l00312">bdm::epdf::set_rv()</a>.</p>261 <p>Reimplemented in <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< sq_T ></a>, <a class="el" href="classbdm_1_1egiw.html#55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< ldmat ></a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< chmat ></a>, and <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm< fsqmat ></a>.</p> 262 263 <p>References <a class="el" href="bdmbase_8h-source.html#l00353">bdm::epdf::set_rv()</a>.</p> 266 264 267 265 </div> 268 266 </div><p> 269 <a class="anchor" name=" 3a107a6b808a081389ef17af951c234a"></a><!-- doxytag: member="bdm::emix::set_parameters" ref="3a107a6b808a081389ef17af951c234a" args="(const vec &w, const Array< epdf * > &Coms, bool copy=false)" -->267 <a class="anchor" name="10b4e0c45dd8f7d78f73e325382c6922"></a><!-- doxytag: member="bdm::emix::set_parameters" ref="10b4e0c45dd8f7d78f73e325382c6922" args="(const vec &w, const Array< shared_ptr< epdf > > &Coms)" --> 270 268 <div class="memitem"> 271 269 <div class="memproto"> … … 280 278 <td class="paramkey"></td> 281 279 <td></td> 282 <td class="paramtype">const Array< <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > & </td> 283 <td class="paramname"> <em>Coms</em>, </td> 284 </tr> 285 <tr> 286 <td class="paramkey"></td> 287 <td></td> 288 <td class="paramtype">bool </td> 289 <td class="paramname"> <em>copy</em> = <code>false</code></td><td> </td> 280 <td class="paramtype">const Array< <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< <a class="el" href="classbdm_1_1epdf.html">epdf</a> > > & </td> 281 <td class="paramname"> <em>Coms</em></td><td> </td> 290 282 </tr> 291 283 <tr> … … 299 291 300 292 <p> 301 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_1emix.html#965fb16669250a3d28bc62cf76276d8e" title="Auxiliary function for taking ownership of the Coms().">ownComs()</a>if Coms should be destroyed by the destructor.302 <p>References <a class="el" href="bdmbase_8h _source.html#l00316">bdm::epdf::_rv()</a>, <a class="el" href="emix_8h_source.html#l00096">Coms</a>, <a class="el" href="emix_8h_source.html#l00098">destroyComs</a>, <a class="el" href="bdmbase_8h_source.html#l00241">bdm::epdf::dim</a>, <a class="el" href="bdmbase_8h_source.html#l00323">bdm::epdf::dimension()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00129">bdm::RV::equal()</a>, <a class="el" href="bdmbase_8h_source.html#l00314">bdm::epdf::isnamed()</a>, <a class="el" href="emix_8h_source.html#l00156">set_rv()</a>, and <a class="el" href="emix_8h_source.html#l00094">w</a>.</p>303 304 <p>Referenced by <a class="el" href="mixtures_8cpp _source.html#l00138">bdm::MixEF::epredictor()</a>, <a class="el" href="emix_8cpp_source.html#l00109">bdm::egiwmix::marginal()</a>, and <a class="el" href="emix_8cpp_source.html#l00043">marginal()</a>.</p>293 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 ownComs() if Coms should be destroyed by the destructor. 294 <p>References <a class="el" href="bdmbase_8h-source.html#l00362">bdm::epdf::_rv()</a>, <a class="el" href="emix_8h-source.html#l00110">Coms</a>, <a class="el" href="bdmbase_8h-source.html#l00269">bdm::epdf::dim</a>, <a class="el" href="bdmbase_8h-source.html#l00372">bdm::epdf::dimension()</a>, <a class="el" href="bdmbase_8cpp-source.html#l00132">bdm::RV::equal()</a>, <a class="el" href="bdmbase_8h-source.html#l00357">bdm::epdf::isnamed()</a>, <a class="el" href="emix_8h-source.html#l00182">set_rv()</a>, and <a class="el" href="emix_8h-source.html#l00108">w</a>.</p> 295 296 <p>Referenced by <a class="el" href="mixtures_8cpp-source.html#l00143">bdm::MixEF::epredictor()</a>, and <a class="el" href="emix_8cpp-source.html#l00045">marginal()</a>.</p> 305 297 306 298 </div> 307 299 </div><p> 308 300 <hr>The documentation for this class was generated from the following files:<ul> 309 <li><a class="el" href="emix_8h _source.html">emix.h</a><li>emix.cpp</ul>310 </div> 311 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 5 00:07:002009 for mixpp by 301 <li><a class="el" href="emix_8h-source.html">emix.h</a><li>emix.cpp</ul> 302 </div> 303 <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:19 2009 for mixpp by 312 304 <a href="http://www.doxygen.org/index.html"> 313 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5. 9</small></address>305 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> 314 306 </body> 315 307 </html>