Index: doc/latex/classMixEF.tex
===================================================================
--- doc/latex/classMixEF.tex (revision 181)
+++ doc/latex/classMixEF.tex (revision 210)
@@ -30,4 +30,14 @@
 
 \begin{CompactList}\small\item\em Full constructor. \item\end{CompactList}\item 
+\hypertarget{classMixEF_51fa3e3953c0af69f4e0162829d7929d}{
+\hyperlink{classMixEF_51fa3e3953c0af69f4e0162829d7929d}{MixEF} ()}
+\label{classMixEF_51fa3e3953c0af69f4e0162829d7929d}
+
+\begin{CompactList}\small\item\em Constructor of empty mixture. \item\end{CompactList}\item 
+\hypertarget{classMixEF_5f4880febf28803471694d87eab81ec4}{
+\hyperlink{classMixEF_5f4880febf28803471694d87eab81ec4}{MixEF} (const \hyperlink{classMixEF}{MixEF} \&M2)}
+\label{classMixEF_5f4880febf28803471694d87eab81ec4}
+
+\begin{CompactList}\small\item\em Copy constructor. \item\end{CompactList}\item 
 void \hyperlink{classMixEF_73a782d2f464c830bbdbb03d34c6d63e}{init} (\hyperlink{classBMEF}{BMEF} $\ast$Com0, const mat \&Data, int c=5)
 \item 
@@ -42,9 +52,9 @@
 
 \begin{CompactList}\small\item\em EM algorithm. \item\end{CompactList}\item 
-\hypertarget{classMixEF_e6810daa121ccaff1ac18f26fbad4563}{
-void \hyperlink{classMixEF_e6810daa121ccaff1ac18f26fbad4563}{bayesB} (const mat \&dt)}
-\label{classMixEF_e6810daa121ccaff1ac18f26fbad4563}
-
-\begin{CompactList}\small\item\em Batch Bayes rule (columns of Dt are observations). \item\end{CompactList}\item 
+\hypertarget{classMixEF_8f4672ce35c35eec6a7f9c18ce3871a3}{
+void \textbf{bayesB} (const mat \&dt, const vec \&wData)}
+\label{classMixEF_8f4672ce35c35eec6a7f9c18ce3871a3}
+
+\item 
 double \hyperlink{classMixEF_424ca64f36d4e41de7a7e7ae921d35ea}{logpred} (const vec \&dt) const 
 \item 
@@ -53,15 +63,50 @@
 \label{classMixEF_efb3e20c2151d91c4fc080b7722a2069}
 
+\begin{CompactList}\small\item\em Returns a reference to the \hyperlink{classepdf}{epdf} representing posterior density on parameters. \item\end{CompactList}\item 
+\hypertarget{classMixEF_324c2f0f7f9a9ee123073c15aeb8d0c1}{
+const \hyperlink{classeprod}{eprod} $\ast$ \hyperlink{classMixEF_324c2f0f7f9a9ee123073c15aeb8d0c1}{\_\-e} () const }
+\label{classMixEF_324c2f0f7f9a9ee123073c15aeb8d0c1}
+
 \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 
-\hypertarget{classMixEF_a93379cf31bb25961ea7f8d3f095513d}{
-\hyperlink{classemix}{emix} $\ast$ \hyperlink{classMixEF_a93379cf31bb25961ea7f8d3f095513d}{predictor} (const \hyperlink{classRV}{RV} \&\hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv})}
-\label{classMixEF_a93379cf31bb25961ea7f8d3f095513d}
+\hypertarget{classMixEF_4d5b5c25280a50df1edfa2c03540d0ac}{
+\hyperlink{classemix}{emix} $\ast$ \hyperlink{classMixEF_4d5b5c25280a50df1edfa2c03540d0ac}{predictor} (const \hyperlink{classRV}{RV} \&\hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv}) const }
+\label{classMixEF_4d5b5c25280a50df1edfa2c03540d0ac}
 
 \begin{CompactList}\small\item\em Constructs a predictive density (marginal density on data). \item\end{CompactList}\item 
-\hypertarget{classMixEF_fdbd5f58778c1ecb68b71945cdff0483}{
-void \hyperlink{classMixEF_fdbd5f58778c1ecb68b71945cdff0483}{flatten} (double sumw=1.0)}
-\label{classMixEF_fdbd5f58778c1ecb68b71945cdff0483}
+\hypertarget{classMixEF_7d4d571688a15cc5be10f6f48bfc433d}{
+void \hyperlink{classMixEF_7d4d571688a15cc5be10f6f48bfc433d}{flatten} (const \hyperlink{classBMEF}{BMEF} $\ast$M2)}
+\label{classMixEF_7d4d571688a15cc5be10f6f48bfc433d}
 
 \begin{CompactList}\small\item\em Flatten the density as if it was not estimated from the data. \item\end{CompactList}\item 
+\hypertarget{classMixEF_959d9b078766e251a3089b501ed78513}{
+\hyperlink{classBMEF}{BMEF} $\ast$ \hyperlink{classMixEF_959d9b078766e251a3089b501ed78513}{\_\-Coms} (int i)}
+\label{classMixEF_959d9b078766e251a3089b501ed78513}
+
+\begin{CompactList}\small\item\em Access function. \item\end{CompactList}\item 
+\hypertarget{classMixEF_6576024e16523da5cbaaf233512c53dc}{
+void \hyperlink{classMixEF_6576024e16523da5cbaaf233512c53dc}{set\_\-method} (MixEF\_\-METHOD M)}
+\label{classMixEF_6576024e16523da5cbaaf233512c53dc}
+
+\begin{CompactList}\small\item\em Set which method is to be used. \item\end{CompactList}\item 
+\hypertarget{classBMEF_30bb40eb1fd31869b2e62e79e1ecdcb4}{
+virtual void \hyperlink{classBMEF_30bb40eb1fd31869b2e62e79e1ecdcb4}{set\_\-statistics} (const \hyperlink{classBMEF}{BMEF} $\ast$BM0)}
+\label{classBMEF_30bb40eb1fd31869b2e62e79e1ecdcb4}
+
+\begin{CompactList}\small\item\em get statistics from another model \item\end{CompactList}\item 
+\hypertarget{classBMEF_8f4ecb6e2eaf630155a1fa98f35aa6ad}{
+virtual void \hyperlink{classBMEF_8f4ecb6e2eaf630155a1fa98f35aa6ad}{bayes} (const vec \&data, const double w)}
+\label{classBMEF_8f4ecb6e2eaf630155a1fa98f35aa6ad}
+
+\begin{CompactList}\small\item\em Weighted update of sufficient statistics (Bayes rule). \item\end{CompactList}\item 
+\hypertarget{classBMEF_97f5312efe4a5bedb86d2daec59d8651}{
+\hyperlink{classBMEF}{BMEF} $\ast$ \hyperlink{classBMEF_97f5312efe4a5bedb86d2daec59d8651}{\_\-copy\_\-} (bool changerv=false)}
+\label{classBMEF_97f5312efe4a5bedb86d2daec59d8651}
+
+\begin{CompactList}\small\item\em Flatten the posterior as if to keep nu0 data. \item\end{CompactList}\item 
+\hypertarget{classBM_0186270f75189677f390fe088a9947e9}{
+virtual void \hyperlink{classBM_0186270f75189677f390fe088a9947e9}{bayesB} (const mat \&Dt)}
+\label{classBM_0186270f75189677f390fe088a9947e9}
+
+\begin{CompactList}\small\item\em Batch Bayes rule (columns of Dt are observations). \item\end{CompactList}\item 
 \hypertarget{classBM_cd0660f2a1a344b56ac39802708ff165}{
 vec \hyperlink{classBM_cd0660f2a1a344b56ac39802708ff165}{logpred\_\-m} (const mat \&dt) const }
@@ -83,7 +128,5 @@
 \label{classBM_1ffa9f23669aabecc3760c06c6987522}
 
-\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
-virtual \hyperlink{classBM}{BM} $\ast$ \hyperlink{classBM_eb58c81d6a7b75b05fc6f276eed78887}{\_\-copy\_\-} (bool changerv=false)
-\end{CompactItemize}
+\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize}
 \subsection*{Protected Member Functions}
 \begin{CompactItemize}
@@ -117,4 +160,19 @@
 
 \begin{CompactList}\small\item\em Posterior on component parameters. \item\end{CompactList}\item 
+\hypertarget{classMixEF_6e630b2fd4cae8aa728ea1322708c8f0}{
+MixEF\_\-METHOD \hyperlink{classMixEF_6e630b2fd4cae8aa728ea1322708c8f0}{method}}
+\label{classMixEF_6e630b2fd4cae8aa728ea1322708c8f0}
+
+\begin{CompactList}\small\item\em Flag for a method that is used in the inference. \item\end{CompactList}\item 
+\hypertarget{classBMEF_538d632e59f9afa8daa1de74da12ce71}{
+double \hyperlink{classBMEF_538d632e59f9afa8daa1de74da12ce71}{frg}}
+\label{classBMEF_538d632e59f9afa8daa1de74da12ce71}
+
+\begin{CompactList}\small\item\em forgetting factor \item\end{CompactList}\item 
+\hypertarget{classBMEF_308cf5d4133cd471fdf1ecd5dfa09d02}{
+double \hyperlink{classBMEF_308cf5d4133cd471fdf1ecd5dfa09d02}{last\_\-lognc}}
+\label{classBMEF_308cf5d4133cd471fdf1ecd5dfa09d02}
+
+\begin{CompactList}\small\item\em cached value of lognc() in the previous step (used in evaluation of {\tt ll} ) \item\end{CompactList}\item 
 \hypertarget{classBM_af00f0612fabe66241dd507188cdbf88}{
 \hyperlink{classRV}{RV} \hyperlink{classBM_af00f0612fabe66241dd507188cdbf88}{rv}}
@@ -160,5 +218,5 @@
 
 
-References BM::\_\-copy\_\-(), build\_\-est(), Coms, est, n, multiBM::set\_\-parameters(), and weights.
+References BMEF::\_\-copy\_\-(), build\_\-est(), Coms, est, n, multiBM::set\_\-parameters(), and weights.
 
 Referenced by merger::merge().\hypertarget{classMixEF_424ca64f36d4e41de7a7e7ae921d35ea}{
@@ -173,18 +231,7 @@
 Reimplemented from \hyperlink{classBM_8a8ce6df431689964c41cc6c849cfd06}{BM}.
 
-References multiBM::\_\-epdf(), Coms, epdf::mean(), n, and weights.
-
-Referenced by merger::evalpdflog(), and merger::merge().\hypertarget{classBM_eb58c81d6a7b75b05fc6f276eed78887}{
-\index{MixEF@{MixEF}!\_\-copy\_\-@{\_\-copy\_\-}}
-\index{\_\-copy\_\-@{\_\-copy\_\-}!MixEF@{MixEF}}
-\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{]}}}}
-\label{classBM_eb58c81d6a7b75b05fc6f276eed78887}
-
-
-Copy 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; \} 
-
-Reimplemented in \hyperlink{classARX_5de61fbd4f97fa3216760b1f733f5af0}{ARX}.
-
-Referenced by init().
+References multiBM::\_\-epdf(), Coms, epdf::mean(), and weights.
+
+Referenced by merger::evalpdflog(), and merger::merge().
 
 The documentation for this class was generated from the following files:\begin{CompactItemize}
