Show
Ignore:
Timestamp:
02/24/09 14:12:46 (16 years ago)
Author:
smidl
Message:

progress...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/latex/classEKF__unQ.tex

    r261 r280  
    33\label{classEKF__unQ}\index{EKF\_\-unQ@{EKF\_\-unQ}} 
    44} 
    5 Extended Kalman filter with unknown {\tt Q}.   
    6  
    7  
    8 Inheritance diagram for EKF\_\-unQ:\nopagebreak 
    9 \begin{figure}[H] 
     5Inheritance diagram for EKF\_\-unQ::\begin{figure}[H] 
    106\begin{center} 
    117\leavevmode 
    12 \includegraphics[height=400pt]{classEKF__unQ__inherit__graph} 
     8\includegraphics[height=3.80952cm]{classEKF__unQ} 
    139\end{center} 
    1410\end{figure} 
    15 Collaboration diagram for EKF\_\-unQ:\nopagebreak 
    16 \begin{figure}[H] 
    17 \begin{center} 
    18 \leavevmode 
    19 \includegraphics[width=400pt]{classEKF__unQ__coll__graph} 
    20 \end{center} 
    21 \end{figure} 
    22 \subsection*{Public Member Functions} 
    23 \begin{CompactItemize} 
    24 \item  
    25 \hypertarget{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244}{ 
    26 \hyperlink{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244}{EKF\_\-unQ} (\hyperlink{classbdm_1_1RV}{RV} rx, \hyperlink{classbdm_1_1RV}{RV} ry, \hyperlink{classbdm_1_1RV}{RV} ru, \hyperlink{classbdm_1_1RV}{RV} rQ)} 
    27 \label{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244} 
     11 
     12 
     13\subsection{Detailed Description} 
     14Extended Kalman filter with unknown {\tt Q}. \subsection*{Public Member Functions} 
     15\begin{CompactItemize} 
     16\item  
     17\hypertarget{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99}{ 
     18void \hyperlink{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99}{condition} (const vec \&Q0)} 
     19\label{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99} 
    2820 
    2921\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item  
     
    3224\label{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99} 
    3325 
    34 \begin{CompactList}\small\item\em Substitute {\tt val} for {\tt rvc}. \item\end{CompactList}\item  
    35 \hypertarget{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244}{ 
    36 \hyperlink{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244}{EKF\_\-unQ} (\hyperlink{classbdm_1_1RV}{RV} rx, \hyperlink{classbdm_1_1RV}{RV} ry, \hyperlink{classbdm_1_1RV}{RV} ru, \hyperlink{classbdm_1_1RV}{RV} rQ)} 
    37 \label{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244} 
    38  
    3926\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item  
     27\hypertarget{classEKF__unQ_44b49058c8eb27c7910ae31a1dfd3d21}{ 
     28void \textbf{bayes} (const vec dt)} 
     29\label{classEKF__unQ_44b49058c8eb27c7910ae31a1dfd3d21} 
     30 
     31\item  
    4032\hypertarget{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99}{ 
    4133void \hyperlink{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99}{condition} (const vec \&Q0)} 
    4234\label{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99} 
    4335 
    44 \begin{CompactList}\small\item\em Substitute {\tt val} for {\tt rvc}. \item\end{CompactList}\item  
    45 \hypertarget{classEKF__unQ_44b49058c8eb27c7910ae31a1dfd3d21}{ 
    46 void \textbf{bayes} (const vec dt)} 
    47 \label{classEKF__unQ_44b49058c8eb27c7910ae31a1dfd3d21} 
    48  
    49 \item  
    50 \hypertarget{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244}{ 
    51 \hyperlink{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244}{EKF\_\-unQ} (\hyperlink{classbdm_1_1RV}{RV} rx, \hyperlink{classbdm_1_1RV}{RV} ry, \hyperlink{classbdm_1_1RV}{RV} ru, \hyperlink{classbdm_1_1RV}{RV} rQ)} 
    52 \label{classEKF__unQ_159eaaa5a05c5ceecdaa20956a307244} 
    53  
    5436\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item  
    55 \hypertarget{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99}{ 
    56 void \hyperlink{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99}{condition} (const vec \&Q0)} 
    57 \label{classEKF__unQ_cd06a8c662da244cf61bb5bd39688c99} 
    58  
    59 \begin{CompactList}\small\item\em Substitute {\tt val} for {\tt rvc}. \item\end{CompactList}\item  
    6037\hypertarget{classbdm_1_1EKFCh_50f9fbffad721f35e5ccb75d0f6b842a}{ 
    6138void \hyperlink{classbdm_1_1EKFCh_50f9fbffad721f35e5ccb75d0f6b842a}{set\_\-parameters} (diffbifn $\ast$\hyperlink{classbdm_1_1EKFCh_e1e895f994398a55bc425551fc275ba3}{pfxu}, diffbifn $\ast$\hyperlink{classbdm_1_1EKFCh_6b34c69641826322467b704e8252f317}{phxu}, const \hyperlink{classchmat}{chmat} Q0, const \hyperlink{classchmat}{chmat} R0)} 
     
    6340 
    6441\begin{CompactList}\small\item\em Set nonlinear functions for mean values and covariance matrices. \item\end{CompactList}\item  
    65 \hypertarget{classbdm_1_1KalmanCh_ab3a87ba1831e53f193a9dfbaf56a879}{ 
    66 void \hyperlink{classbdm_1_1KalmanCh_ab3a87ba1831e53f193a9dfbaf56a879}{set\_\-parameters} (const mat \&A0, const mat \&B0, const mat \&C0, const mat \&D0, const \hyperlink{classchmat}{chmat} \&R0, const \hyperlink{classchmat}{chmat} \&Q0)} 
    67 \label{classbdm_1_1KalmanCh_ab3a87ba1831e53f193a9dfbaf56a879} 
     42\hypertarget{classbdm_1_1KalmanCh_20a4d4c664e8ac8a3f1bb7b0d11c6d87}{ 
     43void \hyperlink{classbdm_1_1KalmanCh_20a4d4c664e8ac8a3f1bb7b0d11c6d87}{set\_\-parameters} (const mat \&A0, const mat \&B0, const mat \&C0, const mat \&D0, const \hyperlink{classchmat}{chmat} \&Q0, const \hyperlink{classchmat}{chmat} \&R0)} 
     44\label{classbdm_1_1KalmanCh_20a4d4c664e8ac8a3f1bb7b0d11c6d87} 
    6845 
    6946\begin{CompactList}\small\item\em Set parameters with check of relevance. \item\end{CompactList}\item  
     
    7350 
    7451\begin{CompactList}\small\item\em Here dt = \mbox{[}yt;ut\mbox{]} of appropriate dimensions. \item\end{CompactList}\item  
    75 \hypertarget{classbdm_1_1KalmanCh_f559387dd38bd6002be490cc62987290}{ 
    76 void \hyperlink{classbdm_1_1KalmanCh_f559387dd38bd6002be490cc62987290}{set\_\-est} (const vec \&mu0, const \hyperlink{classchmat}{chmat} \&P0)} 
    77 \label{classbdm_1_1KalmanCh_f559387dd38bd6002be490cc62987290} 
     52\hypertarget{classbdm_1_1KalmanCh_6e169272657ed101f3d128b49c59b890}{ 
     53void \textbf{set\_\-statistics} (const vec \&mu0, const \hyperlink{classchmat}{chmat} \&P0)} 
     54\label{classbdm_1_1KalmanCh_6e169272657ed101f3d128b49c59b890} 
     55 
     56\item  
     57\hypertarget{classbdm_1_1Kalman_9264fc6b173ecb803d2684b883f32c68}{ 
     58void \hyperlink{classbdm_1_1Kalman_9264fc6b173ecb803d2684b883f32c68}{set\_\-est} (const vec \&mu0, const \hyperlink{classchmat}{chmat} \&P0)} 
     59\label{classbdm_1_1Kalman_9264fc6b173ecb803d2684b883f32c68} 
    7860 
    7961\begin{CompactList}\small\item\em Set estimate values, used e.g. in initialization. \item\end{CompactList}\item  
    80 \hypertarget{classbdm_1_1Kalman_93b5936ba397f13c05f52885c545f42d}{ 
    81 const epdf \& \hyperlink{classbdm_1_1Kalman_93b5936ba397f13c05f52885c545f42d}{\_\-epdf} () const } 
    82 \label{classbdm_1_1Kalman_93b5936ba397f13c05f52885c545f42d} 
     62\hypertarget{classbdm_1_1Kalman_f75e487ff6c129d7012d702030f8c890}{ 
     63const epdf \& \hyperlink{classbdm_1_1Kalman_f75e487ff6c129d7012d702030f8c890}{posterior} () const } 
     64\label{classbdm_1_1Kalman_f75e487ff6c129d7012d702030f8c890} 
    8365 
    8466\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
    8567\hypertarget{classbdm_1_1Kalman_c34989b1e53c7d4ecdaea63a95ddbd77}{ 
    86 const enorm$<$ \hyperlink{classchmat}{chmat} $>$ $\ast$ \hyperlink{classbdm_1_1Kalman_c34989b1e53c7d4ecdaea63a95ddbd77}{\_\-e} () const } 
     68const enorm$<$ \hyperlink{classchmat}{chmat} $>$ $\ast$ \textbf{\_\-e} () const } 
    8769\label{classbdm_1_1Kalman_c34989b1e53c7d4ecdaea63a95ddbd77} 
    8870 
    89 \begin{CompactList}\small\item\em Returns a pointer to the epdf representing posterior density on parameters. Use with care! \item\end{CompactList}\item  
     71\item  
    9072\hypertarget{classbdm_1_1Kalman_c788ec6e6c6f5f5861ae8a56d8ede277}{ 
    9173mat \& \hyperlink{classbdm_1_1Kalman_c788ec6e6c6f5f5861ae8a56d8ede277}{\_\-\_\-K} ()} 
     
    9880 
    9981\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
     82\hypertarget{classbdm_1_1BMcond_7506910f93250b44fea505ec4ffb19dc}{ 
     83const RV \& \hyperlink{classbdm_1_1BMcond_7506910f93250b44fea505ec4ffb19dc}{\_\-rvc} () const } 
     84\label{classbdm_1_1BMcond_7506910f93250b44fea505ec4ffb19dc} 
     85 
     86\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} 
     87\begin{Indent}{\bf Constructors}\par 
     88\begin{CompactItemize} 
     89\item  
     90virtual BM $\ast$ \hyperlink{classbdm_1_1BM_c0f027ff91d8459937c6f60ff8e553ff}{\_\-copy\_\-} () 
     91\end{CompactItemize} 
     92\end{Indent} 
     93\begin{Indent}{\bf Mathematical operations}\par 
     94\begin{CompactItemize} 
     95\item  
    10096\hypertarget{classbdm_1_1BM_1dee3fddaf021e62d925289660a707dc}{ 
    10197virtual void \hyperlink{classbdm_1_1BM_1dee3fddaf021e62d925289660a707dc}{bayesB} (const mat \&Dt)} 
     
    110106 
    111107\begin{CompactList}\small\item\em Matrix version of logpred. \item\end{CompactList}\item  
    112 \hypertarget{classbdm_1_1BM_710e7d69c0d8791fb41a7cd4683cca2c}{ 
    113 virtual epdf $\ast$ \hyperlink{classbdm_1_1BM_710e7d69c0d8791fb41a7cd4683cca2c}{predictor} (const RV \&\hyperlink{classbdm_1_1BM_18d6db4af8ee42077741d9e3618153ca}{rv}) const } 
    114 \label{classbdm_1_1BM_710e7d69c0d8791fb41a7cd4683cca2c} 
    115  
    116 \begin{CompactList}\small\item\em Constructs a predictive density (marginal density on data). \item\end{CompactList}\item  
    117 \hypertarget{classbdm_1_1BM_40a3c891996391e3135518053a917793}{ 
    118 const RV \& \hyperlink{classbdm_1_1BM_40a3c891996391e3135518053a917793}{\_\-rv} () const } 
    119 \label{classbdm_1_1BM_40a3c891996391e3135518053a917793} 
    120  
    121 \begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
     108\hypertarget{classbdm_1_1BM_688d7a2aced1e06aa1c468d73a9e5eba}{ 
     109virtual epdf $\ast$ \hyperlink{classbdm_1_1BM_688d7a2aced1e06aa1c468d73a9e5eba}{epredictor} () const } 
     110\label{classbdm_1_1BM_688d7a2aced1e06aa1c468d73a9e5eba} 
     111 
     112\begin{CompactList}\small\item\em Constructs a predictive density $ f(d_{t+1} |d_{t}, \ldots d_{0}) $. \item\end{CompactList}\item  
     113\hypertarget{classbdm_1_1BM_598b25e3f3d96a5bc00a5faeb5b3c912}{ 
     114virtual mpdf $\ast$ \hyperlink{classbdm_1_1BM_598b25e3f3d96a5bc00a5faeb5b3c912}{predictor} () const } 
     115\label{classbdm_1_1BM_598b25e3f3d96a5bc00a5faeb5b3c912} 
     116 
     117\begin{CompactList}\small\item\em Constructs a conditional density 1-step ahead predictor. \item\end{CompactList}\end{CompactItemize} 
     118\end{Indent} 
     119\begin{Indent}{\bf Access to attributes}\par 
     120\begin{CompactItemize} 
     121\item  
     122\hypertarget{classbdm_1_1BM_ff2d8755ba0b3def927d31305c03b09c}{ 
     123const RV \& \textbf{\_\-drv} () const } 
     124\label{classbdm_1_1BM_ff2d8755ba0b3def927d31305c03b09c} 
     125 
     126\item  
     127\hypertarget{classbdm_1_1BM_f135ae6dce7e9f30c9f88229c7930b96}{ 
     128void \textbf{set\_\-drv} (const RV \&rv)} 
     129\label{classbdm_1_1BM_f135ae6dce7e9f30c9f88229c7930b96} 
     130 
     131\item  
     132\hypertarget{classbdm_1_1BM_b38d92f17620813ad872d86e01a26e5e}{ 
     133void \textbf{set\_\-rv} (const RV \&rv)} 
     134\label{classbdm_1_1BM_b38d92f17620813ad872d86e01a26e5e} 
     135 
     136\item  
    122137\hypertarget{classbdm_1_1BM_5be65d37dedfe33a3671e7065f523a70}{ 
    123 double \hyperlink{classbdm_1_1BM_5be65d37dedfe33a3671e7065f523a70}{\_\-ll} () const } 
     138double \textbf{\_\-ll} () const } 
    124139\label{classbdm_1_1BM_5be65d37dedfe33a3671e7065f523a70} 
    125140 
    126 \begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
     141\item  
    127142\hypertarget{classbdm_1_1BM_236b3abbcc93594fc97cd86d82c1a83f}{ 
    128 void \hyperlink{classbdm_1_1BM_236b3abbcc93594fc97cd86d82c1a83f}{set\_\-evalll} (bool evl0)} 
     143void \textbf{set\_\-evalll} (bool evl0)} 
    129144\label{classbdm_1_1BM_236b3abbcc93594fc97cd86d82c1a83f} 
    130145 
    131 \begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
    132 virtual BM $\ast$ \hyperlink{classbdm_1_1BM_3efb3098172f1f67564a312fe732473e}{\_\-copy\_\-} (bool changerv=false) 
    133 \item  
    134 \hypertarget{classbdm_1_1BMcond_7506910f93250b44fea505ec4ffb19dc}{ 
    135 const RV \& \hyperlink{classbdm_1_1BMcond_7506910f93250b44fea505ec4ffb19dc}{\_\-rvc} () const } 
    136 \label{classbdm_1_1BMcond_7506910f93250b44fea505ec4ffb19dc} 
    137  
    138 \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} 
     146\end{CompactItemize} 
     147\end{Indent} 
    139148\subsection*{Protected Attributes} 
    140149\begin{CompactItemize} 
     
    250259 
    251260\begin{CompactList}\small\item\em cache of est.R \item\end{CompactList}\item  
    252 \hypertarget{classbdm_1_1BM_18d6db4af8ee42077741d9e3618153ca}{ 
    253 RV \hyperlink{classbdm_1_1BM_18d6db4af8ee42077741d9e3618153ca}{rv}} 
    254 \label{classbdm_1_1BM_18d6db4af8ee42077741d9e3618153ca} 
    255  
    256 \begin{CompactList}\small\item\em Random variable of the posterior. \item\end{CompactList}\item  
     261\hypertarget{classbdm_1_1BM_c400357e37d27a4834b2b1d9211009ed}{ 
     262RV \hyperlink{classbdm_1_1BM_c400357e37d27a4834b2b1d9211009ed}{drv}} 
     263\label{classbdm_1_1BM_c400357e37d27a4834b2b1d9211009ed} 
     264 
     265\begin{CompactList}\small\item\em Random variable of the data (optional). \item\end{CompactList}\item  
    257266\hypertarget{classbdm_1_1BM_4064b6559d962633e4372b12f4cd204a}{ 
    258267double \hyperlink{classbdm_1_1BM_4064b6559d962633e4372b12f4cd204a}{ll}} 
     
    265274 
    266275\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  
     276\hypertarget{classbdm_1_1BMcond_1164a90f782a2a323b1ee17242100b39}{ 
     277int \hyperlink{classbdm_1_1BMcond_1164a90f782a2a323b1ee17242100b39}{dimc}} 
     278\label{classbdm_1_1BMcond_1164a90f782a2a323b1ee17242100b39} 
     279 
     280\begin{CompactList}\small\item\em dimension of the conditioning variable \item\end{CompactList}\item  
    267281\hypertarget{classbdm_1_1BMcond_9a12750776d977408aada06a70093297}{ 
    268282RV \hyperlink{classbdm_1_1BMcond_9a12750776d977408aada06a70093297}{rvc}} 
     
    272286 
    273287 
    274 \subsection{Detailed Description} 
    275 Extended Kalman filter with unknown {\tt Q}.  
    276  
    277288\subsection{Member Function Documentation} 
    278 \hypertarget{classbdm_1_1BM_50257e0c1e5b5c73153ea6e716ad8ae0}{ 
     289\hypertarget{classbdm_1_1BM_c0f027ff91d8459937c6f60ff8e553ff}{ 
     290\index{EKF\_\-unQ@{EKF\_\-unQ}!\_\-copy\_\-@{\_\-copy\_\-}} 
     291\index{\_\-copy\_\-@{\_\-copy\_\-}!EKF_unQ@{EKF\_\-unQ}} 
     292\subsubsection[\_\-copy\_\-]{\setlength{\rightskip}{0pt plus 5cm}virtual BM$\ast$ bdm::BM::\_\-copy\_\- ()\hspace{0.3cm}{\tt  \mbox{[}inline, virtual, inherited\mbox{]}}}} 
     293\label{classbdm_1_1BM_c0f027ff91d8459937c6f60ff8e553ff} 
     294 
     295 
     296Copy function required in vectors, Arrays of \hyperlink{classbdm_1_1BM}{BM} etc. Have to be DELETED manually! Prototype:  
     297 
     298\begin{Code}\begin{verbatim} BM* _copy_(){return new BM(*this);}  
     299\end{verbatim} 
     300\end{Code} 
     301 
     302  
     303 
     304Reimplemented in \hyperlink{classbdm_1_1ARX_60c40b5c6abc4c7e464b4ccae64a5a61}{bdm::ARX}.\hypertarget{classbdm_1_1BM_50257e0c1e5b5c73153ea6e716ad8ae0}{ 
    279305\index{EKF\_\-unQ@{EKF\_\-unQ}!logpred@{logpred}} 
    280306\index{logpred@{logpred}!EKF_unQ@{EKF\_\-unQ}} 
     
    287313Reimplemented in \hyperlink{classbdm_1_1ARX_080a7e531e3aa06694112863b15bc6a4}{bdm::ARX}, \hyperlink{classbdm_1_1MixEF_da724da464a75e07521941e430929efa}{bdm::MixEF}, and \hyperlink{classbdm_1_1multiBM_e157b607c1e3fa91d42aeea44458e2bf}{bdm::multiBM}. 
    288314 
    289 Referenced by bdm::BM::logpred\_\-m().\hypertarget{classbdm_1_1BM_3efb3098172f1f67564a312fe732473e}{ 
    290 \index{EKF\_\-unQ@{EKF\_\-unQ}!\_\-copy\_\-@{\_\-copy\_\-}} 
    291 \index{\_\-copy\_\-@{\_\-copy\_\-}!EKF_unQ@{EKF\_\-unQ}} 
    292 \subsubsection[\_\-copy\_\-]{\setlength{\rightskip}{0pt plus 5cm}virtual BM$\ast$ bdm::BM::\_\-copy\_\- (bool {\em changerv} = {\tt false})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual, inherited\mbox{]}}}} 
    293 \label{classbdm_1_1BM_3efb3098172f1f67564a312fe732473e} 
    294  
    295  
    296 Copy function required in vectors, Arrays of \hyperlink{classbdm_1_1BM}{BM} etc. Have to be DELETED manually! Prototype: BM$\ast$ \hyperlink{classbdm_1_1BM_3efb3098172f1f67564a312fe732473e}{\_\-copy\_\-()}\{\hyperlink{classbdm_1_1BM}{BM} Tmp$\ast$=new Tmp(this$\ast$); return Tmp; \}  
    297  
    298 Reimplemented in \hyperlink{classbdm_1_1ARX_20ff2de8d862f28de7da83444d65bcdb}{bdm::ARX}, and \hyperlink{classbdm_1_1BMEF_5912dbcf28ae711e30b08c2fa766a3e6}{bdm::BMEF}. 
     315Referenced by bdm::BM::logpred\_\-m(). 
    299316 
    300317The documentation for this class was generated from the following files:\begin{CompactItemize}