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::Kalman< sq_T > Class Template 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.6 --> |
---|
8 | <div class="navigation" id="top"> |
---|
9 | <div class="tabs"> |
---|
10 | <ul> |
---|
11 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
12 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
13 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
14 | <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
---|
15 | <li class="current"><a href="classes.html"><span>Classes</span></a></li> |
---|
16 | <li><a href="files.html"><span>Files</span></a></li> |
---|
17 | </ul> |
---|
18 | </div> |
---|
19 | <div class="tabs"> |
---|
20 | <ul> |
---|
21 | <li><a href="classes.html"><span>Alphabetical List</span></a></li> |
---|
22 | <li><a href="annotated.html"><span>Class List</span></a></li> |
---|
23 | <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
---|
24 | <li><a href="functions.html"><span>Class Members</span></a></li> |
---|
25 | </ul> |
---|
26 | </div> |
---|
27 | <div class="navpath"><a class="el" href="namespacebdm.html">bdm</a>::<a class="el" href="classbdm_1_1Kalman.html">Kalman</a> |
---|
28 | </div> |
---|
29 | </div> |
---|
30 | <div class="contents"> |
---|
31 | <h1>bdm::Kalman< sq_T > Class Template Reference</h1><!-- doxytag: class="bdm::Kalman" --><!-- doxytag: inherits="bdm::BM" --><a class="el" href="classbdm_1_1Kalman.html" title="Kalman filter with covariance matrices in square root form.">Kalman</a> filter with covariance matrices in square root form. |
---|
32 | <a href="#_details">More...</a> |
---|
33 | <p> |
---|
34 | <code>#include <<a class="el" href="libKF_8h-source.html">libKF.h</a>></code> |
---|
35 | <p> |
---|
36 | <div class="dynheader"> |
---|
37 | Inheritance diagram for bdm::Kalman< sq_T >:</div> |
---|
38 | <div class="dynsection"> |
---|
39 | <p><center><img src="classbdm_1_1Kalman__inherit__graph.png" border="0" usemap="#bdm_1_1Kalman_3_01sq__T_01_4__inherit__map" alt="Inheritance graph"></center> |
---|
40 | <map name="bdm_1_1Kalman_3_01sq__T_01_4__inherit__map"> |
---|
41 | <area shape="rect" href="classbdm_1_1Kalman.html" title="bdm::Kalman\< ldmat \>" alt="" coords="92,263,265,289"><area shape="rect" href="classbdm_1_1Kalman.html" title="bdm::Kalman\< chmat \>" alt="" coords="289,263,465,289"><area shape="rect" href="classbdm_1_1Kalman.html" title="bdm::Kalman\< fsqmat \>" alt="" coords="489,263,671,289"><area shape="rect" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="339,87,416,113"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="321,7,433,33"><area shape="rect" href="classbdm_1_1KFcondQR.html" title="Kalman Filter with conditional diagonal matrices R and Q." alt="" coords="5,343,128,369"><area shape="rect" href="classbdm_1_1KFcondR.html" title="Kalman Filter with conditional diagonal matrices R and Q." alt="" coords="152,343,264,369"><area shape="rect" href="classbdm_1_1KalmanCh.html" title="Kalman filter in square root form." alt="" coords="316,343,439,369"><area shape="rect" href="classbdm_1_1EKFCh.html" title="Extended Kalman Filter in Square root." alt="" coords="328,423,427,449"><area shape="rect" href="classbdm_1_1EKFCh__cond.html" title="Extended Kalman filter with unknown parameters in IM." alt="" coords="231,503,367,529"><area shape="rect" href="classbdm_1_1EKFCh__unQ.html" title="Extended Kalman filter in Choleski form with unknown Q." alt="" coords="391,503,521,529"><area shape="rect" href="classbdm_1_1EKF.html" title="Extended Kalman Filter." alt="" coords="511,343,649,369"></map> |
---|
42 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
43 | <div class="dynheader"> |
---|
44 | Collaboration diagram for bdm::Kalman< sq_T >:</div> |
---|
45 | <div class="dynsection"> |
---|
46 | <p><center><img src="classbdm_1_1Kalman__coll__graph.png" border="0" usemap="#bdm_1_1Kalman_3_01sq__T_01_4__coll__map" alt="Collaboration graph"></center> |
---|
47 | <map name="bdm_1_1Kalman_3_01sq__T_01_4__coll__map"> |
---|
48 | <area shape="rect" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities." alt="" coords="5,185,83,212"><area shape="rect" href="classbdm_1_1bdmroot.html" title="Root class of BDM objects." alt="" coords="15,7,127,33"><area shape="rect" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables." alt="" coords="81,87,156,113"></map> |
---|
49 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> |
---|
50 | |
---|
51 | <p> |
---|
52 | <a href="classbdm_1_1Kalman-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
---|
53 | <tr><td></td></tr> |
---|
54 | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
---|
55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7d8fae1d89d796e3fd40d9e088c432ab"></a><!-- doxytag: member="bdm::Kalman::Kalman" ref="7d8fae1d89d796e3fd40d9e088c432ab" args="(RV rvx0, RV rvy0, RV rvu0)" --> |
---|
56 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#7d8fae1d89d796e3fd40d9e088c432ab">Kalman</a> (<a class="el" href="classbdm_1_1RV.html">RV</a> rvx0, <a class="el" href="classbdm_1_1RV.html">RV</a> rvy0, <a class="el" href="classbdm_1_1RV.html">RV</a> rvu0)</td></tr> |
---|
57 | |
---|
58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr> |
---|
59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b22c45cffa949d70b8e5ac92ed5ce25"></a><!-- doxytag: member="bdm::Kalman::Kalman" ref="8b22c45cffa949d70b8e5ac92ed5ce25" args="(const Kalman< sq_T > &K0)" --> |
---|
60 | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#8b22c45cffa949d70b8e5ac92ed5ce25">Kalman</a> (const <a class="el" href="classbdm_1_1Kalman.html">Kalman</a>< sq_T > &K0)</td></tr> |
---|
61 | |
---|
62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr> |
---|
63 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="94eb8cc31731210089db0ba4e1a08a6c"></a><!-- doxytag: member="bdm::Kalman::set_parameters" ref="94eb8cc31731210089db0ba4e1a08a6c" args="(const mat &A0, const mat &B0, const mat &C0, const mat &D0, const sq_T &R0, const sq_T &Q0)" --> |
---|
64 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#94eb8cc31731210089db0ba4e1a08a6c">set_parameters</a> (const mat &A0, const mat &B0, const mat &C0, const mat &D0, const sq_T &R0, const sq_T &Q0)</td></tr> |
---|
65 | |
---|
66 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set parameters with check of relevance. <br></td></tr> |
---|
67 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9264fc6b173ecb803d2684b883f32c68"></a><!-- doxytag: member="bdm::Kalman::set_est" ref="9264fc6b173ecb803d2684b883f32c68" args="(const vec &mu0, const sq_T &P0)" --> |
---|
68 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#9264fc6b173ecb803d2684b883f32c68">set_est</a> (const vec &mu0, const sq_T &P0)</td></tr> |
---|
69 | |
---|
70 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set estimate values, used e.g. in initialization. <br></td></tr> |
---|
71 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4a39330c14eff8d13179e868a1d1aa8c"></a><!-- doxytag: member="bdm::Kalman::bayes" ref="4a39330c14eff8d13179e868a1d1aa8c" args="(const vec &dt)" --> |
---|
72 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#4a39330c14eff8d13179e868a1d1aa8c">bayes</a> (const vec &dt)</td></tr> |
---|
73 | |
---|
74 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Here dt = [yt;ut] of appropriate dimensions. <br></td></tr> |
---|
75 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="93b5936ba397f13c05f52885c545f42d"></a><!-- doxytag: member="bdm::Kalman::_epdf" ref="93b5936ba397f13c05f52885c545f42d" args="() const " --> |
---|
76 | const <a class="el" href="classbdm_1_1epdf.html">epdf</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#93b5936ba397f13c05f52885c545f42d">_epdf</a> () const </td></tr> |
---|
77 | |
---|
78 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c34989b1e53c7d4ecdaea63a95ddbd77"></a><!-- doxytag: member="bdm::Kalman::_e" ref="c34989b1e53c7d4ecdaea63a95ddbd77" args="() const " --> |
---|
80 | const <a class="el" href="classbdm_1_1enorm.html">enorm</a>< sq_T > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#c34989b1e53c7d4ecdaea63a95ddbd77">_e</a> () const </td></tr> |
---|
81 | |
---|
82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to the <a class="el" href="classbdm_1_1epdf.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> |
---|
83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c788ec6e6c6f5f5861ae8a56d8ede277"></a><!-- doxytag: member="bdm::Kalman::__K" ref="c788ec6e6c6f5f5861ae8a56d8ede277" args="()" --> |
---|
84 | mat & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#c788ec6e6c6f5f5861ae8a56d8ede277">__K</a> ()</td></tr> |
---|
85 | |
---|
86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a250d1dbe7bba861dba2a324520cfa48"></a><!-- doxytag: member="bdm::Kalman::_dP" ref="a250d1dbe7bba861dba2a324520cfa48" args="()" --> |
---|
88 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#a250d1dbe7bba861dba2a324520cfa48">_dP</a> ()</td></tr> |
---|
89 | |
---|
90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1dee3fddaf021e62d925289660a707dc"></a><!-- doxytag: member="bdm::Kalman::bayesB" ref="1dee3fddaf021e62d925289660a707dc" args="(const mat &Dt)" --> |
---|
92 | virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#1dee3fddaf021e62d925289660a707dc">bayesB</a> (const mat &Dt)</td></tr> |
---|
93 | |
---|
94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Batch Bayes rule (columns of Dt are observations). <br></td></tr> |
---|
95 | <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#50257e0c1e5b5c73153ea6e716ad8ae0">logpred</a> (const vec &dt) const </td></tr> |
---|
96 | |
---|
97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e8ebe61fb14990abe1254bd3dda5fae"></a><!-- doxytag: member="bdm::Kalman::logpred_m" ref="0e8ebe61fb14990abe1254bd3dda5fae" args="(const mat &dt) const " --> |
---|
98 | vec </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#0e8ebe61fb14990abe1254bd3dda5fae">logpred_m</a> (const mat &dt) const </td></tr> |
---|
99 | |
---|
100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix version of logpred. <br></td></tr> |
---|
101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="710e7d69c0d8791fb41a7cd4683cca2c"></a><!-- doxytag: member="bdm::Kalman::predictor" ref="710e7d69c0d8791fb41a7cd4683cca2c" args="(const RV &rv) const " --> |
---|
102 | virtual <a class="el" href="classbdm_1_1epdf.html">epdf</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#710e7d69c0d8791fb41a7cd4683cca2c">predictor</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &<a class="el" href="classbdm_1_1BM.html#18d6db4af8ee42077741d9e3618153ca">rv</a>) const </td></tr> |
---|
103 | |
---|
104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a predictive density (marginal density on data). <br></td></tr> |
---|
105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40a3c891996391e3135518053a917793"></a><!-- doxytag: member="bdm::Kalman::_rv" ref="40a3c891996391e3135518053a917793" args="() const " --> |
---|
106 | 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#40a3c891996391e3135518053a917793">_rv</a> () const </td></tr> |
---|
107 | |
---|
108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5be65d37dedfe33a3671e7065f523a70"></a><!-- doxytag: member="bdm::Kalman::_ll" ref="5be65d37dedfe33a3671e7065f523a70" args="() const " --> |
---|
110 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#5be65d37dedfe33a3671e7065f523a70">_ll</a> () const </td></tr> |
---|
111 | |
---|
112 | <tr><td class="mdescLeft"> </td><td class="mdescRight">access function <br></td></tr> |
---|
113 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="236b3abbcc93594fc97cd86d82c1a83f"></a><!-- doxytag: member="bdm::Kalman::set_evalll" ref="236b3abbcc93594fc97cd86d82c1a83f" args="(bool evl0)" --> |
---|
114 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#236b3abbcc93594fc97cd86d82c1a83f">set_evalll</a> (bool evl0)</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">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#3efb3098172f1f67564a312fe732473e">_copy_</a> (bool changerv=false)</td></tr> |
---|
118 | |
---|
119 | <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> |
---|
120 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3fe475a1e920b20b63bb342c0e1571f7"></a><!-- doxytag: member="bdm::Kalman::rvy" ref="3fe475a1e920b20b63bb342c0e1571f7" args="" --> |
---|
121 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#3fe475a1e920b20b63bb342c0e1571f7">rvy</a></td></tr> |
---|
122 | |
---|
123 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indetifier of output rv. <br></td></tr> |
---|
124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="149e27424fd1a7cc1c998ea088618a94"></a><!-- doxytag: member="bdm::Kalman::rvu" ref="149e27424fd1a7cc1c998ea088618a94" args="" --> |
---|
125 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#149e27424fd1a7cc1c998ea088618a94">rvu</a></td></tr> |
---|
126 | |
---|
127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Indetifier of exogeneous rv. <br></td></tr> |
---|
128 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ba7699cdb3b1382a54d3e28b9b7517fa"></a><!-- doxytag: member="bdm::Kalman::dimx" ref="ba7699cdb3b1382a54d3e28b9b7517fa" args="" --> |
---|
129 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#ba7699cdb3b1382a54d3e28b9b7517fa">dimx</a></td></tr> |
---|
130 | |
---|
131 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of rv.count() <br></td></tr> |
---|
132 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2c36ba01760bf207b985bf321b7817f"></a><!-- doxytag: member="bdm::Kalman::dimy" ref="d2c36ba01760bf207b985bf321b7817f" args="" --> |
---|
133 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#d2c36ba01760bf207b985bf321b7817f">dimy</a></td></tr> |
---|
134 | |
---|
135 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of rvy.count() <br></td></tr> |
---|
136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c5136ef617f6ac0e426bea222755d92b"></a><!-- doxytag: member="bdm::Kalman::dimu" ref="c5136ef617f6ac0e426bea222755d92b" args="" --> |
---|
137 | int </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#c5136ef617f6ac0e426bea222755d92b">dimu</a></td></tr> |
---|
138 | |
---|
139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of rvu.count() <br></td></tr> |
---|
140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a2072e2090c10fac74ad30a023a4ace"></a><!-- doxytag: member="bdm::Kalman::A" ref="0a2072e2090c10fac74ad30a023a4ace" args="" --> |
---|
141 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#0a2072e2090c10fac74ad30a023a4ace">A</a></td></tr> |
---|
142 | |
---|
143 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix A. <br></td></tr> |
---|
144 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5977b2c81857948a35105f0e7840203c"></a><!-- doxytag: member="bdm::Kalman::B" ref="5977b2c81857948a35105f0e7840203c" args="" --> |
---|
145 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#5977b2c81857948a35105f0e7840203c">B</a></td></tr> |
---|
146 | |
---|
147 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix B. <br></td></tr> |
---|
148 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="818eba63a23972786a4579ad30294177"></a><!-- doxytag: member="bdm::Kalman::C" ref="818eba63a23972786a4579ad30294177" args="" --> |
---|
149 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#818eba63a23972786a4579ad30294177">C</a></td></tr> |
---|
150 | |
---|
151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix C. <br></td></tr> |
---|
152 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b56ac423d0654b5755e4f852a870456"></a><!-- doxytag: member="bdm::Kalman::D" ref="7b56ac423d0654b5755e4f852a870456" args="" --> |
---|
153 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#7b56ac423d0654b5755e4f852a870456">D</a></td></tr> |
---|
154 | |
---|
155 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix D. <br></td></tr> |
---|
156 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="70f8bf19e81b532c60fd3a7a152425ee"></a><!-- doxytag: member="bdm::Kalman::Q" ref="70f8bf19e81b532c60fd3a7a152425ee" args="" --> |
---|
157 | sq_T </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#70f8bf19e81b532c60fd3a7a152425ee">Q</a></td></tr> |
---|
158 | |
---|
159 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix Q in square-root form. <br></td></tr> |
---|
160 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="475b088287cdfbba4dc60a3d027728b7"></a><!-- doxytag: member="bdm::Kalman::R" ref="475b088287cdfbba4dc60a3d027728b7" args="" --> |
---|
161 | sq_T </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#475b088287cdfbba4dc60a3d027728b7">R</a></td></tr> |
---|
162 | |
---|
163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Matrix R in square-root form. <br></td></tr> |
---|
164 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="383f329ff18bbe219254c8b3b916f40d"></a><!-- doxytag: member="bdm::Kalman::est" ref="383f329ff18bbe219254c8b3b916f40d" args="" --> |
---|
165 | <a class="el" href="classbdm_1_1enorm.html">enorm</a>< sq_T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#383f329ff18bbe219254c8b3b916f40d">est</a></td></tr> |
---|
166 | |
---|
167 | <tr><td class="mdescLeft"> </td><td class="mdescRight">posterior density on $x_t$ <br></td></tr> |
---|
168 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ba555c394c429f6831c9bbabfa2c944c"></a><!-- doxytag: member="bdm::Kalman::fy" ref="ba555c394c429f6831c9bbabfa2c944c" args="" --> |
---|
169 | <a class="el" href="classbdm_1_1enorm.html">enorm</a>< sq_T > </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#ba555c394c429f6831c9bbabfa2c944c">fy</a></td></tr> |
---|
170 | |
---|
171 | <tr><td class="mdescLeft"> </td><td class="mdescRight">preditive density on $y_t$ <br></td></tr> |
---|
172 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd69dfb802465f22dd84d73a180d5c92"></a><!-- doxytag: member="bdm::Kalman::_K" ref="bd69dfb802465f22dd84d73a180d5c92" args="" --> |
---|
173 | mat </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#bd69dfb802465f22dd84d73a180d5c92">_K</a></td></tr> |
---|
174 | |
---|
175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">placeholder for <a class="el" href="classbdm_1_1Kalman.html" title="Kalman filter with covariance matrices in square root form.">Kalman</a> gain <br></td></tr> |
---|
176 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c249d45258c8578b13858ad3e7b729b1"></a><!-- doxytag: member="bdm::Kalman::_yp" ref="c249d45258c8578b13858ad3e7b729b1" args="" --> |
---|
177 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#c249d45258c8578b13858ad3e7b729b1">_yp</a></td></tr> |
---|
178 | |
---|
179 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of fy.mu <br></td></tr> |
---|
180 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2dd268f2d7fbe6382cb8825a1114192a"></a><!-- doxytag: member="bdm::Kalman::_Ry" ref="2dd268f2d7fbe6382cb8825a1114192a" args="" --> |
---|
181 | sq_T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#2dd268f2d7fbe6382cb8825a1114192a">_Ry</a></td></tr> |
---|
182 | |
---|
183 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of fy.R <br></td></tr> |
---|
184 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fa172078091e45561343fa513dd573b0"></a><!-- doxytag: member="bdm::Kalman::_mu" ref="fa172078091e45561343fa513dd573b0" args="" --> |
---|
185 | vec & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#fa172078091e45561343fa513dd573b0">_mu</a></td></tr> |
---|
186 | |
---|
187 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of est.mu <br></td></tr> |
---|
188 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="00c27b0bf324f0018497921ca23c71ed"></a><!-- doxytag: member="bdm::Kalman::_P" ref="00c27b0bf324f0018497921ca23c71ed" args="" --> |
---|
189 | sq_T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1Kalman.html#00c27b0bf324f0018497921ca23c71ed">_P</a></td></tr> |
---|
190 | |
---|
191 | <tr><td class="mdescLeft"> </td><td class="mdescRight">cache of est.R <br></td></tr> |
---|
192 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18d6db4af8ee42077741d9e3618153ca"></a><!-- doxytag: member="bdm::Kalman::rv" ref="18d6db4af8ee42077741d9e3618153ca" args="" --> |
---|
193 | <a class="el" href="classbdm_1_1RV.html">RV</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#18d6db4af8ee42077741d9e3618153ca">rv</a></td></tr> |
---|
194 | |
---|
195 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Random variable of the posterior. <br></td></tr> |
---|
196 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4064b6559d962633e4372b12f4cd204a"></a><!-- doxytag: member="bdm::Kalman::ll" ref="4064b6559d962633e4372b12f4cd204a" args="" --> |
---|
197 | double </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#4064b6559d962633e4372b12f4cd204a">ll</a></td></tr> |
---|
198 | |
---|
199 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Logarithm of marginalized data likelihood. <br></td></tr> |
---|
200 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="faff0ad12556fe7dc0e2807d4fd938ee"></a><!-- doxytag: member="bdm::Kalman::evalll" ref="faff0ad12556fe7dc0e2807d4fd938ee" args="" --> |
---|
201 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1BM.html#faff0ad12556fe7dc0e2807d4fd938ee">evalll</a></td></tr> |
---|
202 | |
---|
203 | <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 computational time. <br></td></tr> |
---|
204 | </table> |
---|
205 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
206 | <h3>template<class sq_T><br> |
---|
207 | class bdm::Kalman< sq_T ></h3> |
---|
208 | |
---|
209 | <a class="el" href="classbdm_1_1Kalman.html" title="Kalman filter with covariance matrices in square root form.">Kalman</a> filter with covariance matrices in square root form. |
---|
210 | <p> |
---|
211 | Parameter evolution model:<p class="formulaDsp"> |
---|
212 | <img class="formulaDsp" alt="\[ x_t = A x_{t-1} + B u_t + Q^{1/2} e_t \]" src="form_6.png"> |
---|
213 | <p> |
---|
214 | Observation model: <p class="formulaDsp"> |
---|
215 | <img class="formulaDsp" alt="\[ y_t = C x_{t-1} + C u_t + Q^{1/2} w_t. \]" src="form_7.png"> |
---|
216 | <p> |
---|
217 | Where $e_t$ and $w_t$ are independent vectors Normal(0,1)-distributed disturbances. <hr><h2>Member Function Documentation</h2> |
---|
218 | <a class="anchor" name="50257e0c1e5b5c73153ea6e716ad8ae0"></a><!-- doxytag: member="bdm::Kalman::logpred" ref="50257e0c1e5b5c73153ea6e716ad8ae0" args="(const vec &dt) const " --> |
---|
219 | <div class="memitem"> |
---|
220 | <div class="memproto"> |
---|
221 | <table class="memname"> |
---|
222 | <tr> |
---|
223 | <td class="memname">virtual double bdm::BM::logpred </td> |
---|
224 | <td>(</td> |
---|
225 | <td class="paramtype">const vec & </td> |
---|
226 | <td class="paramname"> <em>dt</em> </td> |
---|
227 | <td> ) </td> |
---|
228 | <td> const<code> [inline, virtual, inherited]</code></td> |
---|
229 | </tr> |
---|
230 | </table> |
---|
231 | </div> |
---|
232 | <div class="memdoc"> |
---|
233 | |
---|
234 | <p> |
---|
235 | Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out. |
---|
236 | <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> |
---|
237 | |
---|
238 | <p>Referenced by <a class="el" href="libBM_8h-source.html#l00528">bdm::BM::logpred_m()</a>.</p> |
---|
239 | |
---|
240 | </div> |
---|
241 | </div><p> |
---|
242 | <a class="anchor" name="3efb3098172f1f67564a312fe732473e"></a><!-- doxytag: member="bdm::Kalman::_copy_" ref="3efb3098172f1f67564a312fe732473e" args="(bool changerv=false)" --> |
---|
243 | <div class="memitem"> |
---|
244 | <div class="memproto"> |
---|
245 | <table class="memname"> |
---|
246 | <tr> |
---|
247 | <td class="memname">virtual <a class="el" href="classbdm_1_1BM.html">BM</a>* bdm::BM::_copy_ </td> |
---|
248 | <td>(</td> |
---|
249 | <td class="paramtype">bool </td> |
---|
250 | <td class="paramname"> <em>changerv</em> = <code>false</code> </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 | Copy function required in vectors, Arrays of <a class="el" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a> etc. Have to be DELETED manually! Prototype: BM* <a class="el" href="classbdm_1_1BM.html#3efb3098172f1f67564a312fe732473e">_copy_()</a>{<a class="el" href="classbdm_1_1BM.html" title="Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities.">BM</a> Tmp*=new Tmp(this*); return Tmp; } |
---|
260 | <p>Reimplemented in <a class="el" href="classbdm_1_1ARX.html#20ff2de8d862f28de7da83444d65bcdb">bdm::ARX</a>, and <a class="el" href="classbdm_1_1BMEF.html#5912dbcf28ae711e30b08c2fa766a3e6">bdm::BMEF</a>.</p> |
---|
261 | |
---|
262 | </div> |
---|
263 | </div><p> |
---|
264 | <hr>The documentation for this class was generated from the following file:<ul> |
---|
265 | <li><a class="el" href="libKF_8h-source.html">libKF.h</a></ul> |
---|
266 | </div> |
---|
267 | <hr size="1"><address style="text-align: right;"><small>Generated on Fri Feb 6 19:50:03 2009 for mixpp by |
---|
268 | <a href="http://www.doxygen.org/index.html"> |
---|
269 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> |
---|
270 | </body> |
---|
271 | </html> |
---|