\hypertarget{classbdm_1_1eprod}{
\section{bdm::eprod Class Reference}
\label{classbdm_1_1eprod}\index{bdm::eprod@{bdm::eprod}}
}
{\tt \#include $<$emix.h$>$}

Inheritance diagram for bdm::eprod:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=64pt]{classbdm_1_1eprod__inherit__graph}
\end{center}
\end{figure}


\subsection{Detailed Description}
Product of independent epdfs. For dependent pdfs, use \hyperlink{classbdm_1_1mprod}{mprod}. \subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1eprod_5f11492068875f95a8a377924ee0c611}{
\textbf{eprod} (const Array$<$ const \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ $>$ epdfs0)}
\label{classbdm_1_1eprod_5f11492068875f95a8a377924ee0c611}

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

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

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

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

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

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

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\end{CompactItemize}
\begin{Indent}{\bf Matematical Operations}\par
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{
virtual mat \hyperlink{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{sample\_\-m} (int N) const }
\label{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}

\begin{CompactList}\small\item\em Returns N samples, $ [x_1 , x_2 , \ldots \ $ from density $ f_x(rv)$. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}{
virtual vec \hyperlink{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}{evallog\_\-m} (const mat \&Val) const }
\label{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}

\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_e584eac5579c1b6384947ecf66166c77}{
virtual \hyperlink{classbdm_1_1mpdf}{mpdf} $\ast$ \hyperlink{classbdm_1_1epdf_e584eac5579c1b6384947ecf66166c77}{condition} (const \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}) const }
\label{classbdm_1_1epdf_e584eac5579c1b6384947ecf66166c77}

\begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classbdm_1_1RV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_3fb2ece54f720b62ad325e61214fa0a1}{
virtual \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1epdf_3fb2ece54f720b62ad325e61214fa0a1}{marginal} (const \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}) const }
\label{classbdm_1_1epdf_3fb2ece54f720b62ad325e61214fa0a1}

\begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classbdm_1_1RV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\end{CompactItemize}
\end{Indent}
\begin{Indent}{\bf Connection to other classes}\par
{\em Description of the random quantity via attribute {\tt rv} is optional. For operations such as sampling {\tt rv} does not need to be set. However, for {\tt marginalization} and {\tt conditioning} {\tt rv} has to be set. NB: }\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{
void \hyperlink{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)}
\label{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}

\begin{CompactList}\small\item\em Name its rv. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{
bool \hyperlink{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{isnamed} () const }
\label{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}

\begin{CompactList}\small\item\em True if rv is assigned. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{
const \hyperlink{classbdm_1_1RV}{RV} \& \hyperlink{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{\_\-rv} () const }
\label{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}

\begin{CompactList}\small\item\em Return name (fails when isnamed is false). \item\end{CompactList}\end{CompactItemize}
\end{Indent}
\begin{Indent}{\bf Access to attributes}\par
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}{
bool \hyperlink{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}{dimension} () const }
\label{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}

\begin{CompactList}\small\item\em Size of the random variable. \item\end{CompactList}\end{CompactItemize}
\end{Indent}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1eprod_fa0b0981730f0a8339b9ff3e29d78391}{
Array$<$ const \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ $>$ \hyperlink{classbdm_1_1eprod_fa0b0981730f0a8339b9ff3e29d78391}{epdfs}}
\label{classbdm_1_1eprod_fa0b0981730f0a8339b9ff3e29d78391}

\begin{CompactList}\small\item\em Components (epdfs). \item\end{CompactList}\item 
\hypertarget{classbdm_1_1eprod_6b5a9be71a644f6009e7beda6c762a43}{
Array$<$ \hyperlink{classbdm_1_1datalink}{datalink} $\ast$ $>$ \hyperlink{classbdm_1_1eprod_6b5a9be71a644f6009e7beda6c762a43}{dls}}
\label{classbdm_1_1eprod_6b5a9be71a644f6009e7beda6c762a43}

\begin{CompactList}\small\item\em Array of indeces. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{
int \hyperlink{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{dim}}
\label{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}

\begin{CompactList}\small\item\em dimension of the random variable \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{
\hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}}
\label{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}

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


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