Changeset 172 for doc/latex/classARX.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/classARX.tex

    r145 r172  
     1\hypertarget{classARX}{ 
    12\section{ARX Class Reference} 
    23\label{classARX}\index{ARX@{ARX}} 
     4} 
    35Linear Autoregressive model with Gaussian noise.   
    46 
     
    1012\begin{center} 
    1113\leavevmode 
    12 \includegraphics[width=40pt]{classARX__inherit__graph} 
     14\includegraphics[width=43pt]{classARX__inherit__graph} 
    1315\end{center} 
    1416\end{figure} 
     
    1719\begin{center} 
    1820\leavevmode 
    19 \includegraphics[width=90pt]{classARX__coll__graph} 
     21\includegraphics[width=96pt]{classARX__coll__graph} 
    2022\end{center} 
    2123\end{figure} 
     
    2325\begin{CompactItemize} 
    2426\item  
    25 {\bf ARX} ({\bf RV} \&{\bf rv}, mat \&V0, double \&nu0, double frg0=1.0)\label{classARX_5fc6c18e73dcc0f1135eef33f42db8be} 
     27\hypertarget{classARX_545e269bf7852c81484cf361b54d9917}{ 
     28\hyperlink{classARX_545e269bf7852c81484cf361b54d9917}{ARX} (const \hyperlink{classRV}{RV} \&\hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv}, const mat \&V0, const double \&nu0, const double frg0=1.0)} 
     29\label{classARX_545e269bf7852c81484cf361b54d9917} 
    2630 
    2731\begin{CompactList}\small\item\em Full constructor. \item\end{CompactList}\item  
    28 void {\bf set\_\-parameters} (mat \&V0, double \&nu0)\label{classARX_3ccef8dc9dbed00ec74dddc949845d39} 
     32\hypertarget{classARX_a5358883a49b52f50755ad8770c2bbdb}{ 
     33\hyperlink{classARX_a5358883a49b52f50755ad8770c2bbdb}{ARX} (const \hyperlink{classARX}{ARX} \&A0)} 
     34\label{classARX_a5358883a49b52f50755ad8770c2bbdb} 
     35 
     36\begin{CompactList}\small\item\em Copy constructor. \item\end{CompactList}\item  
     37\hypertarget{classARX_d2751057811c6fb8f4ff86e1648bcddc}{ 
     38\hyperlink{classBM}{BM} $\ast$ \hyperlink{classARX_d2751057811c6fb8f4ff86e1648bcddc}{\_\-copy\_\-} (bool changerv=false)} 
     39\label{classARX_d2751057811c6fb8f4ff86e1648bcddc} 
     40 
     41\begin{CompactList}\small\item\em Auxiliary function. \item\end{CompactList}\item  
     42\hypertarget{classARX_bc8c36399e82b2fc504baed845ed2007}{ 
     43void \hyperlink{classARX_bc8c36399e82b2fc504baed845ed2007}{set\_\-parameters} (const \hyperlink{classldmat}{ldmat} \&V0, const double \&nu0)} 
     44\label{classARX_bc8c36399e82b2fc504baed845ed2007} 
    2945 
    3046\begin{CompactList}\small\item\em Set sufficient statistics. \item\end{CompactList}\item  
    31 void {\bf get\_\-parameters} (mat \&V0, double \&nu0)\label{classARX_29f55b43b8b6f5c4a55f6176aa85c494} 
     47\hypertarget{classARX_26925d66dfc366815c497d67b62ee49c}{ 
     48void \hyperlink{classARX_26925d66dfc366815c497d67b62ee49c}{set\_\-statistics} (const \hyperlink{classBMEF}{BMEF} $\ast$BM0)} 
     49\label{classARX_26925d66dfc366815c497d67b62ee49c} 
     50 
     51\begin{CompactList}\small\item\em get statistics from another model \item\end{CompactList}\item  
     52\hypertarget{classARX_29f55b43b8b6f5c4a55f6176aa85c494}{ 
     53void \hyperlink{classARX_29f55b43b8b6f5c4a55f6176aa85c494}{get\_\-parameters} (mat \&V0, double \&nu0)} 
     54\label{classARX_29f55b43b8b6f5c4a55f6176aa85c494} 
    3255 
    3356\begin{CompactList}\small\item\em Returns sufficient statistics. \item\end{CompactList}\item  
    34 void {\bf bayes} (const vec \&dt)\label{classARX_ba82c956ca893826811aefe1e4af465d} 
     57\hypertarget{classARX_14d62abfe355275ea3b8d0c5d40f01a0}{ 
     58void \hyperlink{classARX_14d62abfe355275ea3b8d0c5d40f01a0}{bayes} (const vec \&dt, const double w)} 
     59\label{classARX_14d62abfe355275ea3b8d0c5d40f01a0} 
    3560 
    3661\begin{CompactList}\small\item\em Here $dt = [y_t psi_t] $. \item\end{CompactList}\item  
    37 {\bf epdf} \& {\bf \_\-epdf} ()\label{classARX_9d8eff7a9df81786191a4c55b27e5b8a} 
     62void \hyperlink{classARX_ba82c956ca893826811aefe1e4af465d}{bayes} (const vec \&dt) 
     63\begin{CompactList}\small\item\em Incremental Bayes rule. \item\end{CompactList}\item  
     64\hypertarget{classARX_c13df43e0af87697fda6b457d56a6d45}{ 
     65const \hyperlink{classepdf}{epdf} \& \hyperlink{classARX_c13df43e0af87697fda6b457d56a6d45}{\_\-epdf} () const } 
     66\label{classARX_c13df43e0af87697fda6b457d56a6d45} 
    3867 
    39 \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  
    40 ivec {\bf structure\_\-est} ({\bf egiw} Eg0) 
     68\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  
     69double \hyperlink{classARX_e7f9e7823aec9bf7ddc3b42d9b3304c4}{logpred} (const vec \&dt) const  
     70\item  
     71\hypertarget{classARX_365092d4fd1ab769fcf62bf28f364fab}{ 
     72void \hyperlink{classARX_365092d4fd1ab769fcf62bf28f364fab}{flatten} (\hyperlink{classBMEF}{BMEF} $\ast$B)} 
     73\label{classARX_365092d4fd1ab769fcf62bf28f364fab} 
     74 
     75\begin{CompactList}\small\item\em Flatten the posterior. \item\end{CompactList}\item  
     76ivec \hyperlink{classARX_130bb7336aac681ce14b027b8f1409fa}{structure\_\-est} (\hyperlink{classegiw}{egiw} Eg0) 
    4177\begin{CompactList}\small\item\em Brute force structure estimation. \item\end{CompactList}\item  
    42 double {\bf \_\-tll} ()\label{classARX_b8827048ceec8999849e2ed15400cae7} 
     78\hypertarget{classBM_0186270f75189677f390fe088a9947e9}{ 
     79virtual void \hyperlink{classBM_0186270f75189677f390fe088a9947e9}{bayesB} (const mat \&Dt)} 
     80\label{classBM_0186270f75189677f390fe088a9947e9} 
     81 
     82\begin{CompactList}\small\item\em Batch Bayes rule (columns of Dt are observations). \item\end{CompactList}\item  
     83\hypertarget{classBM_126bd2595c48e311fc2a7ab72876092a}{ 
     84const \hyperlink{classRV}{RV} \& \hyperlink{classBM_126bd2595c48e311fc2a7ab72876092a}{\_\-rv} () const } 
     85\label{classBM_126bd2595c48e311fc2a7ab72876092a} 
    4386 
    4487\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
    45 void {\bf bayes} (mat Dt)\label{classBM_87b07867fd4c133aa89a18543f68d9f9} 
    46  
    47 \begin{CompactList}\small\item\em Batch Bayes rule (columns of Dt are observations). \item\end{CompactList}\item  
    48 const {\bf RV} \& {\bf \_\-rv} () const \label{classBM_126bd2595c48e311fc2a7ab72876092a} 
     88\hypertarget{classBM_87f4a547d2c29180be88175e5eab9c88}{ 
     89double \hyperlink{classBM_87f4a547d2c29180be88175e5eab9c88}{\_\-ll} () const } 
     90\label{classBM_87f4a547d2c29180be88175e5eab9c88} 
    4991 
    5092\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
    51 double {\bf \_\-ll} () const \label{classBM_87f4a547d2c29180be88175e5eab9c88} 
     93\hypertarget{classBM_1ffa9f23669aabecc3760c06c6987522}{ 
     94void \hyperlink{classBM_1ffa9f23669aabecc3760c06c6987522}{set\_\-evalll} (bool evl0)} 
     95\label{classBM_1ffa9f23669aabecc3760c06c6987522} 
    5296 
    5397\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} 
     
    5599\begin{CompactItemize} 
    56100\item  
    57 {\bf egiw} {\bf est}\label{classARX_691d023662beffa1dda611b416c0e27e} 
     101\hypertarget{classARX_691d023662beffa1dda611b416c0e27e}{ 
     102\hyperlink{classegiw}{egiw} \hyperlink{classARX_691d023662beffa1dda611b416c0e27e}{est}} 
     103\label{classARX_691d023662beffa1dda611b416c0e27e} 
    58104 
    59105\begin{CompactList}\small\item\em Posterior estimate of $\theta,r$ in the form of Normal-inverse Wishart density. \item\end{CompactList}\item  
    60 {\bf ldmat} \& {\bf V}\label{classARX_2291297861dd74ca0175a01f910a0ef7} 
     106\hypertarget{classARX_2291297861dd74ca0175a01f910a0ef7}{ 
     107\hyperlink{classldmat}{ldmat} \& \hyperlink{classARX_2291297861dd74ca0175a01f910a0ef7}{V}} 
     108\label{classARX_2291297861dd74ca0175a01f910a0ef7} 
    61109 
    62110\begin{CompactList}\small\item\em cached value of est.V \item\end{CompactList}\item  
    63 double \& {\bf nu}\label{classARX_a4182c281098b2d86b62518a7493d9be} 
     111\hypertarget{classARX_a4182c281098b2d86b62518a7493d9be}{ 
     112double \& \hyperlink{classARX_a4182c281098b2d86b62518a7493d9be}{nu}} 
     113\label{classARX_a4182c281098b2d86b62518a7493d9be} 
    64114 
    65115\begin{CompactList}\small\item\em cached value of est.nu \item\end{CompactList}\item  
    66 double {\bf frg}\label{classARX_e467144efb0a5acbc10dba4eff8638fe} 
     116\hypertarget{classBMEF_538d632e59f9afa8daa1de74da12ce71}{ 
     117double \hyperlink{classBMEF_538d632e59f9afa8daa1de74da12ce71}{frg}} 
     118\label{classBMEF_538d632e59f9afa8daa1de74da12ce71} 
    67119 
    68120\begin{CompactList}\small\item\em forgetting factor \item\end{CompactList}\item  
    69 double {\bf last\_\-lognc}\label{classARX_6d0cd0f0734aa77cdc5e48f1cf6737ec} 
     121\hypertarget{classBMEF_308cf5d4133cd471fdf1ecd5dfa09d02}{ 
     122double \hyperlink{classBMEF_308cf5d4133cd471fdf1ecd5dfa09d02}{last\_\-lognc}} 
     123\label{classBMEF_308cf5d4133cd471fdf1ecd5dfa09d02} 
    70124 
    71125\begin{CompactList}\small\item\em cached value of lognc() in the previous step (used in evaluation of {\tt ll} ) \item\end{CompactList}\item  
    72 double {\bf tll}\label{classARX_64ea7c8ff48bf2548bac3e985e24da19} 
    73  
    74 \begin{CompactList}\small\item\em total likelihood \item\end{CompactList}\item  
    75 {\bf RV} {\bf rv}\label{classBM_af00f0612fabe66241dd507188cdbf88} 
     126\hypertarget{classBM_af00f0612fabe66241dd507188cdbf88}{ 
     127\hyperlink{classRV}{RV} \hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv}} 
     128\label{classBM_af00f0612fabe66241dd507188cdbf88} 
    76129 
    77130\begin{CompactList}\small\item\em Random variable of the posterior. \item\end{CompactList}\item  
    78 double {\bf ll}\label{classBM_5623fef6572a08c2b53b8c87b82dc979} 
     131\hypertarget{classBM_5623fef6572a08c2b53b8c87b82dc979}{ 
     132double \hyperlink{classBM_5623fef6572a08c2b53b8c87b82dc979}{ll}} 
     133\label{classBM_5623fef6572a08c2b53b8c87b82dc979} 
    79134 
    80135\begin{CompactList}\small\item\em Logarithm of marginalized data likelihood. \item\end{CompactList}\item  
    81 bool {\bf evalll}\label{classBM_bf6fb59b30141074f8ee1e2f43d03129} 
     136\hypertarget{classBM_bf6fb59b30141074f8ee1e2f43d03129}{ 
     137bool \hyperlink{classBM_bf6fb59b30141074f8ee1e2f43d03129}{evalll}} 
     138\label{classBM_bf6fb59b30141074f8ee1e2f43d03129} 
    82139 
    83 \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} 
     140\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} 
    84141 
    85142 
     
    92149 
    93150\subsection{Member Function Documentation} 
     151\hypertarget{classARX_ba82c956ca893826811aefe1e4af465d}{ 
     152\index{ARX@{ARX}!bayes@{bayes}} 
     153\index{bayes@{bayes}!ARX@{ARX}} 
     154\subsubsection[bayes]{\setlength{\rightskip}{0pt plus 5cm}void ARX::bayes (const vec \& {\em dt})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual\mbox{]}}}} 
     155\label{classARX_ba82c956ca893826811aefe1e4af465d} 
     156 
     157 
     158Incremental Bayes rule.  
     159 
     160\begin{Desc} 
     161\item[Parameters:] 
     162\begin{description} 
     163\item[{\em dt}]vector of input data \end{description} 
     164\end{Desc} 
     165 
     166 
     167Reimplemented from \hyperlink{classBMEF_52b7719312d545215cca1ff87722a35a}{BMEF}. 
     168 
     169References bayes().\hypertarget{classARX_e7f9e7823aec9bf7ddc3b42d9b3304c4}{ 
     170\index{ARX@{ARX}!logpred@{logpred}} 
     171\index{logpred@{logpred}!ARX@{ARX}} 
     172\subsubsection[logpred]{\setlength{\rightskip}{0pt plus 5cm}double ARX::logpred (const vec \& {\em dt}) const\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}} 
     173\label{classARX_e7f9e7823aec9bf7ddc3b42d9b3304c4} 
     174 
     175 
     176Evaluates predictive log-likelihood of the given data record I.e. marginal likelihood of the data with the posterior integrated out.  
     177 
     178Reimplemented from \hyperlink{classBM_8a8ce6df431689964c41cc6c849cfd06}{BM}. 
     179 
     180References egiw::\_\-nu(), egiw::\_\-V(), est, BM::evalll, BMEF::frg, BMEF::last\_\-lognc, egiw::lognc(), nu, ldmat::opupdt(), egiw::pow(), and V.\hypertarget{classARX_130bb7336aac681ce14b027b8f1409fa}{ 
    94181\index{ARX@{ARX}!structure\_\-est@{structure\_\-est}} 
    95182\index{structure\_\-est@{structure\_\-est}!ARX@{ARX}} 
    96 \subsubsection[structure\_\-est]{\setlength{\rightskip}{0pt plus 5cm}ivec ARX::structure\_\-est ({\bf egiw} {\em Eg0})}\label{classARX_130bb7336aac681ce14b027b8f1409fa} 
     183\subsubsection[structure\_\-est]{\setlength{\rightskip}{0pt plus 5cm}ivec ARX::structure\_\-est ({\bf egiw} {\em Eg0})}} 
     184\label{classARX_130bb7336aac681ce14b027b8f1409fa} 
    97185 
    98186 
     
    107195The documentation for this class was generated from the following files:\begin{CompactItemize} 
    108196\item  
    109 work/git/mixpp/bdm/estim/{\bf arx.h}\item  
     197work/git/mixpp/bdm/estim/\hyperlink{arx_8h}{arx.h}\item  
    110198work/git/mixpp/bdm/estim/arx.cpp\end{CompactItemize}