\hypertarget{classeprod}{
\section{eprod Class Reference}
\label{classeprod}\index{eprod@{eprod}}
}
Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}.  


{\tt \#include $<$emix.h$>$}

Inheritance diagram for eprod:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=44pt]{classeprod__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for eprod:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=44pt]{classeprod__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classeprod_288ace3ff1df274dfa89e1a641448a43}{
\textbf{eprod} (const Array$<$ const \hyperlink{classepdf}{epdf} $\ast$ $>$ epdfs0)}
\label{classeprod_288ace3ff1df274dfa89e1a641448a43}

\item 
\hypertarget{classeprod_5752dd999e1f4638f9558b0cc35b64f7}{
vec \hyperlink{classeprod_5752dd999e1f4638f9558b0cc35b64f7}{mean} () const }
\label{classeprod_5752dd999e1f4638f9558b0cc35b64f7}

\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
\hypertarget{classeprod_71d37aa4676dc41bb4ff6ceb4ccdc594}{
vec \hyperlink{classeprod_71d37aa4676dc41bb4ff6ceb4ccdc594}{variance} () const }
\label{classeprod_71d37aa4676dc41bb4ff6ceb4ccdc594}

\begin{CompactList}\small\item\em return expected variance (not covariance!) \item\end{CompactList}\item 
\hypertarget{classeprod_94a5b7c44056cf7f4e688d53ba6295b4}{
vec \hyperlink{classeprod_94a5b7c44056cf7f4e688d53ba6295b4}{sample} () const }
\label{classeprod_94a5b7c44056cf7f4e688d53ba6295b4}

\begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item 
\hypertarget{classeprod_0af49e491414d6f270dc347bcb054eb6}{
double \hyperlink{classeprod_0af49e491414d6f270dc347bcb054eb6}{evallog} (const vec \&val) const }
\label{classeprod_0af49e491414d6f270dc347bcb054eb6}

\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item 
\hypertarget{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}{
const \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}{operator()} (int i) const }
\label{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}

\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
\hypertarget{classeprod_fe8cc34921cb43558654455007676f05}{
\hyperlink{classeprod_fe8cc34921cb43558654455007676f05}{$\sim$eprod} ()}
\label{classeprod_fe8cc34921cb43558654455007676f05}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
\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_2495a04bbacb9b55fe5a3a59b78affca}{
virtual vec \hyperlink{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{evallog\_\-m} (const mat \&Val) const }
\label{classepdf_2495a04bbacb9b55fe5a3a59b78affca}

\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item 
\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_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 
\hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{
const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const }
\label{classepdf_ca0d32aabb4cbba347e0c37fe8607562}

\begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item 
\hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{
void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)}
\label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}

\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
\hypertarget{classeprod_63fc0db078542bce1c5dff94f9c3a357}{
Array$<$ const \hyperlink{classepdf}{epdf} $\ast$ $>$ \hyperlink{classeprod_63fc0db078542bce1c5dff94f9c3a357}{epdfs}}
\label{classeprod_63fc0db078542bce1c5dff94f9c3a357}

\begin{CompactList}\small\item\em Components (epdfs). \item\end{CompactList}\item 
\hypertarget{classeprod_852a8e1b5b52a992f56cd2ab6c0b4a29}{
Array$<$ \hyperlink{classdatalink__e2e}{datalink\_\-e2e} $\ast$ $>$ \hyperlink{classeprod_852a8e1b5b52a992f56cd2ab6c0b4a29}{dls}}
\label{classeprod_852a8e1b5b52a992f56cd2ab6c0b4a29}

\begin{CompactList}\small\item\em Array of indeces. \item\end{CompactList}\item 
\hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{
\hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}}
\label{classepdf_74da992e3f5d598da8850b646b79b9d9}

\begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}. 

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\end{CompactItemize}
