root/library/doc/html/classbdm_1_1emix.html @ 616

Revision 616, 26.7 kB (checked in by smidl, 15 years ago)

doc, sorted related pages

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>mixpp: bdm::emix Class Reference</title>
6<link href="tabs.css" rel="stylesheet" type="text/css"/>
7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8</head>
9<body>
10<!-- Generated by Doxygen 1.6.1 -->
11<script type="text/javascript">
12<!--
13function changeDisplayState (e){
14  var num=this.id.replace(/[^[0-9]/g,'');
15  var button=this.firstChild;
16  var sectionDiv=document.getElementById('dynsection'+num);
17  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
18    sectionDiv.style.display='block';
19    button.src='open.gif';
20  }else{
21    sectionDiv.style.display='none';
22    button.src='closed.gif';
23  }
24}
25function initDynSections(){
26  var divs=document.getElementsByTagName('div');
27  var sectionCounter=1;
28  for(var i=0;i<divs.length-1;i++){
29    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
30      var header=divs[i];
31      var section=divs[i+1];
32      var button=header.firstChild;
33      if (button!='IMG'){
34        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
35        button=document.createElement('img');
36        divs[i].insertBefore(button,divs[i].firstChild);
37      }
38      header.style.cursor='pointer';
39      header.onclick=changeDisplayState;
40      header.id='dynheader'+sectionCounter;
41      button.src='closed.gif';
42      section.id='dynsection'+sectionCounter;
43      section.style.display='none';
44      section.style.marginLeft='14px';
45      sectionCounter++;
46    }
47  }
48}
49window.onload = initDynSections;
50-->
51</script>
52<div class="navigation" id="top">
53  <div class="tabs">
54    <ul>
55      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
56      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
57      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
58      <li><a href="files.html"><span>Files</span></a></li>
59    </ul>
60  </div>
61  <div class="tabs">
62    <ul>
63      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
64      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
65      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
66      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
67    </ul>
68  </div>
69  <div class="navpath"><b>bdm</b>::<a class="el" href="classbdm_1_1emix.html">emix</a>
70  </div>
71</div>
72<div class="contents">
73<h1>bdm::emix Class Reference</h1><!-- doxytag: class="bdm::emix" --><!-- doxytag: inherits="bdm::epdf" -->
74<p>Mixture of epdfs. 
75<a href="#_details">More...</a></p>
76<hr/><a name="_details"></a><h2>Detailed Description</h2>
77<p>Mixture of epdfs. </p>
78<p>Density function: </p>
79<p class="formulaDsp">
80<img class="formulaDsp" alt="\[ f(x) = \sum_{i=1}^{n} w_{i} f_i(x), \quad \sum_{i=1}^n w_i = 1. \]" src="form_72.png"/>
81</p>
82<p> where <img class="formulaInl" alt="$f_i(x)$" src="form_73.png"/> is any density on random variable <img class="formulaInl" alt="$x$" src="form_1.png"/>, called <em>component</em>, </p>
83
84<p><code>#include &lt;<a class="el" href="emix_8h_source.html">emix.h</a>&gt;</code></p>
85
86<p><a href="classbdm_1_1emix-members.html">List of all members.</a></p>
87<table border="0" cellpadding="0" cellspacing="0">
88<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
89<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4838f3a376ee0bd3c658bfb8f4ea4a3d"></a><!-- doxytag: member="bdm::emix::emix" ref="a4838f3a376ee0bd3c658bfb8f4ea4a3d" args="()" -->
90&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a4838f3a376ee0bd3c658bfb8f4ea4a3d">emix</a> ()</td></tr>
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br/></td></tr>
92<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a10b4e0c45dd8f7d78f73e325382c6922">set_parameters</a> (const vec &amp;<a class="el" href="classbdm_1_1emix.html#abb7270345c76da627cd77ddf020bcf46">w</a>, const Array&lt; <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt; &gt; &amp;<a class="el" href="classbdm_1_1emix.html#a866e75dacba151942ead95104e57a897">Coms</a>)</td></tr>
93<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set weights <code>w</code> and components <code>Coms</code><a href="#a10b4e0c45dd8f7d78f73e325382c6922"></a><br/></td></tr>
94<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8839dbbb0d1276a8dbe957a67cfe0dc"></a><!-- doxytag: member="bdm::emix::sample" ref="ae8839dbbb0d1276a8dbe957a67cfe0dc" args="() const " -->
95vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae8839dbbb0d1276a8dbe957a67cfe0dc">sample</a> () const </td></tr>
96<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_3.png"/> from density <img class="formulaInl" alt="$ f_x()$" src="form_13.png"/>. <br/></td></tr>
97<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3a5390bc56e81ef3b0debc0f185fa8a"></a><!-- doxytag: member="bdm::emix::mean" ref="aa3a5390bc56e81ef3b0debc0f185fa8a" args="() const " -->
98vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#aa3a5390bc56e81ef3b0debc0f185fa8a">mean</a> () const </td></tr>
99<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br/></td></tr>
100<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9a627023cdf90c9ffd8eef726595c86"></a><!-- doxytag: member="bdm::emix::variance" ref="ae9a627023cdf90c9ffd8eef726595c86" args="() const " -->
101vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae9a627023cdf90c9ffd8eef726595c86">variance</a> () const </td></tr>
102<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr>
103<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f3db99f730bde6b7953931594537e8e"></a><!-- doxytag: member="bdm::emix::evallog" ref="a0f3db99f730bde6b7953931594537e8e" args="(const vec &amp;val) const " -->
104double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a0f3db99f730bde6b7953931594537e8e">evallog</a> (const vec &amp;val) const </td></tr>
105<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity. <br/></td></tr>
106<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23af1986e2afcbc8c7e1c30f610e703b"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="a23af1986e2afcbc8c7e1c30f610e703b" args="(const mat &amp;Val) const " -->
107vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a23af1986e2afcbc8c7e1c30f610e703b">evallog_m</a> (const mat &amp;Val) const </td></tr>
108<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr>
109<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae64c1d5a73f541e469792e23d4677af2"></a><!-- doxytag: member="bdm::emix::evallog_M" ref="ae64c1d5a73f541e469792e23d4677af2" args="(const mat &amp;Val) const " -->
110mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae64c1d5a73f541e469792e23d4677af2">evallog_M</a> (const mat &amp;Val) const </td></tr>
111<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Auxiliary function that returns pdflog for each component. <br/></td></tr>
112<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4edf5ceb3179a03f01b870c67eb53bb6"></a><!-- doxytag: member="bdm::emix::marginal" ref="a4edf5ceb3179a03f01b870c67eb53bb6" args="(const RV &amp;rv) const " -->
113<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a4edf5ceb3179a03f01b870c67eb53bb6">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr>
114<tr><td class="mdescLeft">&nbsp;</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>
115<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4ee18c3cdb5f35467f3bfc373c8544f"></a><!-- doxytag: member="bdm::emix::marginal" ref="ad4ee18c3cdb5f35467f3bfc373c8544f" args="(const RV &amp;rv, emix &amp;target) const " -->
116void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ad4ee18c3cdb5f35467f3bfc373c8544f">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>, <a class="el" href="classbdm_1_1emix.html">emix</a> &amp;target) const </td></tr>
117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update already existing marginal density <code>target</code>. <br/></td></tr>
118<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4176e4dc11980db4200b9fab54402a09"></a><!-- doxytag: member="bdm::emix::condition" ref="a4176e4dc11980db4200b9fab54402a09" args="(const RV &amp;rv) const " -->
119<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a4176e4dc11980db4200b9fab54402a09">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr>
120<tr><td class="mdescLeft">&nbsp;</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>
121<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9b584cb5b2471a4250fb127757f28be"></a><!-- doxytag: member="bdm::emix::_w" ref="ad9b584cb5b2471a4250fb127757f28be" args="()" -->
122vec &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ad9b584cb5b2471a4250fb127757f28be">_w</a> ()</td></tr>
123<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br/></td></tr>
124<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a579437ba18bf9975b3084e10bfe1b727"></a><!-- doxytag: member="bdm::emix::_Coms" ref="a579437ba18bf9975b3084e10bfe1b727" args="(int i)" -->
125<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a579437ba18bf9975b3084e10bfe1b727">_Coms</a> (int i)</td></tr>
126<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">access function <br/></td></tr>
127<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04a8632cfa9299ae937228eb732fd61e"></a><!-- doxytag: member="bdm::emix::set_rv" ref="a04a8632cfa9299ae937228eb732fd61e" args="(const RV &amp;rv)" -->
128void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a04a8632cfa9299ae937228eb732fd61e">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>)</td></tr>
129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Name its rv. <br/></td></tr>
130<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &amp;set)</td></tr>
131<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load from structure with elements:.  <a href="#afa9efc98a065b31c630fe18cc418f725"></a><br/></td></tr>
132<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::emix::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" -->
133virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr>
134<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr>
135<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::emix::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " -->
136virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr>
137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr>
138<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::emix::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" -->
139virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr>
140<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br/></td></tr>
141<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
142<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> 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: </p>
143<ul>
144<li>empty constructor, </li>
145<li>copy constructor,</li>
146</ul>
147<p>The following constructors should be supported for convenience: </p>
148<ul>
149<li>constructor followed by calling <code><a class="el" href="classbdm_1_1emix.html#a10b4e0c45dd8f7d78f73e325382c6922" title="Set weights w and components Coms.">set_parameters()</a></code> </li>
150<li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1emix.html#a04a8632cfa9299ae937228eb732fd61e" title="Name its rv.">set_rv()</a></code> </li>
151</ul>
152<p>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#a10b4e0c45dd8f7d78f73e325382c6922" title="Set weights w and components Coms.">set_parameters()</a></code>. This way references can be initialized in constructors. </p>
153<br/><br/></div></td></tr>
154<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::emix::set_parameters" ref="a840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" -->
155void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr>
156<tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr>
157<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p>
158<br/><br/></div></td></tr>
159<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::emix::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " -->
160virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr>
161<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png"/>. <br/></td></tr>
162<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="a9bc02dae61584138443baf6b1cbc1ac9" args="(const Array&lt; vec &gt; &amp;Avec) const " -->
163virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array&lt; vec &gt; &amp;Avec) const </td></tr>
164<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr>
165<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::emix::qbounds" ref="a0a7705e80601957f7226d333a0a6d539" args="(vec &amp;lb, vec &amp;ub, double percentage=0.95) const " -->
166virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &amp;lb, vec &amp;ub, double percentage=0.95) const </td></tr>
167<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br/></td></tr>
168<tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr>
169<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp14fc6e1cb822e9dfc5edc16c20fabe11"></a>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: </p>
170<br/><br/></div></td></tr>
171<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::emix::isnamed" ref="ac4b863ff84c7a4882fb3ad18556027f9" args="() const " -->
172bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr>
173<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if rv is assigned. <br/></td></tr>
174<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::emix::_rv" ref="aa4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " -->
175const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr>
176<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return name (fails when isnamed is false). <br/></td></tr>
177<tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr>
178<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p>
179<br/><br/></div></td></tr>
180<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::emix::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " -->
181int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr>
182<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Size of the random variable. <br/></td></tr>
183<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
184<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb7270345c76da627cd77ddf020bcf46"></a><!-- doxytag: member="bdm::emix::w" ref="abb7270345c76da627cd77ddf020bcf46" args="" -->
185vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#abb7270345c76da627cd77ddf020bcf46">w</a></td></tr>
186<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">weights of the components <br/></td></tr>
187<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a866e75dacba151942ead95104e57a897"></a><!-- doxytag: member="bdm::emix::Coms" ref="a866e75dacba151942ead95104e57a897" args="" -->
188Array&lt; <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a866e75dacba151942ead95104e57a897">Coms</a></td></tr>
189<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Component (epdfs). <br/></td></tr>
190<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::emix::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" -->
191int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr>
192<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension of the random variable <br/></td></tr>
193<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::emix::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" -->
194<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr>
195<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Description of the random variable. <br/></td></tr>
196</table>
197<hr/><h2>Member Function Documentation</h2>
198<a class="anchor" id="afa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::emix::from_setting" ref="afa9efc98a065b31c630fe18cc418f725" args="(const Setting &amp;set)" -->
199<div class="memitem">
200<div class="memproto">
201      <table class="memname">
202        <tr>
203          <td class="memname">void bdm::epdf::from_setting </td>
204          <td>(</td>
205          <td class="paramtype">const Setting &amp;&nbsp;</td>
206          <td class="paramname"> <em>set</em></td>
207          <td>&nbsp;)&nbsp;</td>
208          <td><code> [inline, virtual, inherited]</code></td>
209        </tr>
210      </table>
211</div>
212<div class="memdoc">
213
214<p>Load from structure with elements:. </p>
215<div class="fragment"><pre class="fragment">         { <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">&quot;RV&quot;</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span>
216           <span class="comment">// elements of offsprings</span>
217         }
218</pre></div> 
219<p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p>
220
221<p>Reimplemented in <a class="el" href="classbdm_1_1mexEpdf.html#af371482ea8d21c8ac01f011b3d942298">bdm::mexEpdf</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; sq_T &gt;</a>, <a class="el" href="classbdm_1_1egiw.html#a55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1egamma.html#a8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#a77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#a10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#a9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; ldmat &gt;</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; chmat &gt;</a>, and <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; fsqmat &gt;</a>.</p>
222
223<p>References <a class="el" href="bdmbase_8h_source.html#l00416">bdm::epdf::set_rv()</a>.</p>
224
225</div>
226</div>
227<a class="anchor" id="a10b4e0c45dd8f7d78f73e325382c6922"></a><!-- doxytag: member="bdm::emix::set_parameters" ref="a10b4e0c45dd8f7d78f73e325382c6922" args="(const vec &amp;w, const Array&lt; shared_ptr&lt; epdf &gt; &gt; &amp;Coms)" -->
228<div class="memitem">
229<div class="memproto">
230      <table class="memname">
231        <tr>
232          <td class="memname">void bdm::emix::set_parameters </td>
233          <td>(</td>
234          <td class="paramtype">const vec &amp;&nbsp;</td>
235          <td class="paramname"> <em>w</em>, </td>
236        </tr>
237        <tr>
238          <td class="paramkey"></td>
239          <td></td>
240          <td class="paramtype">const Array&lt; <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt; &gt; &amp;&nbsp;</td>
241          <td class="paramname"> <em>Coms</em></td><td>&nbsp;</td>
242        </tr>
243        <tr>
244          <td></td>
245          <td>)</td>
246          <td></td><td></td><td></td>
247        </tr>
248      </table>
249</div>
250<div class="memdoc">
251
252<p>Set weights <code>w</code> and components <code>Coms</code>. </p>
253<p>Shared pointers in Coms are kept inside this instance and shouldn't be modified after being passed to this method. </p>
254
255<p>References <a class="el" href="bdmbase_8h_source.html#l00427">bdm::epdf::_rv()</a>, <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>, <a class="el" href="emix_8h_source.html#l00116">Coms</a>, <a class="el" href="bdmbase_8h_source.html#l00331">bdm::epdf::dim</a>, <a class="el" href="bdmbase_8h_source.html#l00437">bdm::epdf::dimension()</a>, <a class="el" href="bdmbase_8cpp_source.html#l00141">bdm::RV::equal()</a>, <a class="el" href="bdmbase_8h_source.html#l00421">bdm::epdf::isnamed()</a>, <a class="el" href="emix_8h_source.html#l00193">set_rv()</a>, and <a class="el" href="emix_8h_source.html#l00113">w</a>.</p>
256
257<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>
258
259</div>
260</div>
261<hr/>The documentation for this class was generated from the following files:<ul>
262<li><a class="el" href="emix_8h_source.html">emix.h</a></li>
263<li>emix.cpp</li>
264</ul>
265</div>
266<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 13 23:08:56 2009 for mixpp by&nbsp;
267<a href="http://www.doxygen.org/index.html">
268<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
269</body>
270</html>
Note: See TracBrowser for help on using the browser.