root/doc/latex/classKFcondQR.tex @ 172

Revision 172, 13.1 kB (checked in by smidl, 16 years ago)

Latex doc

  • Property svn:eol-style set to native
RevLine 
[172]1\hypertarget{classKFcondQR}{
[30]2\section{KFcondQR Class Reference}
3\label{classKFcondQR}\index{KFcondQR@{KFcondQR}}
[172]4}
5\hyperlink{classKalman}{Kalman} Filter with conditional diagonal matrices R and Q. 
[30]6
7
8{\tt \#include $<$libKF.h$>$}
9
10Inheritance diagram for KFcondQR:\nopagebreak
11\begin{figure}[H]
12\begin{center}
13\leavevmode
[91]14\includegraphics[width=102pt]{classKFcondQR__inherit__graph}
[30]15\end{center}
16\end{figure}
17Collaboration diagram for KFcondQR:\nopagebreak
18\begin{figure}[H]
19\begin{center}
20\leavevmode
[33]21\includegraphics[width=400pt]{classKFcondQR__coll__graph}
[30]22\end{center}
23\end{figure}
24\subsection*{Public Member Functions}
25\begin{CompactItemize}
26\item 
[172]27\hypertarget{classKFcondQR_3f3968f92c7bbe4b0902d5e14ecc1cb4}{
28\hyperlink{classKFcondQR_3f3968f92c7bbe4b0902d5e14ecc1cb4}{KFcondQR} (\hyperlink{classRV}{RV} rvx, \hyperlink{classRV}{RV} \hyperlink{classKalman_7501230c2fafa3655887d2da23b3184c}{rvy}, \hyperlink{classRV}{RV} \hyperlink{classKalman_44a16ffd5ac1e6e39bae34fea9e1e498}{rvu}, \hyperlink{classRV}{RV} rvRQ)}
29\label{classKFcondQR_3f3968f92c7bbe4b0902d5e14ecc1cb4}
[30]30
[33]31\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
[172]32\hypertarget{classKFcondQR_c9ecf292a85327aa6309c9fd70ceb606}{
33void \hyperlink{classKFcondQR_c9ecf292a85327aa6309c9fd70ceb606}{condition} (const vec \&RQ)}
34\label{classKFcondQR_c9ecf292a85327aa6309c9fd70ceb606}
[30]35
36\begin{CompactList}\small\item\em Substitute {\tt val} for {\tt rvc}. \item\end{CompactList}\item 
[172]37\hypertarget{classKalman_239b28a0380946f5749b2f8d2807f93a}{
38void \hyperlink{classKalman_239b28a0380946f5749b2f8d2807f93a}{set\_\-parameters} (const mat \&A0, const mat \&B0, const mat \&C0, const mat \&D0, const \hyperlink{classldmat}{ldmat} \&R0, const \hyperlink{classldmat}{ldmat} \&Q0)}
39\label{classKalman_239b28a0380946f5749b2f8d2807f93a}
[30]40
41\begin{CompactList}\small\item\em Set parameters with check of relevance. \item\end{CompactList}\item 
[172]42\hypertarget{classKalman_80bcf29466d9a9dd2b8f74699807d0c0}{
43void \hyperlink{classKalman_80bcf29466d9a9dd2b8f74699807d0c0}{set\_\-est} (const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&P0)}
44\label{classKalman_80bcf29466d9a9dd2b8f74699807d0c0}
[30]45
46\begin{CompactList}\small\item\em Set estimate values, used e.g. in initialization. \item\end{CompactList}\item 
[172]47\hypertarget{classKalman_7750ffd73f261828a32c18aaeb65c75c}{
48void \hyperlink{classKalman_7750ffd73f261828a32c18aaeb65c75c}{bayes} (const vec \&dt)}
49\label{classKalman_7750ffd73f261828a32c18aaeb65c75c}
[30]50
[172]51\begin{CompactList}\small\item\em Here dt = \mbox{[}yt;ut\mbox{]} of appropriate dimensions. \item\end{CompactList}\item 
52\hypertarget{classKalman_67cccaf1c4dcdcd1df110e15ef326bfe}{
53const \hyperlink{classepdf}{epdf} \& \hyperlink{classKalman_67cccaf1c4dcdcd1df110e15ef326bfe}{\_\-epdf} () const }
54\label{classKalman_67cccaf1c4dcdcd1df110e15ef326bfe}
[30]55
[172]56\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
57\hypertarget{classKalman_980fcd41c6c548c5da7b8b67c8e6da79}{
58mat \& \hyperlink{classKalman_980fcd41c6c548c5da7b8b67c8e6da79}{\_\-\_\-K} ()}
59\label{classKalman_980fcd41c6c548c5da7b8b67c8e6da79}
[30]60
[33]61\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
[172]62\hypertarget{classKalman_ac9540f3850b74d89a5fe4db6fc358ce}{
63vec \hyperlink{classKalman_ac9540f3850b74d89a5fe4db6fc358ce}{\_\-dP} ()}
64\label{classKalman_ac9540f3850b74d89a5fe4db6fc358ce}
[79]65
66\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
[172]67\hypertarget{classBM_0186270f75189677f390fe088a9947e9}{
68virtual void \hyperlink{classBM_0186270f75189677f390fe088a9947e9}{bayesB} (const mat \&Dt)}
69\label{classBM_0186270f75189677f390fe088a9947e9}
[79]70
[172]71\begin{CompactList}\small\item\em Batch Bayes rule (columns of Dt are observations). \item\end{CompactList}\item 
72virtual double \hyperlink{classBM_8a8ce6df431689964c41cc6c849cfd06}{logpred} (const vec \&dt) const
73\item 
74\hypertarget{classBM_126bd2595c48e311fc2a7ab72876092a}{
75const \hyperlink{classRV}{RV} \& \hyperlink{classBM_126bd2595c48e311fc2a7ab72876092a}{\_\-rv} () const }
76\label{classBM_126bd2595c48e311fc2a7ab72876092a}
77
[79]78\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
[172]79\hypertarget{classBM_87f4a547d2c29180be88175e5eab9c88}{
80double \hyperlink{classBM_87f4a547d2c29180be88175e5eab9c88}{\_\-ll} () const }
81\label{classBM_87f4a547d2c29180be88175e5eab9c88}
[33]82
83\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
[172]84\hypertarget{classBM_1ffa9f23669aabecc3760c06c6987522}{
85void \hyperlink{classBM_1ffa9f23669aabecc3760c06c6987522}{set\_\-evalll} (bool evl0)}
86\label{classBM_1ffa9f23669aabecc3760c06c6987522}
[33]87
88\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
[172]89virtual \hyperlink{classBM}{BM} $\ast$ \hyperlink{classBM_eb58c81d6a7b75b05fc6f276eed78887}{\_\-copy\_\-} (bool changerv=false)
90\item 
91\hypertarget{classBMcond_3fa60348b2da6b4208bb95b8d146900a}{
92const \hyperlink{classRV}{RV} \& \hyperlink{classBMcond_3fa60348b2da6b4208bb95b8d146900a}{\_\-rvc} () const }
93\label{classBMcond_3fa60348b2da6b4208bb95b8d146900a}
[33]94
95\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize}
[30]96\subsection*{Protected Attributes}
97\begin{CompactItemize}
98\item 
[172]99\hypertarget{classKalman_7501230c2fafa3655887d2da23b3184c}{
100\hyperlink{classRV}{RV} \hyperlink{classKalman_7501230c2fafa3655887d2da23b3184c}{rvy}}
101\label{classKalman_7501230c2fafa3655887d2da23b3184c}
[30]102
[33]103\begin{CompactList}\small\item\em Indetifier of output rv. \item\end{CompactList}\item 
[172]104\hypertarget{classKalman_44a16ffd5ac1e6e39bae34fea9e1e498}{
105\hyperlink{classRV}{RV} \hyperlink{classKalman_44a16ffd5ac1e6e39bae34fea9e1e498}{rvu}}
106\label{classKalman_44a16ffd5ac1e6e39bae34fea9e1e498}
[30]107
[33]108\begin{CompactList}\small\item\em Indetifier of exogeneous rv. \item\end{CompactList}\item 
[172]109\hypertarget{classKalman_39c8c403b46fa3b8c7da77cb2e3729eb}{
110int \hyperlink{classKalman_39c8c403b46fa3b8c7da77cb2e3729eb}{dimx}}
111\label{classKalman_39c8c403b46fa3b8c7da77cb2e3729eb}
[30]112
[33]113\begin{CompactList}\small\item\em cache of rv.count() \item\end{CompactList}\item 
[172]114\hypertarget{classKalman_ba17b956df1e38b31fbbc299c8213b6a}{
115int \hyperlink{classKalman_ba17b956df1e38b31fbbc299c8213b6a}{dimy}}
116\label{classKalman_ba17b956df1e38b31fbbc299c8213b6a}
[30]117
[33]118\begin{CompactList}\small\item\em cache of rvy.count() \item\end{CompactList}\item 
[172]119\hypertarget{classKalman_b0153795a1444b6968a86409c778d9ce}{
120int \hyperlink{classKalman_b0153795a1444b6968a86409c778d9ce}{dimu}}
121\label{classKalman_b0153795a1444b6968a86409c778d9ce}
[30]122
[33]123\begin{CompactList}\small\item\em cache of rvu.count() \item\end{CompactList}\item 
[172]124\hypertarget{classKalman_5e02efe86ee91e9c74b93b425fe060b9}{
125mat \hyperlink{classKalman_5e02efe86ee91e9c74b93b425fe060b9}{A}}
126\label{classKalman_5e02efe86ee91e9c74b93b425fe060b9}
[30]127
[33]128\begin{CompactList}\small\item\em Matrix A. \item\end{CompactList}\item 
[172]129\hypertarget{classKalman_dc87704284a6c0bca13bf51f4345a50a}{
130mat \hyperlink{classKalman_dc87704284a6c0bca13bf51f4345a50a}{B}}
131\label{classKalman_dc87704284a6c0bca13bf51f4345a50a}
[30]132
[33]133\begin{CompactList}\small\item\em Matrix B. \item\end{CompactList}\item 
[172]134\hypertarget{classKalman_86a805cd6515872d1132ad0d6eb5dc13}{
135mat \hyperlink{classKalman_86a805cd6515872d1132ad0d6eb5dc13}{C}}
136\label{classKalman_86a805cd6515872d1132ad0d6eb5dc13}
[30]137
[33]138\begin{CompactList}\small\item\em Matrix C. \item\end{CompactList}\item 
[172]139\hypertarget{classKalman_d69f774ba3335c970c1c5b1d182f4dd1}{
140mat \hyperlink{classKalman_d69f774ba3335c970c1c5b1d182f4dd1}{D}}
141\label{classKalman_d69f774ba3335c970c1c5b1d182f4dd1}
[30]142
[33]143\begin{CompactList}\small\item\em Matrix D. \item\end{CompactList}\item 
[172]144\hypertarget{classKalman_9b69015c800eb93f3ee49da23a6f55d9}{
145\hyperlink{classldmat}{ldmat} \hyperlink{classKalman_9b69015c800eb93f3ee49da23a6f55d9}{Q}}
146\label{classKalman_9b69015c800eb93f3ee49da23a6f55d9}
[30]147
[33]148\begin{CompactList}\small\item\em Matrix Q in square-root form. \item\end{CompactList}\item 
[172]149\hypertarget{classKalman_11d171dc0e0ab111c56a70f98b97b3ec}{
150\hyperlink{classldmat}{ldmat} \hyperlink{classKalman_11d171dc0e0ab111c56a70f98b97b3ec}{R}}
151\label{classKalman_11d171dc0e0ab111c56a70f98b97b3ec}
[30]152
[33]153\begin{CompactList}\small\item\em Matrix R in square-root form. \item\end{CompactList}\item 
[172]154\hypertarget{classKalman_5568c74bac67ae6d3b1061dba60c9424}{
155\hyperlink{classenorm}{enorm}$<$ \hyperlink{classldmat}{ldmat} $>$ \hyperlink{classKalman_5568c74bac67ae6d3b1061dba60c9424}{est}}
156\label{classKalman_5568c74bac67ae6d3b1061dba60c9424}
[30]157
158\begin{CompactList}\small\item\em posterior density on \$x\_\-t\$ \item\end{CompactList}\item 
[172]159\hypertarget{classKalman_e580ab06483952bd03f2e651763e184f}{
160\hyperlink{classenorm}{enorm}$<$ \hyperlink{classldmat}{ldmat} $>$ \hyperlink{classKalman_e580ab06483952bd03f2e651763e184f}{fy}}
161\label{classKalman_e580ab06483952bd03f2e651763e184f}
[30]162
163\begin{CompactList}\small\item\em preditive density on \$y\_\-t\$ \item\end{CompactList}\item 
[172]164\hypertarget{classKalman_d422f51467c7a06174af2476d2826132}{
165mat \hyperlink{classKalman_d422f51467c7a06174af2476d2826132}{\_\-K}}
166\label{classKalman_d422f51467c7a06174af2476d2826132}
[30]167
[172]168\begin{CompactList}\small\item\em placeholder for \hyperlink{classKalman}{Kalman} gain \item\end{CompactList}\item 
169\hypertarget{classKalman_764bbc95238eda11fc81c5ebd0b1dcfd}{
170vec \& \hyperlink{classKalman_764bbc95238eda11fc81c5ebd0b1dcfd}{\_\-yp}}
171\label{classKalman_764bbc95238eda11fc81c5ebd0b1dcfd}
[30]172
[33]173\begin{CompactList}\small\item\em cache of fy.mu \item\end{CompactList}\item 
[172]174\hypertarget{classKalman_45c9f928d2d62e0c884900fb3380f904}{
175\hyperlink{classldmat}{ldmat} \& \hyperlink{classKalman_45c9f928d2d62e0c884900fb3380f904}{\_\-Ry}}
176\label{classKalman_45c9f928d2d62e0c884900fb3380f904}
[30]177
[33]178\begin{CompactList}\small\item\em cache of fy.R \item\end{CompactList}\item 
[172]179\hypertarget{classKalman_fe803a81d2d847b0b1db3c6b29c18061}{
180vec \& \hyperlink{classKalman_fe803a81d2d847b0b1db3c6b29c18061}{\_\-mu}}
181\label{classKalman_fe803a81d2d847b0b1db3c6b29c18061}
[30]182
[33]183\begin{CompactList}\small\item\em cache of est.mu \item\end{CompactList}\item 
[172]184\hypertarget{classKalman_9fb808cc94a4c2652e1fb93be9bb7dcf}{
185\hyperlink{classldmat}{ldmat} \& \hyperlink{classKalman_9fb808cc94a4c2652e1fb93be9bb7dcf}{\_\-P}}
186\label{classKalman_9fb808cc94a4c2652e1fb93be9bb7dcf}
[30]187
[33]188\begin{CompactList}\small\item\em cache of est.R \item\end{CompactList}\item 
[172]189\hypertarget{classBM_af00f0612fabe66241dd507188cdbf88}{
190\hyperlink{classRV}{RV} \hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv}}
191\label{classBM_af00f0612fabe66241dd507188cdbf88}
[30]192
193\begin{CompactList}\small\item\em Random variable of the posterior. \item\end{CompactList}\item 
[172]194\hypertarget{classBM_5623fef6572a08c2b53b8c87b82dc979}{
195double \hyperlink{classBM_5623fef6572a08c2b53b8c87b82dc979}{ll}}
196\label{classBM_5623fef6572a08c2b53b8c87b82dc979}
[30]197
198\begin{CompactList}\small\item\em Logarithm of marginalized data likelihood. \item\end{CompactList}\item 
[172]199\hypertarget{classBM_bf6fb59b30141074f8ee1e2f43d03129}{
200bool \hyperlink{classBM_bf6fb59b30141074f8ee1e2f43d03129}{evalll}}
201\label{classBM_bf6fb59b30141074f8ee1e2f43d03129}
[30]202
[172]203\begin{CompactList}\small\item\em If true, the filter will compute likelihood of the data record and store it in {\tt ll} . Set to false if you want to save computational time. \item\end{CompactList}\item 
204\hypertarget{classBMcond_9ba793c8ec453f04d372d17195ed8dec}{
205\hyperlink{classRV}{RV} \hyperlink{classBMcond_9ba793c8ec453f04d372d17195ed8dec}{rvc}}
206\label{classBMcond_9ba793c8ec453f04d372d17195ed8dec}
[30]207
[33]208\begin{CompactList}\small\item\em Identificator of the conditioning variable. \item\end{CompactList}\end{CompactItemize}
[30]209
210
211\subsection{Detailed Description}
[172]212\hyperlink{classKalman}{Kalman} Filter with conditional diagonal matrices R and Q.
[30]213
[172]214\subsection{Member Function Documentation}
215\hypertarget{classBM_8a8ce6df431689964c41cc6c849cfd06}{
216\index{KFcondQR@{KFcondQR}!logpred@{logpred}}
217\index{logpred@{logpred}!KFcondQR@{KFcondQR}}
218\subsubsection[logpred]{\setlength{\rightskip}{0pt plus 5cm}virtual double BM::logpred (const vec \& {\em dt}) const\hspace{0.3cm}{\tt  \mbox{[}inline, virtual, inherited\mbox{]}}}}
219\label{classBM_8a8ce6df431689964c41cc6c849cfd06}
220
221
222Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out.
223
224Reimplemented in \hyperlink{classARX_e7f9e7823aec9bf7ddc3b42d9b3304c4}{ARX}, \hyperlink{classMixEF_424ca64f36d4e41de7a7e7ae921d35ea}{MixEF}, and \hyperlink{classmultiBM_13e26a61757278981fd8cac9a7ef91eb}{multiBM}.\hypertarget{classBM_eb58c81d6a7b75b05fc6f276eed78887}{
225\index{KFcondQR@{KFcondQR}!\_\-copy\_\-@{\_\-copy\_\-}}
226\index{\_\-copy\_\-@{\_\-copy\_\-}!KFcondQR@{KFcondQR}}
227\subsubsection[\_\-copy\_\-]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf BM}$\ast$ BM::\_\-copy\_\- (bool {\em changerv} = {\tt false})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual, inherited\mbox{]}}}}
228\label{classBM_eb58c81d6a7b75b05fc6f276eed78887}
229
230
231Copy function required in vectors, Arrays of \hyperlink{classBM}{BM} etc. Have to be DELETED manually! Prototype: BM$\ast$ \hyperlink{classBM_eb58c81d6a7b75b05fc6f276eed78887}{\_\-copy\_\-()}\{\hyperlink{classBM}{BM} Tmp$\ast$=new Tmp(this$\ast$); return Tmp; \} 
232
233Reimplemented in \hyperlink{classARX_d2751057811c6fb8f4ff86e1648bcddc}{ARX}.
234
235Referenced by MixEF::MixEF().
236
[30]237The documentation for this class was generated from the following files:\begin{CompactItemize}
238\item 
[172]239work/git/mixpp/bdm/estim/\hyperlink{libKF_8h}{libKF.h}\item 
[145]240work/git/mixpp/bdm/estim/libKF.cpp\end{CompactItemize}
Note: See TracBrowser for help on using the browser.