\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_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_5adef154e3655a872c284b02635b8b35}{
double \hyperlink{classeprod_5adef154e3655a872c284b02635b8b35}{evalpdflog} (const vec \&val) const }
\label{classeprod_5adef154e3655a872c284b02635b8b35}

\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{classepdf_54d7dd53a641b618771cd9bee135181f}{
virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const }
\label{classepdf_54d7dd53a641b618771cd9bee135181f}

\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 }
\label{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}

\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \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_a471987de1115dc639eccff65f3b9aa3}{
Array$<$ ivec $>$ \hyperlink{classeprod_a471987de1115dc639eccff65f3b9aa3}{rvinds}}
\label{classeprod_a471987de1115dc639eccff65f3b9aa3}

\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}
