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::emix 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> |
---|
7 | <!-- Generated by Doxygen 1.5.9 --> |
---|
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_1emix.html">emix</a> |
---|
68 | </div> |
---|
69 | </div> |
---|
70 | <div class="contents"> |
---|
71 | <h1>bdm::emix Class Reference</h1><!-- doxytag: class="bdm::emix" --><!-- doxytag: inherits="bdm::epdf" -->Mixture of epdfs. |
---|
72 | <a href="#_details">More...</a> |
---|
73 | <p> |
---|
74 | <code>#include <<a class="el" href="emix_8h_source.html">emix.h</a>></code> |
---|
75 | <p> |
---|
76 | |
---|
77 | <p> |
---|
78 | <a href="classbdm_1_1emix-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="4838f3a376ee0bd3c658bfb8f4ea4a3d"></a><!-- doxytag: member="bdm::emix::emix" ref="4838f3a376ee0bd3c658bfb8f4ea4a3d" args="()" --> |
---|
82 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#4838f3a376ee0bd3c658bfb8f4ea4a3d">emix</a> ()</td></tr> |
---|
83 | |
---|
84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
85 | <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> |
---|
86 | |
---|
87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e8839dbbb0d1276a8dbe957a67cfe0dc"></a><!-- doxytag: member="bdm::emix::sample" ref="e8839dbbb0d1276a8dbe957a67cfe0dc" args="() const " --> |
---|
88 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#e8839dbbb0d1276a8dbe957a67cfe0dc">sample</a> () const </td></tr> |
---|
89 | |
---|
90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_7.png"> from density <img class="formulaInl" alt="$ f_x()$" src="form_8.png">. <br></td></tr> |
---|
91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3a5390bc56e81ef3b0debc0f185fa8a"></a><!-- doxytag: member="bdm::emix::mean" ref="a3a5390bc56e81ef3b0debc0f185fa8a" args="() const " --> |
---|
92 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a3a5390bc56e81ef3b0debc0f185fa8a">mean</a> () const </td></tr> |
---|
93 | |
---|
94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br></td></tr> |
---|
95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e9a627023cdf90c9ffd8eef726595c86"></a><!-- doxytag: member="bdm::emix::variance" ref="e9a627023cdf90c9ffd8eef726595c86" args="() const " --> |
---|
96 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#e9a627023cdf90c9ffd8eef726595c86">variance</a> () const </td></tr> |
---|
97 | |
---|
98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> |
---|
99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f3db99f730bde6b7953931594537e8e"></a><!-- doxytag: member="bdm::emix::evallog" ref="0f3db99f730bde6b7953931594537e8e" args="(const vec &val) const " --> |
---|
100 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#0f3db99f730bde6b7953931594537e8e">evallog</a> (const vec &val) const </td></tr> |
---|
101 | |
---|
102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of argument <code>val</code>. <br></td></tr> |
---|
103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="23af1986e2afcbc8c7e1c30f610e703b"></a><!-- doxytag: member="bdm::emix::evallog_m" ref="23af1986e2afcbc8c7e1c30f610e703b" args="(const mat &Val) const " --> |
---|
104 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#23af1986e2afcbc8c7e1c30f610e703b">evallog_m</a> (const mat &Val) const </td></tr> |
---|
105 | |
---|
106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e64c1d5a73f541e469792e23d4677af2"></a><!-- doxytag: member="bdm::emix::evallog_M" ref="e64c1d5a73f541e469792e23d4677af2" args="(const mat &Val) const " --> |
---|
108 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#e64c1d5a73f541e469792e23d4677af2">evallog_M</a> (const mat &Val) const </td></tr> |
---|
109 | |
---|
110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function that returns pdflog for each component. <br></td></tr> |
---|
111 | <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 " --> |
---|
112 | <a class="el" href="classbdm_1_1emix.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> |
---|
113 | |
---|
114 | <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> |
---|
115 | <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 " --> |
---|
116 | <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> |
---|
117 | |
---|
118 | <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> |
---|
119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9b584cb5b2471a4250fb127757f28be"></a><!-- doxytag: member="bdm::emix::_w" ref="d9b584cb5b2471a4250fb127757f28be" args="()" --> |
---|
120 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#d9b584cb5b2471a4250fb127757f28be">_w</a> ()</td></tr> |
---|
121 | |
---|
122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br></td></tr> |
---|
123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="965fb16669250a3d28bc62cf76276d8e"></a><!-- doxytag: member="bdm::emix::ownComs" ref="965fb16669250a3d28bc62cf76276d8e" args="()" --> |
---|
124 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#965fb16669250a3d28bc62cf76276d8e">ownComs</a> ()</td></tr> |
---|
125 | |
---|
126 | <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> |
---|
127 | <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)" --> |
---|
128 | <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> |
---|
129 | |
---|
130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="04a8632cfa9299ae937228eb732fd61e"></a><!-- doxytag: member="bdm::emix::set_rv" ref="04a8632cfa9299ae937228eb732fd61e" args="(const RV &rv)" --> |
---|
132 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#04a8632cfa9299ae937228eb732fd61e">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> |
---|
133 | |
---|
134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Name its rv. <br></td></tr> |
---|
135 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> |
---|
136 | |
---|
137 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::emix::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
---|
138 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
---|
139 | |
---|
140 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
---|
141 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::emix::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
---|
142 | 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> |
---|
143 | |
---|
144 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
---|
145 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::emix::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
---|
146 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
---|
147 | |
---|
148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
---|
149 | <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> |
---|
150 | <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> |
---|
151 | <li>empty constructor, </li> |
---|
152 | <li>copy constructor,</li> |
---|
153 | </ul> |
---|
154 | The following constructors should be supported for convenience: <ul> |
---|
155 | <li>constructor followed by calling <code><a class="el" href="classbdm_1_1emix.html#3a107a6b808a081389ef17af951c234a">set_parameters()</a></code> </li> |
---|
156 | <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> |
---|
157 | </ul> |
---|
158 | 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> |
---|
159 | <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)" --> |
---|
160 | void </td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> |
---|
161 | |
---|
162 | <tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> |
---|
163 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::emix::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> |
---|
164 | 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> |
---|
165 | |
---|
166 | <<<<<<< HEAD:library/doc/html/classbdm_1_1emix.html |
---|
167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_47.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_48.png">. <br></td></tr> |
---|
168 | ======= |
---|
169 | <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> |
---|
170 | >>>>>>> doc:library/doc/html/classbdm_1_1emix.html |
---|
171 | <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 " --> |
---|
172 | 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> |
---|
173 | |
---|
174 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
---|
175 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::emix::qbounds" ref="0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
---|
176 | 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> |
---|
177 | |
---|
178 | <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> |
---|
179 | <tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> |
---|
180 | <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> |
---|
181 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::emix::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> |
---|
182 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> |
---|
183 | |
---|
184 | <tr><td class="mdescLeft"> </td><td class="mdescRight">True if rv is assigned. <br></td></tr> |
---|
185 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::emix::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> |
---|
186 | 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> |
---|
187 | |
---|
188 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> |
---|
189 | <tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> |
---|
190 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::emix::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
---|
191 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
---|
192 | |
---|
193 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
---|
194 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
195 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bb7270345c76da627cd77ddf020bcf46"></a><!-- doxytag: member="bdm::emix::w" ref="bb7270345c76da627cd77ddf020bcf46" args="" --> |
---|
196 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#bb7270345c76da627cd77ddf020bcf46">w</a></td></tr> |
---|
197 | |
---|
198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br></td></tr> |
---|
199 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e2966a6a44b250e22e55bc9fb6af5c3e"></a><!-- doxytag: member="bdm::emix::Coms" ref="e2966a6a44b250e22e55bc9fb6af5c3e" args="" --> |
---|
200 | Array< <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#e2966a6a44b250e22e55bc9fb6af5c3e">Coms</a></td></tr> |
---|
201 | |
---|
202 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br></td></tr> |
---|
203 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="47189df41a4616c2fed5972f015743f4"></a><!-- doxytag: member="bdm::emix::destroyComs" ref="47189df41a4616c2fed5972f015743f4" args="" --> |
---|
204 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#47189df41a4616c2fed5972f015743f4">destroyComs</a></td></tr> |
---|
205 | |
---|
206 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Flag if owning Coms. <br></td></tr> |
---|
207 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::emix::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
---|
208 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
---|
209 | |
---|
210 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
---|
211 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::emix::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
---|
212 | <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> |
---|
213 | |
---|
214 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
---|
215 | </table> |
---|
216 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
217 | Mixture of epdfs. |
---|
218 | <p> |
---|
219 | Density function: <p class="formulaDsp"> |
---|
220 | <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_64.png"> |
---|
221 | <p> |
---|
222 | where <img class="formulaInl" alt="$f_i(x)$" src="form_65.png"> is any density on random variable <img class="formulaInl" alt="$x$" src="form_1.png">, called <em>component</em>, <hr><h2>Member Function Documentation</h2> |
---|
223 | <a class="anchor" name="fa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::emix::from_setting" ref="fa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
---|
224 | <div class="memitem"> |
---|
225 | <div class="memproto"> |
---|
226 | <table class="memname"> |
---|
227 | <tr> |
---|
228 | <td class="memname">void bdm::epdf::from_setting </td> |
---|
229 | <td>(</td> |
---|
230 | <td class="paramtype">const Setting & </td> |
---|
231 | <td class="paramname"> <em>set</em> </td> |
---|
232 | <td> ) </td> |
---|
233 | <td><code> [inline, virtual, inherited]</code></td> |
---|
234 | </tr> |
---|
235 | </table> |
---|
236 | </div> |
---|
237 | <div class="memdoc"> |
---|
238 | |
---|
239 | <p> |
---|
240 | <<<<<<< HEAD:library/doc/html/classbdm_1_1emix.html |
---|
241 | where <img class="formulaInl" alt="$f_i(x)$" src="form_38.png"> is any density on random variable <img class="formulaInl" alt="$x$" src="form_28.png">, called <em>component</em>, <hr><h2>Member Function Documentation</h2> |
---|
242 | <a class="anchor" name="fa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::emix::from_setting" ref="fa9efc98a065b31c630fe18cc418f725" args="(const Setting &set)" --> |
---|
243 | <div class="memitem"> |
---|
244 | <div class="memproto"> |
---|
245 | <table class="memname"> |
---|
246 | <tr> |
---|
247 | <td class="memname">void bdm::epdf::from_setting </td> |
---|
248 | <td>(</td> |
---|
249 | <td class="paramtype">const Setting & </td> |
---|
250 | <td class="paramname"> <em>set</em> </td> |
---|
251 | <td> ) </td> |
---|
252 | <td><code> [inline, virtual, inherited]</code></td> |
---|
253 | </tr> |
---|
254 | </table> |
---|
255 | </div> |
---|
256 | <div class="memdoc"> |
---|
257 | |
---|
258 | <p> |
---|
259 | ======= |
---|
260 | >>>>>>> doc:library/doc/html/classbdm_1_1emix.html |
---|
261 | 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> |
---|
262 | <span class="comment">// elements of offsprings</span> |
---|
263 | } |
---|
264 | </pre></div> |
---|
265 | <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> |
---|
266 | |
---|
267 | <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_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> |
---|
268 | |
---|
269 | <<<<<<< HEAD:library/doc/html/classbdm_1_1emix.html |
---|
270 | <p>References <a class="el" href="bdmbase_8h_source.html#l00307">bdm::epdf::set_rv()</a>.</p> |
---|
271 | ======= |
---|
272 | <p>References <a class="el" href="bdmbase_8h-source.html#l00307">bdm::epdf::set_rv()</a>.</p> |
---|
273 | >>>>>>> doc:library/doc/html/classbdm_1_1emix.html |
---|
274 | |
---|
275 | </div> |
---|
276 | </div><p> |
---|
277 | <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)" --> |
---|
278 | <div class="memitem"> |
---|
279 | <div class="memproto"> |
---|
280 | <table class="memname"> |
---|
281 | <tr> |
---|
282 | <td class="memname">void bdm::emix::set_parameters </td> |
---|
283 | <td>(</td> |
---|
284 | <td class="paramtype">const vec & </td> |
---|
285 | <td class="paramname"> <em>w</em>, </td> |
---|
286 | </tr> |
---|
287 | <tr> |
---|
288 | <td class="paramkey"></td> |
---|
289 | <td></td> |
---|
290 | <td class="paramtype">const Array< <a class="el" href="classbdm_1_1epdf.html">epdf</a> * > & </td> |
---|
291 | <td class="paramname"> <em>Coms</em>, </td> |
---|
292 | </tr> |
---|
293 | <tr> |
---|
294 | <td class="paramkey"></td> |
---|
295 | <td></td> |
---|
296 | <td class="paramtype">bool </td> |
---|
297 | <td class="paramname"> <em>copy</em> = <code>false</code></td><td> </td> |
---|
298 | </tr> |
---|
299 | <tr> |
---|
300 | <td></td> |
---|
301 | <td>)</td> |
---|
302 | <td></td><td></td><td></td> |
---|
303 | </tr> |
---|
304 | </table> |
---|
305 | </div> |
---|
306 | <div class="memdoc"> |
---|
307 | |
---|
308 | <p> |
---|
309 | 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. |
---|
310 | <<<<<<< HEAD:library/doc/html/classbdm_1_1emix.html |
---|
311 | <p>References <a class="el" href="emix_8h_source.html#l00095">Coms</a>, <a class="el" href="emix_8h_source.html#l00097">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#l00093">w</a>.</p> |
---|
312 | |
---|
313 | <p>Referenced by <a class="el" href="mixtures_8cpp_source.html#l00138">bdm::MixEF::epredictor()</a>, <a class="el" href="emix_8cpp_source.html#l00103">bdm::egiwmix::marginal()</a>, <a class="el" href="emix_8cpp_source.html#l00037">marginal()</a>, and <a class="el" href="emix_8h_source.html#l00425">bdm::mmix::set_parameters()</a>.</p> |
---|
314 | ======= |
---|
315 | <p>References <a class="el" href="emix_8h-source.html#l00095">Coms</a>, <a class="el" href="emix_8h-source.html#l00097">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#l00093">w</a>.</p> |
---|
316 | |
---|
317 | <p>Referenced by <a class="el" href="mixtures_8cpp-source.html#l00138">bdm::MixEF::epredictor()</a>, <a class="el" href="emix_8cpp-source.html#l00103">bdm::egiwmix::marginal()</a>, <a class="el" href="emix_8cpp-source.html#l00037">marginal()</a>, and <a class="el" href="emix_8h-source.html#l00425">bdm::mmix::set_parameters()</a>.</p> |
---|
318 | >>>>>>> doc:library/doc/html/classbdm_1_1emix.html |
---|
319 | |
---|
320 | </div> |
---|
321 | </div><p> |
---|
322 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
323 | <li><a class="el" href="emix_8h_source.html">emix.h</a><li>emix.cpp</ul> |
---|
324 | </div> |
---|
325 | <<<<<<< HEAD:library/doc/html/classbdm_1_1emix.html |
---|
326 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 24 13:35:52 2009 for mixpp by |
---|
327 | ======= |
---|
328 | <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 23 19:52:53 2009 for mixpp by |
---|
329 | >>>>>>> doc:library/doc/html/classbdm_1_1emix.html |
---|
330 | <a href="http://www.doxygen.org/index.html"> |
---|
331 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> |
---|
332 | </body> |
---|
333 | </html> |
---|