70 | | <h1>bdm::emix Class Reference</h1><!-- doxytag: class="bdm::emix" --><!-- doxytag: inherits="bdm::epdf" -->Mixture of epdfs. |
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_1emix-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="4838f3a376ee0bd3c658bfb8f4ea4a3d"></a><!-- doxytag: member="bdm::emix::emix" ref="4838f3a376ee0bd3c658bfb8f4ea4a3d" args="()" --> |
81 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#4838f3a376ee0bd3c658bfb8f4ea4a3d">emix</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_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 | | |
86 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set weights <code>w</code> and components <code>Coms</code>. <a href="#10b4e0c45dd8f7d78f73e325382c6922"></a><br></td></tr> |
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">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#0f3db99f730bde6b7953931594537e8e">evallog</a> (const vec &val) const </td></tr> |
100 | | |
101 | | <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 " --> |
102 | | 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> |
103 | | |
104 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
105 | | <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 " --> |
106 | | 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> |
107 | | |
108 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function that returns pdflog for each component. <br></td></tr> |
109 | | <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 " --> |
110 | | <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> |
111 | | |
112 | | <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> |
113 | | <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 " --> |
114 | | 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> |
115 | | |
116 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update already existing marginal density <code>target</code>. <br></td></tr> |
117 | | <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 " --> |
118 | | <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> |
119 | | |
120 | | <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> |
121 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9b584cb5b2471a4250fb127757f28be"></a><!-- doxytag: member="bdm::emix::_w" ref="d9b584cb5b2471a4250fb127757f28be" args="()" --> |
122 | | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#d9b584cb5b2471a4250fb127757f28be">_w</a> ()</td></tr> |
123 | | |
124 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br></td></tr> |
125 | | <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)" --> |
126 | | <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> |
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="04a8632cfa9299ae937228eb732fd61e"></a><!-- doxytag: member="bdm::emix::set_rv" ref="04a8632cfa9299ae937228eb732fd61e" args="(const RV &rv)" --> |
130 | | 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> |
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">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> |
134 | | |
135 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::emix::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> |
136 | | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
137 | | |
138 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> |
139 | | <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 " --> |
140 | | 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> |
141 | | |
142 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> |
143 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::emix::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
144 | | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
145 | | |
146 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br></td></tr> |
| 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 | |
| 77 | <p><code>#include <<a class="el" href="emix_8h_source.html">emix.h</a>></code></p> |
| 78 | |
| 79 | <p><a href="classbdm_1_1emix-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="a4838f3a376ee0bd3c658bfb8f4ea4a3d"></a><!-- doxytag: member="bdm::emix::emix" ref="a4838f3a376ee0bd3c658bfb8f4ea4a3d" args="()" --> |
| 83 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a4838f3a376ee0bd3c658bfb8f4ea4a3d">emix</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_1emix.html#a10b4e0c45dd8f7d78f73e325382c6922">set_parameters</a> (const vec &<a class="el" href="classbdm_1_1emix.html#abb7270345c76da627cd77ddf020bcf46">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#a866e75dacba151942ead95104e57a897">Coms</a>)</td></tr> |
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set weights <code>w</code> and components <code>Coms</code>. <a href="#a10b4e0c45dd8f7d78f73e325382c6922"></a><br/></td></tr> |
| 87 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8839dbbb0d1276a8dbe957a67cfe0dc"></a><!-- doxytag: member="bdm::emix::sample" ref="ae8839dbbb0d1276a8dbe957a67cfe0dc" args="() const " --> |
| 88 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae8839dbbb0d1276a8dbe957a67cfe0dc">sample</a> () const </td></tr> |
| 89 | <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> |
| 90 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3a5390bc56e81ef3b0debc0f185fa8a"></a><!-- doxytag: member="bdm::emix::mean" ref="aa3a5390bc56e81ef3b0debc0f185fa8a" args="() const " --> |
| 91 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#aa3a5390bc56e81ef3b0debc0f185fa8a">mean</a> () const </td></tr> |
| 92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected value <br/></td></tr> |
| 93 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9a627023cdf90c9ffd8eef726595c86"></a><!-- doxytag: member="bdm::emix::variance" ref="ae9a627023cdf90c9ffd8eef726595c86" args="() const " --> |
| 94 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae9a627023cdf90c9ffd8eef726595c86">variance</a> () const </td></tr> |
| 95 | <tr><td class="mdescLeft"> </td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> |
| 96 | <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a0f3db99f730bde6b7953931594537e8e">evallog</a> (const vec &val) const </td></tr> |
| 97 | <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 &Val) const " --> |
| 98 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#a23af1986e2afcbc8c7e1c30f610e703b">evallog_m</a> (const mat &Val) const </td></tr> |
| 99 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
| 100 | <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 &Val) const " --> |
| 101 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ae64c1d5a73f541e469792e23d4677af2">evallog_M</a> (const mat &Val) const </td></tr> |
| 102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Auxiliary function that returns pdflog for each component. <br/></td></tr> |
| 103 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4edf5ceb3179a03f01b870c67eb53bb6"></a><!-- doxytag: member="bdm::emix::marginal" ref="a4edf5ceb3179a03f01b870c67eb53bb6" args="(const RV &rv) const " --> |
| 104 | <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#a4edf5ceb3179a03f01b870c67eb53bb6">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> |
| 105 | <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> |
| 106 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4ee18c3cdb5f35467f3bfc373c8544f"></a><!-- doxytag: member="bdm::emix::marginal" ref="ad4ee18c3cdb5f35467f3bfc373c8544f" args="(const RV &rv, emix &target) const " --> |
| 107 | void </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> &<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> |
| 108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Update already existing marginal density <code>target</code>. <br/></td></tr> |
| 109 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4176e4dc11980db4200b9fab54402a09"></a><!-- doxytag: member="bdm::emix::condition" ref="a4176e4dc11980db4200b9fab54402a09" args="(const RV &rv) const " --> |
| 110 | <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#a4176e4dc11980db4200b9fab54402a09">condition</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> |
| 111 | <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> |
| 112 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9b584cb5b2471a4250fb127757f28be"></a><!-- doxytag: member="bdm::emix::_w" ref="ad9b584cb5b2471a4250fb127757f28be" args="()" --> |
| 113 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#ad9b584cb5b2471a4250fb127757f28be">_w</a> ()</td></tr> |
| 114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">returns a pointer to the internal mean value. Use with Care! <br/></td></tr> |
| 115 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a579437ba18bf9975b3084e10bfe1b727"></a><!-- doxytag: member="bdm::emix::_Coms" ref="a579437ba18bf9975b3084e10bfe1b727" args="(int i)" --> |
| 116 | <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#a579437ba18bf9975b3084e10bfe1b727">_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="a04a8632cfa9299ae937228eb732fd61e"></a><!-- doxytag: member="bdm::emix::set_rv" ref="a04a8632cfa9299ae937228eb732fd61e" args="(const RV &rv)" --> |
| 119 | void </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> &<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">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &set)</td></tr> |
| 122 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::emix::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> |
| 123 | virtual string </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> |
| 124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> |
| 125 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::emix::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &set) const " --> |
| 126 | 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> |
| 127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> |
| 128 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::emix::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> |
| 129 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> |
| 130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This method TODO. <br/></td></tr> |
161 | | <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 " --> |
162 | | 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> |
163 | | |
164 | | <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> |
165 | | <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 " --> |
166 | | 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> |
167 | | |
168 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
169 | | <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 " --> |
170 | | 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> |
171 | | |
172 | | <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> |
| 147 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> |
| 148 | <br/><br/></div></td></tr> |
| 149 | <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 " --> |
| 150 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> |
| 151 | <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> |
| 152 | <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< vec > &Avec) const " --> |
| 153 | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array< vec > &Avec) const </td></tr> |
| 154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> |
| 155 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::emix::qbounds" ref="a0a7705e80601957f7226d333a0a6d539" args="(vec &lb, vec &ub, double percentage=0.95) const " --> |
| 156 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &lb, vec &ub, double percentage=0.95) const </td></tr> |
| 157 | <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> |
184 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::emix::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
185 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
186 | | |
187 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br></td></tr> |
188 | | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
189 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bb7270345c76da627cd77ddf020bcf46"></a><!-- doxytag: member="bdm::emix::w" ref="bb7270345c76da627cd77ddf020bcf46" args="" --> |
190 | | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#bb7270345c76da627cd77ddf020bcf46">w</a></td></tr> |
191 | | |
192 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br></td></tr> |
193 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="866e75dacba151942ead95104e57a897"></a><!-- doxytag: member="bdm::emix::Coms" ref="866e75dacba151942ead95104e57a897" args="" --> |
194 | | 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> |
195 | | |
196 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br></td></tr> |
197 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::emix::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
198 | | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
199 | | |
200 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br></td></tr> |
201 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::emix::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
202 | | <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> |
203 | | |
204 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br></td></tr> |
| 168 | <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> |
| 169 | <br/><br/></div></td></tr> |
| 170 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::emix::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> |
| 171 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> |
| 172 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the random variable. <br/></td></tr> |
| 173 | <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> |
| 174 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb7270345c76da627cd77ddf020bcf46"></a><!-- doxytag: member="bdm::emix::w" ref="abb7270345c76da627cd77ddf020bcf46" args="" --> |
| 175 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1emix.html#abb7270345c76da627cd77ddf020bcf46">w</a></td></tr> |
| 176 | <tr><td class="mdescLeft"> </td><td class="mdescRight">weights of the components <br/></td></tr> |
| 177 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a866e75dacba151942ead95104e57a897"></a><!-- doxytag: member="bdm::emix::Coms" ref="a866e75dacba151942ead95104e57a897" args="" --> |
| 178 | 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#a866e75dacba151942ead95104e57a897">Coms</a></td></tr> |
| 179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Component (epdfs). <br/></td></tr> |
| 180 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::emix::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> |
| 181 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> |
| 182 | <tr><td class="mdescLeft"> </td><td class="mdescRight">dimension of the random variable <br/></td></tr> |
| 183 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::emix::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> |
| 184 | <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> |
| 185 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the random variable. <br/></td></tr> |