[8] | 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: BM Class Reference</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
| 7 | <!-- Generated by Doxygen 1.5.3 --> |
---|
| 8 | <div class="tabs"> |
---|
| 9 | <ul> |
---|
| 10 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 11 | <li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
---|
| 12 | <li><a href="files.html"><span>Files</span></a></li> |
---|
[28] | 13 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
[8] | 14 | </ul> |
---|
| 15 | </div> |
---|
| 16 | <div class="tabs"> |
---|
| 17 | <ul> |
---|
| 18 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
| 19 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
| 20 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
| 21 | </ul> |
---|
| 22 | </div> |
---|
| 23 | <h1>BM Class Reference</h1><!-- doxytag: class="BM" -->Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities. |
---|
| 24 | <a href="#_details">More...</a> |
---|
| 25 | <p> |
---|
| 26 | <code>#include <<a class="el" href="libBM_8h-source.html">libBM.h</a>></code> |
---|
| 27 | <p> |
---|
| 28 | <div class="dynheader"> |
---|
| 29 | Inheritance diagram for BM:</div> |
---|
| 30 | <div class="dynsection"> |
---|
[19] | 31 | <p><center><img src="classBM__inherit__graph.png" border="0" usemap="#BM__inherit__map" alt="Inheritance graph"></center> |
---|
| 32 | <map name="BM__inherit__map"> |
---|
[33] | 33 | <area shape="rect" href="classKalman.html" title="Kalman filter with covariance matrices in square root form." alt="" coords="116,87,244,113"><area shape="rect" href="classKalman.html" title="Kalman\< ldmat \>" alt="" coords="119,183,255,209"><area shape="rect" href="classPF.html" title="Trivial particle filter with proposal density equal to parameter evolution model..." alt="" coords="319,87,356,113"><area shape="rect" title="\< ldmat \>" alt="" coords="177,111,185,119"><area shape="rect" title="\< ldmat \>" alt="" coords="181,179,189,187"><area shape="rect" href="classEKF.html" title="Extended Kalman Filter." alt="" coords="5,263,109,289"><area shape="rect" href="classEKF.html" title="EKF\< ldmat \>" alt="" coords="45,359,160,385"><area shape="rect" href="classKFcondQR.html" title="Kalman Filter with conditional diagonal matrices R and Q." alt="" coords="184,263,272,289"><area shape="rect" href="classKFcondR.html" title="Kalman Filter with conditional diagonal matrices R and Q." alt="" coords="296,263,373,289"><area shape="rect" title="\< ldmat \>" alt="" coords="52,287,60,295"><area shape="rect" title="\< ldmat \>" alt="" coords="79,355,87,363"><area shape="rect" href="classEKF__unQ.html" title="Extended Kalman filter with unknown Q." alt="" coords="63,439,143,465"><area shape="rect" href="classMPF.html" title="Marginalized Particle filter." alt="" coords="280,183,395,209"></map> |
---|
[19] | 34 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
[32] | 35 | <div class="dynheader"> |
---|
| 36 | Collaboration diagram for BM:</div> |
---|
| 37 | <div class="dynsection"> |
---|
| 38 | <p><center><img src="classBM__coll__graph.png" border="0" usemap="#BM__coll__map" alt="Collaboration graph"></center> |
---|
| 39 | <map name="BM__coll__map"> |
---|
| 40 | <area shape="rect" href="classRV.html" title="Class representing variables, most often random variables." alt="" coords="8,7,45,33"><area shape="rect" title="rv" alt="" coords="23,31,31,39"><area shape="rect" title="rv" alt="" coords="23,99,31,107"></map> |
---|
| 41 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
[8] | 42 | |
---|
| 43 | <p> |
---|
| 44 | <a href="classBM-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
| 45 | <tr><td></td></tr> |
---|
| 46 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
[32] | 47 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="605d28b426adb677c86a57ddb525132a"></a><!-- doxytag: member="BM::BM" ref="605d28b426adb677c86a57ddb525132a" args="(const RV &rv0)" --> |
---|
| 48 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#605d28b426adb677c86a57ddb525132a">BM</a> (const <a class="el" href="classRV.html">RV</a> &rv0)</td></tr> |
---|
[22] | 49 | |
---|
| 50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
[28] | 51 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#a892eff438aab2dd1a9e2efcb7fb5bdf">bayes</a> (const vec &dt)=0</td></tr> |
---|
[8] | 52 | |
---|
[28] | 53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Incremental Bayes rule. <a href="#a892eff438aab2dd1a9e2efcb7fb5bdf"></a><br></td></tr> |
---|
[8] | 54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87b07867fd4c133aa89a18543f68d9f9"></a><!-- doxytag: member="BM::bayes" ref="87b07867fd4c133aa89a18543f68d9f9" args="(mat Dt)" --> |
---|
| 55 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#87b07867fd4c133aa89a18543f68d9f9">bayes</a> (mat Dt)</td></tr> |
---|
| 56 | |
---|
| 57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Batch Bayes rule (columns of Dt are observations). <br></td></tr> |
---|
[32] | 58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3dc45554556926bde996a267636abe55"></a><!-- doxytag: member="BM::_epdf" ref="3dc45554556926bde996a267636abe55" args="()=0" --> |
---|
| 59 | virtual <a class="el" href="classepdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#3dc45554556926bde996a267636abe55">_epdf</a> ()=0</td></tr> |
---|
[28] | 60 | |
---|
| 61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the <a class="el" href="classepdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> representing posterior density on parameters. Use with care! <br></td></tr> |
---|
[32] | 62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca0f02b3b4144e0895cc14f7e0374bdd"></a><!-- doxytag: member="BM::~BM" ref="ca0f02b3b4144e0895cc14f7e0374bdd" args="()" --> |
---|
| 63 | virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#ca0f02b3b4144e0895cc14f7e0374bdd">~BM</a> ()</td></tr> |
---|
| 64 | |
---|
| 65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for future use;. <br></td></tr> |
---|
[33] | 66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="126bd2595c48e311fc2a7ab72876092a"></a><!-- doxytag: member="BM::_rv" ref="126bd2595c48e311fc2a7ab72876092a" args="() const " --> |
---|
| 67 | const <a class="el" href="classRV.html">RV</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#126bd2595c48e311fc2a7ab72876092a">_rv</a> () const </td></tr> |
---|
| 68 | |
---|
| 69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
| 70 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87f4a547d2c29180be88175e5eab9c88"></a><!-- doxytag: member="BM::_ll" ref="87f4a547d2c29180be88175e5eab9c88" args="() const " --> |
---|
| 71 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#87f4a547d2c29180be88175e5eab9c88">_ll</a> () const </td></tr> |
---|
| 72 | |
---|
| 73 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
[32] | 74 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
| 75 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af00f0612fabe66241dd507188cdbf88"></a><!-- doxytag: member="BM::rv" ref="af00f0612fabe66241dd507188cdbf88" args="" --> |
---|
| 76 | <a class="el" href="classRV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#af00f0612fabe66241dd507188cdbf88">rv</a></td></tr> |
---|
| 77 | |
---|
| 78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Random variable of the posterior. <br></td></tr> |
---|
[8] | 79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5623fef6572a08c2b53b8c87b82dc979"></a><!-- doxytag: member="BM::ll" ref="5623fef6572a08c2b53b8c87b82dc979" args="" --> |
---|
| 80 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#5623fef6572a08c2b53b8c87b82dc979">ll</a></td></tr> |
---|
| 81 | |
---|
| 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of marginalized data likelihood. <br></td></tr> |
---|
[28] | 83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf6fb59b30141074f8ee1e2f43d03129"></a><!-- doxytag: member="BM::evalll" ref="bf6fb59b30141074f8ee1e2f43d03129" args="" --> |
---|
| 84 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classBM.html#bf6fb59b30141074f8ee1e2f43d03129">evalll</a></td></tr> |
---|
| 85 | |
---|
| 86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">If true, the filter will compute likelihood of the data record and store it in <code>ll</code> . Set to false if you want to save time. <br></td></tr> |
---|
[8] | 87 | </table> |
---|
| 88 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
| 89 | Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities. <hr><h2>Member Function Documentation</h2> |
---|
[28] | 90 | <a class="anchor" name="a892eff438aab2dd1a9e2efcb7fb5bdf"></a><!-- doxytag: member="BM::bayes" ref="a892eff438aab2dd1a9e2efcb7fb5bdf" args="(const vec &dt)=0" --> |
---|
[8] | 91 | <div class="memitem"> |
---|
| 92 | <div class="memproto"> |
---|
| 93 | <table class="memname"> |
---|
| 94 | <tr> |
---|
| 95 | <td class="memname">virtual void BM::bayes </td> |
---|
| 96 | <td>(</td> |
---|
| 97 | <td class="paramtype">const vec & </td> |
---|
[28] | 98 | <td class="paramname"> <em>dt</em> </td> |
---|
| 99 | <td> ) </td> |
---|
| 100 | <td width="100%"><code> [pure virtual]</code></td> |
---|
[8] | 101 | </tr> |
---|
| 102 | </table> |
---|
| 103 | </div> |
---|
| 104 | <div class="memdoc"> |
---|
| 105 | |
---|
| 106 | <p> |
---|
| 107 | Incremental Bayes rule. |
---|
| 108 | <p> |
---|
| 109 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
| 110 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
| 111 | <tr><td valign="top"></td><td valign="top"><em>dt</em> </td><td>vector of input data </td></tr> |
---|
| 112 | </table> |
---|
| 113 | </dl> |
---|
| 114 | |
---|
[33] | 115 | <p>Implemented in <a class="el" href="classKalman.html#7750ffd73f261828a32c18aaeb65c75c">Kalman< sq_T ></a>, <a class="el" href="classEKF.html#c79c62c9b3e0b56b3aaa1b6f1d9a7af7">EKF< sq_T ></a>, <a class="el" href="classPF.html#64f636bbd63bea9efd778214e6b631d3">PF</a>, <a class="el" href="classMPF.html#55daf8e4b6553dd9f47c692de7931623">MPF< BM_T ></a>, <a class="el" href="classKalman.html#7750ffd73f261828a32c18aaeb65c75c">Kalman< ldmat ></a>, and <a class="el" href="classEKF.html#c79c62c9b3e0b56b3aaa1b6f1d9a7af7">EKF< ldmat ></a>.</p> |
---|
[32] | 116 | |
---|
[8] | 117 | </div> |
---|
| 118 | </div><p> |
---|
| 119 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
[19] | 120 | <li>work/mixpp/bdm/stat/<a class="el" href="libBM_8h-source.html">libBM.h</a></ul> |
---|
[33] | 121 | <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 5 15:40:03 2008 for mixpp by |
---|
[8] | 122 | <a href="http://www.doxygen.org/index.html"> |
---|
| 123 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
---|
| 124 | </body> |
---|
| 125 | </html> |
---|