Changeset 287 for doc/html/classbdm_1_1BM.html
- Timestamp:
- 03/05/09 14:03:56 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/classbdm_1_1BM.html
r280 r287 93 93 Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities. 94 94 <p> 95 <table border="0" cellpadding="0" cellspacing="0"> 95 This object represents exact or approximate evaluation of the Bayes rule: <p class="formulaDsp"> 96 <img class="formulaDsp" alt="\[ f(\theta_t | d_1,\ldots,d_t) = \frac{f(y_t|\theta_t,\cdot) f(\theta_t|d_1,\ldots,d_{t-1})}{f(y_t|d_1,\ldots,d_{t-1})} \]" src="form_118.png"> 97 <p> 98 <p> 99 Access to the resulting posterior density is via function <code>posterior()</code>.<p> 100 As a "side-effect" it also evaluates log-likelihood of the data, which can be accessed via function _ll(). It can also evaluate predictors of future values of <img class="formulaInl" alt="$y_t$" src="form_100.png">, see functions <a class="el" href="classbdm_1_1BM.html#688d7a2aced1e06aa1c468d73a9e5eba" title="Constructs a predictive density .">epredictor()</a> and <a class="el" href="classbdm_1_1BM.html#598b25e3f3d96a5bc00a5faeb5b3c912" title="Constructs a conditional density 1-step ahead predictor.">predictor()</a>.<p> 101 Alternatively, it can evaluate posterior density conditioned by a known constant, <img class="formulaInl" alt="$ c_t $" src="form_119.png">: <p class="formulaDsp"> 102 <img class="formulaDsp" alt="\[ f(\theta_t | c_t, d_1,\ldots,d_t) \propto f(y_t,\theta_t|c_t,\cdot, d_1,\ldots,d_{t-1}) \]" src="form_120.png"> 103 <p> 104 <p> 105 The value of <img class="formulaInl" alt="$ c_t $" src="form_119.png"> is set by function <a class="el" href="classbdm_1_1BM.html#6799f4b16a6a59ed58b1d0d6e17116f4" title="Substitute val for rvc.">condition()</a>. <table border="0" cellpadding="0" cellspacing="0"> 96 106 <tr><td></td></tr> 107 <tr><td colspan="2"><br><h2>Extension to conditional BM</h2></td></tr> 108 <tr><td colspan="2">This extension is useful e.g. in Marginalized Particle Filter (<a class="el" href="classbdm_1_1MPF.html">bdm::MPF</a>). Alternatively, it can be used for automated connection to <a class="el" href="classbdm_1_1DS.html" title="Abstract class for discrete-time sources of data.">DS</a> when the condition is observed <br><br></td></tr> 109 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de95c590d650b2db423d53992f0906cb"></a><!-- doxytag: member="bdm::BM::rvc" ref="de95c590d650b2db423d53992f0906cb" args="" --> 110 <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#de95c590d650b2db423d53992f0906cb">rvc</a></td></tr> 111 112 <tr><td class="mdescLeft"> </td><td class="mdescRight">Name of extension variable. <br></td></tr> 113 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b5e8e016be16e4029c789063cb3f3b33"></a><!-- doxytag: member="bdm::BM::_rvc" ref="b5e8e016be16e4029c789063cb3f3b33" args="() const " --> 114 const <a class="el" href="classbdm_1_1RV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#b5e8e016be16e4029c789063cb3f3b33">_rvc</a> () const </td></tr> 115 116 <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> 117 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6799f4b16a6a59ed58b1d0d6e17116f4"></a><!-- doxytag: member="bdm::BM::condition" ref="6799f4b16a6a59ed58b1d0d6e17116f4" args="(const vec &val)" --> 118 virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#6799f4b16a6a59ed58b1d0d6e17116f4">condition</a> (const vec &val)</td></tr> 119 120 <tr><td class="mdescLeft"> </td><td class="mdescRight">Substitute <code>val</code> for <code>rvc</code>. <br></td></tr> 121 <tr><td colspan="2"><br><h2>Logging of results</h2></td></tr> 122 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="109c1a626a69031658e3a44e9e500cca"></a><!-- doxytag: member="bdm::BM::LIDs" ref="109c1a626a69031658e3a44e9e500cca" args="" --> 123 ivec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#109c1a626a69031658e3a44e9e500cca">LIDs</a></td></tr> 124 125 <tr><td class="mdescLeft"> </td><td class="mdescRight">IDs of storages in loggers. <br></td></tr> 126 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5e0000d2c9df99b029eceff222f7d77"></a><!-- doxytag: member="bdm::BM::opt_L_bounds" ref="a5e0000d2c9df99b029eceff222f7d77" args="" --> 127 bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#a5e0000d2c9df99b029eceff222f7d77">opt_L_bounds</a></td></tr> 128 129 <tr><td class="mdescLeft"> </td><td class="mdescRight">Option for logging bounds. <br></td></tr> 130 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="224dd68a83c1472b43163763fa93c477"></a><!-- doxytag: member="bdm::BM::set_options" ref="224dd68a83c1472b43163763fa93c477" args="(const string &opt)" --> 131 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#224dd68a83c1472b43163763fa93c477">set_options</a> (const string &opt)</td></tr> 132 133 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set boolean options from a string. <br></td></tr> 134 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aa5d1f7e638db229403e3917bf155ee3"></a><!-- doxytag: member="bdm::BM::log_add" ref="aa5d1f7e638db229403e3917bf155ee3" args="(logger *L, const string &name="")" --> 135 void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#aa5d1f7e638db229403e3917bf155ee3">log_add</a> (<a class="el" href="classbdm_1_1logger.html">logger</a> *L, const string &name="")</td></tr> 136 137 <tr><td class="mdescLeft"> </td><td class="mdescRight">Add all logged variables to a <a class="el" href="classbdm_1_1logger.html" title="Class for storing results (and semi-results) of an experiment.">logger</a>. <br></td></tr> 138 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0647606eefbf294623bf664971c7d461"></a><!-- doxytag: member="bdm::BM::logit" ref="0647606eefbf294623bf664971c7d461" args="(logger *L)" --> 139 void </td><td class="memItemRight" valign="bottom"><b>logit</b> (<a class="el" href="classbdm_1_1logger.html">logger</a> *L)</td></tr> 140 97 141 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> 98 142 <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> … … 103 147 </td><td class="memItemRight" valign="bottom"><b>BM</b> (const <a class="el" href="classbdm_1_1BM.html">BM</a> &B)</td></tr> 104 148 105 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classbdm_1_1BM.html">BM</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html# c0f027ff91d8459937c6f60ff8e553ff">_copy_</a> ()</td></tr>149 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classbdm_1_1BM.html">BM</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#40f01563651c1e4fe926189e41a6b8ab">_copy_</a> () const </td></tr> 106 150 107 151 <tr><td colspan="2"><div class="groupHeader">Mathematical operations</div></td></tr> … … 164 208 </table> 165 209 <hr><h2>Member Function Documentation</h2> 166 <a class="anchor" name=" c0f027ff91d8459937c6f60ff8e553ff"></a><!-- doxytag: member="bdm::BM::_copy_" ref="c0f027ff91d8459937c6f60ff8e553ff" args="()" -->210 <a class="anchor" name="40f01563651c1e4fe926189e41a6b8ab"></a><!-- doxytag: member="bdm::BM::_copy_" ref="40f01563651c1e4fe926189e41a6b8ab" args="() const " --> 167 211 <div class="memitem"> 168 212 <div class="memproto"> … … 173 217 <td class="paramname"> </td> 174 218 <td> ) </td> 175 <td> <code> [inline, virtual]</code></td>219 <td> const<code> [inline, virtual]</code></td> 176 220 </tr> 177 221 </table> … … 180 224 181 225 <p> 182 Copy function required in vectors, Arrays of <a class="el" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> etc. Have to be DELETED manually! Prototype: <div class="fragment"><pre class="fragment"> BM* <a class="code" href="classbdm_1_1BM.html# c0f027ff91d8459937c6f60ff8e553ff">_copy_</a>(){<span class="keywordflow">return</span> <span class="keyword">new</span> BM(*<span class="keyword">this</span>);}226 Copy function required in vectors, Arrays of <a class="el" href="classbdm_1_1BM.html" title="Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities.">BM</a> etc. Have to be DELETED manually! Prototype: <div class="fragment"><pre class="fragment"> BM* <a class="code" href="classbdm_1_1BM.html#40f01563651c1e4fe926189e41a6b8ab">_copy_</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <span class="keyword">new</span> BM(*<span class="keyword">this</span>);} 183 227 </pre></div> 184 <p>Reimplemented in <a class="el" href="classbdm_1_1ARX.html# 60c40b5c6abc4c7e464b4ccae64a5a61">bdm::ARX</a>.</p>228 <p>Reimplemented in <a class="el" href="classbdm_1_1ARX.html#ca0b54c0997cfd567f49377af5def106">bdm::ARX</a>, <a class="el" href="classbdm_1_1KalmanCh.html#24ce65bdaa538d4d5153d709a929b996">bdm::KalmanCh</a>, <a class="el" href="classbdm_1_1EKF.html#fe9b2e227255ad32dc73df316b7318f4">bdm::EKF< sq_T ></a>, and <a class="el" href="classbdm_1_1EKFCh.html#1d1d91400e3f177de9fe7962ea17adc4">bdm::EKFCh</a>.</p> 185 229 186 230 </div> … … 213 257 <p>Implemented in <a class="el" href="classbdm_1_1ARX.html#8bdf2974052e8ce74eb0d4f3791c58a3">bdm::ARX</a>, <a class="el" href="classbdm_1_1Kalman.html#4a39330c14eff8d13179e868a1d1aa8c">bdm::Kalman< sq_T ></a>, <a class="el" href="classbdm_1_1KalmanCh.html#b41fe5540548100b08e1684c3be767b6">bdm::KalmanCh</a>, <a class="el" href="classbdm_1_1EKFfull.html#f149ae8e9ce14d9931a7bb2850736699">bdm::EKFfull</a>, <a class="el" href="classbdm_1_1EKF.html#3fb182ecc29b10ca1163cecbf3bcccfa">bdm::EKF< sq_T ></a>, <a class="el" href="classbdm_1_1EKFCh.html#4c8609c37290b158f88a31dae4047225">bdm::EKFCh</a>, <a class="el" href="classbdm_1_1PF.html#638946eea22d4964bf9350286bb4efd8">bdm::PF</a>, <a class="el" href="classbdm_1_1MPF.html#286d040770d08bd7ff416cea617b1b14">bdm::MPF< BM_T ></a>, <a class="el" href="classbdm_1_1MixEF.html#5bd7da667da183eed1577f11dff0c1f1">bdm::MixEF</a>, <a class="el" href="classbdm_1_1BMEF.html#c287f4c0c1ea31b91572ec45351838f1">bdm::BMEF</a>, <a class="el" href="classbdm_1_1multiBM.html#1e4bf41b61937fd80f34049742e23f95">bdm::multiBM</a>, <a class="el" href="classEKFfixed.html#ddf5334bc1207658fd53698fffbac028">EKFfixed</a>, <a class="el" href="classbdm_1_1Kalman.html#4a39330c14eff8d13179e868a1d1aa8c">bdm::Kalman< ldmat ></a>, <a class="el" href="classbdm_1_1Kalman.html#4a39330c14eff8d13179e868a1d1aa8c">bdm::Kalman< chmat ></a>, and <a class="el" href="classbdm_1_1Kalman.html#4a39330c14eff8d13179e868a1d1aa8c">bdm::Kalman< fsqmat ></a>.</p> 214 258 215 <p>Referenced by <a class="el" href="libBM_8cpp-source.html#l002 29">bayesB()</a>.</p>259 <p>Referenced by <a class="el" href="libBM_8cpp-source.html#l00239">bayesB()</a>.</p> 216 260 217 261 </div> … … 237 281 <p>Reimplemented in <a class="el" href="classbdm_1_1ARX.html#080a7e531e3aa06694112863b15bc6a4">bdm::ARX</a>, <a class="el" href="classbdm_1_1MixEF.html#da724da464a75e07521941e430929efa">bdm::MixEF</a>, and <a class="el" href="classbdm_1_1multiBM.html#e157b607c1e3fa91d42aeea44458e2bf">bdm::multiBM</a>.</p> 238 282 239 <p>Referenced by <a class="el" href="libBM_8h-source.html#l006 28">logpred_m()</a>.</p>283 <p>Referenced by <a class="el" href="libBM_8h-source.html#l00650">logpred_m()</a>.</p> 240 284 241 285 </div> … … 244 288 <li><a class="el" href="libBM_8h-source.html">libBM.h</a><li>libBM.cpp</ul> 245 289 </div> 246 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Feb 18 17:39:152009 for mixpp by 290 <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 4 18:50:22 2009 for mixpp by 247 291 <a href="http://www.doxygen.org/index.html"> 248 292 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>