Changeset 172 for doc/latex/classMPF.tex

Show
Ignore:
Timestamp:
09/24/08 13:31:03 (16 years ago)
Author:
smidl
Message:

Latex doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/latex/classMPF.tex

    r145 r172  
     1\hypertarget{classMPF}{ 
    12\section{MPF$<$ BM\_\-T $>$ Class Template Reference} 
    23\label{classMPF}\index{MPF@{MPF}} 
     4} 
    35Marginalized Particle filter.   
    46 
     
    2325\begin{CompactItemize} 
    2426\item  
    25 {\bf MPF} (const {\bf RV} \&rvlin, const {\bf RV} \&rvpf, {\bf mpdf} \&par0, {\bf mpdf} \&obs0, int {\bf n}, const BM\_\-T \&BMcond0)\label{classMPF_fc5e11e11eec3195e3c6503937bf02bd} 
     27\hypertarget{classMPF_fc5e11e11eec3195e3c6503937bf02bd}{ 
     28\hyperlink{classMPF_fc5e11e11eec3195e3c6503937bf02bd}{MPF} (const \hyperlink{classRV}{RV} \&rvlin, const \hyperlink{classRV}{RV} \&rvpf, \hyperlink{classmpdf}{mpdf} \&par0, \hyperlink{classmpdf}{mpdf} \&obs0, int \hyperlink{classPF_2c2f44ed7a4eaa42e07bdb58d503f280}{n}, const BM\_\-T \&BMcond0)} 
     29\label{classMPF_fc5e11e11eec3195e3c6503937bf02bd} 
    2630 
    2731\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item  
    28 void {\bf bayes} (const vec \&dt) 
     32void \hyperlink{classMPF_55daf8e4b6553dd9f47c692de7931623}{bayes} (const vec \&dt) 
    2933\begin{CompactList}\small\item\em Incremental Bayes rule. \item\end{CompactList}\item  
    30 {\bf epdf} \& {\bf \_\-epdf} ()\label{classMPF_549e08268a46a250f21a33d06f19276a} 
     34\hypertarget{classMPF_992e01bb8f06c814cda036796e4a55ae}{ 
     35const \hyperlink{classepdf}{epdf} \& \hyperlink{classMPF_992e01bb8f06c814cda036796e4a55ae}{\_\-epdf} () const } 
     36\label{classMPF_992e01bb8f06c814cda036796e4a55ae} 
    3137 
    32 \begin{CompactList}\small\item\em Returns a pointer to the \doxyref{epdf}{p.}{classepdf} representing posterior density on parameters. Use with care! \item\end{CompactList}\item  
    33 void {\bf set\_\-est} (const {\bf epdf} \&epdf0)\label{classMPF_7c66e1c1c0e45fc4ae765133cb3a1553} 
     38\begin{CompactList}\small\item\em Returns a pointer to the \hyperlink{classepdf}{epdf} representing posterior density on parameters. Use with care! \item\end{CompactList}\item  
     39\hypertarget{classMPF_7c66e1c1c0e45fc4ae765133cb3a1553}{ 
     40void \hyperlink{classMPF_7c66e1c1c0e45fc4ae765133cb3a1553}{set\_\-est} (const \hyperlink{classepdf}{epdf} \&epdf0)} 
     41\label{classMPF_7c66e1c1c0e45fc4ae765133cb3a1553} 
    3442 
    3543\begin{CompactList}\small\item\em Set postrior of {\tt rvc} to samples from epdf0. Statistics of Bms are not re-computed! Use only for initialization! \item\end{CompactList}\item  
    36 void {\bf bayes} (mat Dt)\label{classBM_87b07867fd4c133aa89a18543f68d9f9} 
     44\hypertarget{classBM_0186270f75189677f390fe088a9947e9}{ 
     45virtual void \hyperlink{classBM_0186270f75189677f390fe088a9947e9}{bayesB} (const mat \&Dt)} 
     46\label{classBM_0186270f75189677f390fe088a9947e9} 
    3747 
    3848\begin{CompactList}\small\item\em Batch Bayes rule (columns of Dt are observations). \item\end{CompactList}\item  
    39 const {\bf RV} \& {\bf \_\-rv} () const \label{classBM_126bd2595c48e311fc2a7ab72876092a} 
     49virtual double \hyperlink{classBM_8a8ce6df431689964c41cc6c849cfd06}{logpred} (const vec \&dt) const  
     50\item  
     51\hypertarget{classBM_126bd2595c48e311fc2a7ab72876092a}{ 
     52const \hyperlink{classRV}{RV} \& \hyperlink{classBM_126bd2595c48e311fc2a7ab72876092a}{\_\-rv} () const } 
     53\label{classBM_126bd2595c48e311fc2a7ab72876092a} 
    4054 
    4155\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
    42 double {\bf \_\-ll} () const \label{classBM_87f4a547d2c29180be88175e5eab9c88} 
     56\hypertarget{classBM_87f4a547d2c29180be88175e5eab9c88}{ 
     57double \hyperlink{classBM_87f4a547d2c29180be88175e5eab9c88}{\_\-ll} () const } 
     58\label{classBM_87f4a547d2c29180be88175e5eab9c88} 
    4359 
    44 \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} 
     60\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
     61\hypertarget{classBM_1ffa9f23669aabecc3760c06c6987522}{ 
     62void \hyperlink{classBM_1ffa9f23669aabecc3760c06c6987522}{set\_\-evalll} (bool evl0)} 
     63\label{classBM_1ffa9f23669aabecc3760c06c6987522} 
     64 
     65\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
     66virtual \hyperlink{classBM}{BM} $\ast$ \hyperlink{classBM_eb58c81d6a7b75b05fc6f276eed78887}{\_\-copy\_\-} (bool changerv=false) 
     67\end{CompactItemize} 
    4568\subsection*{Public Attributes} 
    4669\begin{CompactItemize} 
    4770\item  
    48 double \textbf{SSAT}\label{classMPF_65b869f3cde2e8d3cfcc2752d14d1ca6} 
     71\hypertarget{classMPF_65b869f3cde2e8d3cfcc2752d14d1ca6}{ 
     72double \textbf{SSAT}} 
     73\label{classMPF_65b869f3cde2e8d3cfcc2752d14d1ca6} 
    4974 
    5075\end{CompactItemize} 
     
    5277\begin{CompactItemize} 
    5378\item  
    54 int {\bf n}\label{classPF_2c2f44ed7a4eaa42e07bdb58d503f280} 
     79\hypertarget{classPF_2c2f44ed7a4eaa42e07bdb58d503f280}{ 
     80int \hyperlink{classPF_2c2f44ed7a4eaa42e07bdb58d503f280}{n}} 
     81\label{classPF_2c2f44ed7a4eaa42e07bdb58d503f280} 
    5582 
    5683\begin{CompactList}\small\item\em number of particles; \item\end{CompactList}\item  
    57 {\bf eEmp} {\bf est}\label{classPF_1a0a09e309da997f63ae8e30d1e9806b} 
     84\hypertarget{classPF_1a0a09e309da997f63ae8e30d1e9806b}{ 
     85\hyperlink{classeEmp}{eEmp} \hyperlink{classPF_1a0a09e309da997f63ae8e30d1e9806b}{est}} 
     86\label{classPF_1a0a09e309da997f63ae8e30d1e9806b} 
    5887 
    5988\begin{CompactList}\small\item\em posterior density \item\end{CompactList}\item  
    60 vec \& {\bf \_\-w}\label{classPF_5c87aba508df321ff26536ced64dbb3a} 
     89\hypertarget{classPF_5c87aba508df321ff26536ced64dbb3a}{ 
     90vec \& \hyperlink{classPF_5c87aba508df321ff26536ced64dbb3a}{\_\-w}} 
     91\label{classPF_5c87aba508df321ff26536ced64dbb3a} 
    6192 
    62 \begin{CompactList}\small\item\em pointer into {\tt \doxyref{eEmp}{p.}{classeEmp}} \item\end{CompactList}\item  
    63 Array$<$ vec $>$ \& {\bf \_\-samples}\label{classPF_cf7dad75e31215780a746c30e71ad9c5} 
     93\begin{CompactList}\small\item\em pointer into {\tt \hyperlink{classeEmp}{eEmp}} \item\end{CompactList}\item  
     94\hypertarget{classPF_cf7dad75e31215780a746c30e71ad9c5}{ 
     95Array$<$ vec $>$ \& \hyperlink{classPF_cf7dad75e31215780a746c30e71ad9c5}{\_\-samples}} 
     96\label{classPF_cf7dad75e31215780a746c30e71ad9c5} 
    6497 
    65 \begin{CompactList}\small\item\em pointer into {\tt \doxyref{eEmp}{p.}{classeEmp}} \item\end{CompactList}\item  
    66 {\bf mpdf} \& {\bf par}\label{classPF_d92ac103f88f8c21e197e90af5695a09} 
     98\begin{CompactList}\small\item\em pointer into {\tt \hyperlink{classeEmp}{eEmp}} \item\end{CompactList}\item  
     99\hypertarget{classPF_d92ac103f88f8c21e197e90af5695a09}{ 
     100\hyperlink{classmpdf}{mpdf} \& \hyperlink{classPF_d92ac103f88f8c21e197e90af5695a09}{par}} 
     101\label{classPF_d92ac103f88f8c21e197e90af5695a09} 
    67102 
    68103\begin{CompactList}\small\item\em Parameter evolution model. \item\end{CompactList}\item  
    69 {\bf mpdf} \& {\bf obs}\label{classPF_dd0a687a4515333d6809147335854e77} 
     104\hypertarget{classPF_dd0a687a4515333d6809147335854e77}{ 
     105\hyperlink{classmpdf}{mpdf} \& \hyperlink{classPF_dd0a687a4515333d6809147335854e77}{obs}} 
     106\label{classPF_dd0a687a4515333d6809147335854e77} 
    70107 
    71108\begin{CompactList}\small\item\em Observation model. \item\end{CompactList}\item  
    72 {\bf RV} {\bf rv}\label{classBM_af00f0612fabe66241dd507188cdbf88} 
     109\hypertarget{classBM_af00f0612fabe66241dd507188cdbf88}{ 
     110\hyperlink{classRV}{RV} \hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv}} 
     111\label{classBM_af00f0612fabe66241dd507188cdbf88} 
    73112 
    74113\begin{CompactList}\small\item\em Random variable of the posterior. \item\end{CompactList}\item  
    75 double {\bf ll}\label{classBM_5623fef6572a08c2b53b8c87b82dc979} 
     114\hypertarget{classBM_5623fef6572a08c2b53b8c87b82dc979}{ 
     115double \hyperlink{classBM_5623fef6572a08c2b53b8c87b82dc979}{ll}} 
     116\label{classBM_5623fef6572a08c2b53b8c87b82dc979} 
    76117 
    77118\begin{CompactList}\small\item\em Logarithm of marginalized data likelihood. \item\end{CompactList}\item  
    78 bool {\bf evalll}\label{classBM_bf6fb59b30141074f8ee1e2f43d03129} 
     119\hypertarget{classBM_bf6fb59b30141074f8ee1e2f43d03129}{ 
     120bool \hyperlink{classBM_bf6fb59b30141074f8ee1e2f43d03129}{evalll}} 
     121\label{classBM_bf6fb59b30141074f8ee1e2f43d03129} 
    79122 
    80 \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 time. \item\end{CompactList}\end{CompactItemize} 
     123\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}\end{CompactItemize} 
    81124\subsection*{Classes} 
    82125\begin{CompactItemize} 
    83126\item  
    84127class \textbf{mpfepdf} 
    85 \begin{CompactList}\small\item\em internal class for MPDF providing composition of \doxyref{eEmp}{p.}{classeEmp} with external components \item\end{CompactList}\end{CompactItemize} 
     128\begin{CompactList}\small\item\em internal class for MPDF providing composition of \hyperlink{classeEmp}{eEmp} with external components \item\end{CompactList}\end{CompactItemize} 
    86129 
    87130 
     
    91134Marginalized Particle filter.  
    92135 
    93 Trivial version: proposal = parameter evolution, observation model is not used. (it is assumed to be part of \doxyref{BM}{p.}{classBM}).  
     136Trivial version: proposal = parameter evolution, observation model is not used. (it is assumed to be part of \hyperlink{classBM}{BM}).  
    94137 
    95138\subsection{Member Function Documentation} 
     139\hypertarget{classMPF_55daf8e4b6553dd9f47c692de7931623}{ 
    96140\index{MPF@{MPF}!bayes@{bayes}} 
    97141\index{bayes@{bayes}!MPF@{MPF}} 
    98 \subsubsection[bayes]{\setlength{\rightskip}{0pt plus 5cm}template$<$class BM\_\-T$>$ void {\bf MPF}$<$ BM\_\-T $>$::bayes (const vec \& {\em dt})\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classMPF_55daf8e4b6553dd9f47c692de7931623} 
     142\subsubsection[bayes]{\setlength{\rightskip}{0pt plus 5cm}template$<$class BM\_\-T$>$ void {\bf MPF}$<$ BM\_\-T $>$::bayes (const vec \& {\em dt})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual\mbox{]}}}} 
     143\label{classMPF_55daf8e4b6553dd9f47c692de7931623} 
    99144 
    100145 
     
    108153 
    109154 
    110 Reimplemented from {\bf PF} \doxyref{}{p.}{classPF_64f636bbd63bea9efd778214e6b631d3}. 
     155Reimplemented from \hyperlink{classPF_64f636bbd63bea9efd778214e6b631d3}{PF}. 
    111156 
    112 References PF::\_\-samples, PF::\_\-w, PF::est, PF::n, PF::par, eEmp::resample(), and mpdf::samplecond(). 
     157References PF::\_\-samples, PF::\_\-w, PF::est, PF::n, PF::par, eEmp::resample(), and mpdf::samplecond().\hypertarget{classBM_8a8ce6df431689964c41cc6c849cfd06}{ 
     158\index{MPF@{MPF}!logpred@{logpred}} 
     159\index{logpred@{logpred}!MPF@{MPF}} 
     160\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{]}}}} 
     161\label{classBM_8a8ce6df431689964c41cc6c849cfd06} 
     162 
     163 
     164Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out.  
     165 
     166Reimplemented in \hyperlink{classARX_e7f9e7823aec9bf7ddc3b42d9b3304c4}{ARX}, \hyperlink{classMixEF_424ca64f36d4e41de7a7e7ae921d35ea}{MixEF}, and \hyperlink{classmultiBM_13e26a61757278981fd8cac9a7ef91eb}{multiBM}.\hypertarget{classBM_eb58c81d6a7b75b05fc6f276eed78887}{ 
     167\index{MPF@{MPF}!\_\-copy\_\-@{\_\-copy\_\-}} 
     168\index{\_\-copy\_\-@{\_\-copy\_\-}!MPF@{MPF}} 
     169\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{]}}}} 
     170\label{classBM_eb58c81d6a7b75b05fc6f276eed78887} 
     171 
     172 
     173Copy 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; \}  
     174 
     175Reimplemented in \hyperlink{classARX_d2751057811c6fb8f4ff86e1648bcddc}{ARX}. 
     176 
     177Referenced by MixEF::MixEF(). 
    113178 
    114179The documentation for this class was generated from the following file:\begin{CompactItemize} 
    115180\item  
    116 work/git/mixpp/bdm/estim/{\bf libPF.h}\end{CompactItemize} 
     181work/git/mixpp/bdm/estim/\hyperlink{libPF_8h}{libPF.h}\end{CompactItemize}