Index: doc/latex/classmerger.tex
===================================================================
--- doc/latex/classmerger.tex (revision 181)
+++ doc/latex/classmerger.tex (revision 210)
@@ -67,4 +67,9 @@
 
 \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
+\hypertarget{classmerger_b4aaca5b70165272f5093206faee9ce7}{
+mat \textbf{variance} () const }
+\label{classmerger_b4aaca5b70165272f5093206faee9ce7}
+
+\item 
 \hypertarget{classmerger_51e425ee1dd46d73353526e6a1c24ca3}{
 virtual \hyperlink{classmerger_51e425ee1dd46d73353526e6a1c24ca3}{$\sim$merger} ()}
@@ -72,4 +77,14 @@
 
 \begin{CompactList}\small\item\em for future use \item\end{CompactList}\item 
+\hypertarget{classmerger_6e430acd4eb7eea6078df0eb0a429821}{
+\hyperlink{classMixEF}{MixEF} \& \hyperlink{classmerger_6e430acd4eb7eea6078df0eb0a429821}{\_\-Mix} ()}
+\label{classmerger_6e430acd4eb7eea6078df0eb0a429821}
+
+\begin{CompactList}\small\item\em Access function. \item\end{CompactList}\item 
+\hypertarget{classmerger_f79677063ec72cdc175280a3fae8ebc2}{
+\hyperlink{classeEmp}{eEmp} \& \hyperlink{classmerger_f79677063ec72cdc175280a3fae8ebc2}{\_\-Smp} ()}
+\label{classmerger_f79677063ec72cdc175280a3fae8ebc2}
+
+\begin{CompactList}\small\item\em Access function. \item\end{CompactList}\item 
 \hyperlink{classRV}{RV} \hyperlink{classcompositepdf_635d219fb3e32852400d6f98aa4bdc93}{getrv} (bool checkoverlap=false)
 \begin{CompactList}\small\item\em find common rv, flag \item\end{CompactList}\item 
@@ -79,24 +94,9 @@
 
 \begin{CompactList}\small\item\em common rvc of all mpdfs is written to rvc \item\end{CompactList}\item 
-\hypertarget{classcompositepdf_08958c8f76d65de94ecc37b8d90bc77a}{
-void \hyperlink{classcompositepdf_08958c8f76d65de94ecc37b8d90bc77a}{setindices} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
-\label{classcompositepdf_08958c8f76d65de94ecc37b8d90bc77a}
-
-\begin{CompactList}\small\item\em fill all rv$\ast$inrv$\ast$ according to \item\end{CompactList}\item 
-\hypertarget{classcompositepdf_3bd4ada95f381ea6c4cff2dc86e957c4}{
-void \hyperlink{classcompositepdf_3bd4ada95f381ea6c4cff2dc86e957c4}{setrvcinrv} (const \hyperlink{classRV}{RV} \&rvc, Array$<$ ivec $>$ \&rvcind)}
-\label{classcompositepdf_3bd4ada95f381ea6c4cff2dc86e957c4}
-
-\begin{CompactList}\small\item\em Function fills Array by indeces of mpdfs inside given rv. \item\end{CompactList}\item 
-\hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{
-virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const }
-\label{classepdf_54d7dd53a641b618771cd9bee135181f}
+\hypertarget{classepdf_76608914c3b19e150292d5c56e93e508}{
+virtual mat \hyperlink{classepdf_76608914c3b19e150292d5c56e93e508}{sample\_\-m} (int N) const }
+\label{classepdf_76608914c3b19e150292d5c56e93e508}
 
 \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item 
-\hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{
-virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const }
-\label{classepdf_3ea597362e11a0040fe7c990269d072c}
-
-\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item 
 \hypertarget{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{
 virtual vec \hyperlink{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{evalpdflog\_\-m} (const mat \&Val) const }
@@ -104,12 +104,12 @@
 
 \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item 
-\hypertarget{classepdf_3ba08c0e788deff22134c049b9269666}{
-\hyperlink{classmpdf}{mpdf} $\ast$ \hyperlink{classepdf_3ba08c0e788deff22134c049b9269666}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
-\label{classepdf_3ba08c0e788deff22134c049b9269666}
+\hypertarget{classepdf_e87dc8260a5c37bc1b03eb66174741a0}{
+virtual \hyperlink{classmpdf}{mpdf} $\ast$ \hyperlink{classepdf_e87dc8260a5c37bc1b03eb66174741a0}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const }
+\label{classepdf_e87dc8260a5c37bc1b03eb66174741a0}
 
 \begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classRV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item 
-\hypertarget{classepdf_bc0c171b6dafacd78d26263913b1d0c0}{
-\hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classepdf_bc0c171b6dafacd78d26263913b1d0c0}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
-\label{classepdf_bc0c171b6dafacd78d26263913b1d0c0}
+\hypertarget{classepdf_38de9f59b65ee06028554f3f74b66025}{
+virtual \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classepdf_38de9f59b65ee06028554f3f74b66025}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const }
+\label{classepdf_38de9f59b65ee06028554f3f74b66025}
 
 \begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classRV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item 
@@ -132,4 +132,19 @@
 
 \begin{CompactList}\small\item\em Internal mixture of EF models. \item\end{CompactList}\item 
+\hypertarget{classmerger_01e222f5df660e1b25c712e82da8df8f}{
+Array$<$ \hyperlink{classdatalink__m2e}{datalink\_\-m2e} $\ast$ $>$ \hyperlink{classmerger_01e222f5df660e1b25c712e82da8df8f}{dls}}
+\label{classmerger_01e222f5df660e1b25c712e82da8df8f}
+
+\begin{CompactList}\small\item\em Data link for each \hyperlink{classmpdf}{mpdf} in mpdfs. \item\end{CompactList}\item 
+\hypertarget{classmerger_e741e6096a7acec3dfa477efa1d8160e}{
+Array$<$ \hyperlink{classRV}{RV} $>$ \hyperlink{classmerger_e741e6096a7acec3dfa477efa1d8160e}{rvzs}}
+\label{classmerger_e741e6096a7acec3dfa477efa1d8160e}
+
+\begin{CompactList}\small\item\em Array of rvs that are not modelled by mpdfs at all (aux). \item\end{CompactList}\item 
+\hypertarget{classmerger_d0ff2953f904f12a355f72f51813ca7a}{
+Array$<$ \hyperlink{classdatalink__m2e}{datalink\_\-m2e} $\ast$ $>$ \hyperlink{classmerger_d0ff2953f904f12a355f72f51813ca7a}{zdls}}
+\label{classmerger_d0ff2953f904f12a355f72f51813ca7a}
+
+\begin{CompactList}\small\item\em Data Links of rv0 mpdfs - these will be conditioned the (rv,rvc) of mpdfs. \item\end{CompactList}\item 
 \hypertarget{classmerger_ce84de1824875b4262eefb640e8c6d69}{
 int \hyperlink{classmerger_ce84de1824875b4262eefb640e8c6d69}{Ns}}
@@ -147,4 +162,9 @@
 
 \begin{CompactList}\small\item\em Prior on the log-normal merging model. \item\end{CompactList}\item 
+\hypertarget{classmerger_b13c9e8921e6bc6b8dd7bbafb54fa801}{
+\hyperlink{classeEmp}{eEmp} \hyperlink{classmerger_b13c9e8921e6bc6b8dd7bbafb54fa801}{eSmp}}
+\label{classmerger_b13c9e8921e6bc6b8dd7bbafb54fa801}
+
+\begin{CompactList}\small\item\em Projection to empirical density. \item\end{CompactList}\item 
 \hypertarget{classcompositepdf_c1646fe41ff5934d010e54ccaa46133f}{
 int \hyperlink{classcompositepdf_c1646fe41ff5934d010e54ccaa46133f}{n}}
@@ -157,19 +177,4 @@
 
 \begin{CompactList}\small\item\em Elements of composition. \item\end{CompactList}\item 
-\hypertarget{classcompositepdf_4d4a8269f9faefeca8cdc251a5a29a7f}{
-Array$<$ ivec $>$ \hyperlink{classcompositepdf_4d4a8269f9faefeca8cdc251a5a29a7f}{rvsinrv}}
-\label{classcompositepdf_4d4a8269f9faefeca8cdc251a5a29a7f}
-
-\begin{CompactList}\small\item\em Indeces of rvs in common rv. \item\end{CompactList}\item 
-\hypertarget{classcompositepdf_3df07bb5e3ed36a3119b145043296676}{
-Array$<$ ivec $>$ \hyperlink{classcompositepdf_3df07bb5e3ed36a3119b145043296676}{rvcsinrv}}
-\label{classcompositepdf_3df07bb5e3ed36a3119b145043296676}
-
-\begin{CompactList}\small\item\em Indeces of rvc in common rv. \item\end{CompactList}\item 
-\hypertarget{classcompositepdf_de3bd289a26d5549dcf1ed19e5b13569}{
-Array$<$ ivec $>$ \hyperlink{classcompositepdf_de3bd289a26d5549dcf1ed19e5b13569}{rvinrvcs}}
-\label{classcompositepdf_de3bd289a26d5549dcf1ed19e5b13569}
-
-\begin{CompactList}\small\item\em Indeces of common rv in rvc. \item\end{CompactList}\item 
 \hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{
 \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}}
