| 54 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d3789d50a3327a6de552db077af5e4c5"></a><!-- doxytag: member="emix::set_parameters" ref="d3789d50a3327a6de552db077af5e4c5" args="(const vec &w, const Array< epdf * > &Coms, bool copy=true)" --> |
| 55 | | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#d3789d50a3327a6de552db077af5e4c5">set_parameters</a> (const vec &<a class="el" href="classemix.html#cdc8f4e2a5e43595ac5450d8a7f9d1ab">w</a>, const Array< <a class="el" href="classepdf.html">epdf</a> * > &<a class="el" href="classemix.html#7155d827417b53fb6aa5cff1459e6eb4">Coms</a>, bool copy=true)</td></tr> |
| | 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#d3789d50a3327a6de552db077af5e4c5">set_parameters</a> (const vec &<a class="el" href="classemix.html#cdc8f4e2a5e43595ac5450d8a7f9d1ab">w</a>, const Array< <a class="el" href="classepdf.html">epdf</a> * > &<a class="el" href="classemix.html#7155d827417b53fb6aa5cff1459e6eb4">Coms</a>, bool copy=true)</td></tr> |
| | 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="375bfba7c79915c88c2e612bcf83dacb"></a><!-- doxytag: member="emix::evalpdflog_m" ref="375bfba7c79915c88c2e612bcf83dacb" args="(const mat &Val) const " --> |
| | 69 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#375bfba7c79915c88c2e612bcf83dacb">evalpdflog_m</a> (const mat &Val) const </td></tr> |
| | 70 | |
| | 71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
| | 72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="07b5638de45d1fe83eb4da37594fcc68"></a><!-- doxytag: member="emix::evalpdflog_M" ref="07b5638de45d1fe83eb4da37594fcc68" args="(const mat &Val) const " --> |
| | 73 | mat </td><td class="memItemRight" valign="bottom"><b>evalpdflog_M</b> (const mat &Val) const </td></tr> |
| | 74 | |
| | 75 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33afde698093d458ce71875f7ee7384a"></a><!-- doxytag: member="emix::marginal" ref="33afde698093d458ce71875f7ee7384a" args="(const RV &rv) const " --> |
| | 76 | <a class="el" href="classemix.html">emix</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#33afde698093d458ce71875f7ee7384a">marginal</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>) const </td></tr> |
| | 77 | |
| | 78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> |
| | 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ebf50c387034f72040c83d38738549b3"></a><!-- doxytag: member="emix::condition" ref="ebf50c387034f72040c83d38738549b3" args="(const RV &rv) const " --> |
| | 80 | <a class="el" href="classmratio.html">mratio</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#ebf50c387034f72040c83d38738549b3">condition</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>) const </td></tr> |
| | 81 | |
| | 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> |
| 78 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54d7dd53a641b618771cd9bee135181f"></a><!-- doxytag: member="emix::sampleN" ref="54d7dd53a641b618771cd9bee135181f" args="(int N) const " --> |
| 79 | | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#54d7dd53a641b618771cd9bee135181f">sampleN</a> (int N) const </td></tr> |
| | 91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="95d175b2daa1d896ceffd69b70e02efb"></a><!-- doxytag: member="emix::_Coms" ref="95d175b2daa1d896ceffd69b70e02efb" args="(int i)" --> |
| | 92 | <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classemix.html#95d175b2daa1d896ceffd69b70e02efb">_Coms</a> (int i)</td></tr> |
| | 93 | |
| | 94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
| | 95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76608914c3b19e150292d5c56e93e508"></a><!-- doxytag: member="emix::sample_m" ref="76608914c3b19e150292d5c56e93e508" args="(int N) const " --> |
| | 96 | virtual mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#76608914c3b19e150292d5c56e93e508">sample_m</a> (int N) const </td></tr> |
| 82 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ea597362e11a0040fe7c990269d072c"></a><!-- doxytag: member="emix::eval" ref="3ea597362e11a0040fe7c990269d072c" args="(const vec &val) const " --> |
| 83 | | virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ea597362e11a0040fe7c990269d072c">eval</a> (const vec &val) const </td></tr> |
| 84 | | |
| 85 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute probability of argument <code>val</code>. <br></td></tr> |
| 86 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cebbdd7a85e6328f7358fc0ba8eee06c"></a><!-- doxytag: member="emix::evalpdflog_m" ref="cebbdd7a85e6328f7358fc0ba8eee06c" args="(const mat &Val) const " --> |
| 87 | | virtual vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#cebbdd7a85e6328f7358fc0ba8eee06c">evalpdflog_m</a> (const mat &Val) const </td></tr> |
| 88 | | |
| 89 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> |
| 90 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ba08c0e788deff22134c049b9269666"></a><!-- doxytag: member="emix::condition" ref="3ba08c0e788deff22134c049b9269666" args="(const RV &rv)" --> |
| 91 | | <a class="el" href="classmpdf.html">mpdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#3ba08c0e788deff22134c049b9269666">condition</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr> |
| 92 | | |
| 93 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return conditional density on the given <a class="el" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> |
| 94 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc0c171b6dafacd78d26263913b1d0c0"></a><!-- doxytag: member="emix::marginal" ref="bc0c171b6dafacd78d26263913b1d0c0" args="(const RV &rv)" --> |
| 95 | | <a class="el" href="classepdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classepdf.html#bc0c171b6dafacd78d26263913b1d0c0">marginal</a> (const <a class="el" href="classRV.html">RV</a> &<a class="el" href="classepdf.html#74da992e3f5d598da8850b646b79b9d9">rv</a>)</td></tr> |
| 96 | | |
| 97 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Return marginal density on the given <a class="el" href="classRV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> |
| 130 | | where <img class="formulaInl" alt="$f_i(x)$" src="form_64.png"> is any density on random variable <img class="formulaInl" alt="$x$" src="form_28.png">, called <em>component</em>, <hr>The documentation for this class was generated from the following files:<ul> |
| | 131 | where <img class="formulaInl" alt="$f_i(x)$" src="form_64.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> |
| | 132 | <a class="anchor" name="d3789d50a3327a6de552db077af5e4c5"></a><!-- doxytag: member="emix::set_parameters" ref="d3789d50a3327a6de552db077af5e4c5" args="(const vec &w, const Array< epdf * > &Coms, bool copy=true)" --> |
| | 133 | <div class="memitem"> |
| | 134 | <div class="memproto"> |
| | 135 | <table class="memname"> |
| | 136 | <tr> |
| | 137 | <td class="memname">void emix::set_parameters </td> |
| | 138 | <td>(</td> |
| | 139 | <td class="paramtype">const vec & </td> |
| | 140 | <td class="paramname"> <em>w</em>, </td> |
| | 141 | </tr> |
| | 142 | <tr> |
| | 143 | <td class="paramkey"></td> |
| | 144 | <td></td> |
| | 145 | <td class="paramtype">const Array< <a class="el" href="classepdf.html">epdf</a> * > & </td> |
| | 146 | <td class="paramname"> <em>Coms</em>, </td> |
| | 147 | </tr> |
| | 148 | <tr> |
| | 149 | <td class="paramkey"></td> |
| | 150 | <td></td> |
| | 151 | <td class="paramtype">bool </td> |
| | 152 | <td class="paramname"> <em>copy</em> = <code>true</code></td><td> </td> |
| | 153 | </tr> |
| | 154 | <tr> |
| | 155 | <td></td> |
| | 156 | <td>)</td> |
| | 157 | <td></td><td></td><td></td> |
| | 158 | </tr> |
| | 159 | </table> |
| | 160 | </div> |
| | 161 | <div class="memdoc"> |
| | 162 | |
| | 163 | <p> |
| | 164 | Set weights <code>w</code> and components <code>Coms</code> By default Coms are copied inside. <dl compact><dt><b>Parameters:</b></dt><dd> |
| | 165 | <table border="0" cellspacing="2" cellpadding="0"> |
| | 166 | <tr><td valign="top"></td><td valign="top"><em>copy</em> </td><td>can be set to false if Coms live externally. Use method <a class="el" href="classemix.html#4d7baeb2a9e3fca1d8fd32a107df291d" title="Auxiliary function for taking ownership of the Coms().">ownComs()</a> if Coms should be destroyed by the destructor. </td></tr> |
| | 167 | </table> |
| | 168 | </dl> |
| | 169 | |
| | 170 | <p>References <a class="el" href="libBM_8h-source.html#l00193">epdf::_rv()</a>, <a class="el" href="emix_8h-source.html#l00088">Coms</a>, <a class="el" href="emix_8h-source.html#l00090">destroyComs</a>, <a class="el" href="libBM_8cpp-source.html#l00109">RV::equal()</a>, <a class="el" href="libBM_8h-source.html#l00157">epdf::rv</a>, and <a class="el" href="emix_8h-source.html#l00086">w</a>.</p> |
| | 171 | |
| | 172 | <p>Referenced by <a class="el" href="emix_8cpp-source.html#l00034">marginal()</a>, <a class="el" href="mixef_8cpp-source.html#l00134">MixEF::predictor()</a>, and <a class="el" href="emix_8h-source.html#l00274">mmix::set_parameters()</a>.</p> |
| | 173 | |
| | 174 | </div> |
| | 175 | </div><p> |
| | 176 | <hr>The documentation for this class was generated from the following files:<ul> |