\hypertarget{classbdm_1_1epdf}{
\section{bdm::epdf Class Reference}
\label{classbdm_1_1epdf}\index{bdm::epdf@{bdm::epdf}}
}
Probability density function with numerical statistics, e.g. posterior density.  


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

Inheritance diagram for bdm::epdf:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{classbdm_1_1epdf__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for bdm::epdf:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classbdm_1_1epdf__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1epdf_992f3de956fb3439c62225156aafb6f6}{
\hyperlink{classbdm_1_1epdf_992f3de956fb3439c62225156aafb6f6}{epdf} ()}
\label{classbdm_1_1epdf_992f3de956fb3439c62225156aafb6f6}

\begin{CompactList}\small\item\em default constructor \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_fdfed7aa18f2870951888b1dde977415}{
\hyperlink{classbdm_1_1epdf_fdfed7aa18f2870951888b1dde977415}{epdf} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)}
\label{classbdm_1_1epdf_fdfed7aa18f2870951888b1dde977415}

\begin{CompactList}\small\item\em default constructor \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_09721eb148bc49d6ec2f1956039f3a10}{
virtual vec \hyperlink{classbdm_1_1epdf_09721eb148bc49d6ec2f1956039f3a10}{sample} () const =0}
\label{classbdm_1_1epdf_09721eb148bc49d6ec2f1956039f3a10}

\begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\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 from density $epdf(rv)$. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_a8e39e2ff5e5cf5471bc159530d3b2d3}{
virtual double \hyperlink{classbdm_1_1epdf_a8e39e2ff5e5cf5471bc159530d3b2d3}{evallog} (const vec \&val) const =0}
\label{classbdm_1_1epdf_a8e39e2ff5e5cf5471bc159530d3b2d3}

\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \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}\item 
\hypertarget{classbdm_1_1epdf_565300f603ca00c989e16389d9eb42f5}{
virtual vec \hyperlink{classbdm_1_1epdf_565300f603ca00c989e16389d9eb42f5}{mean} () const =0}
\label{classbdm_1_1epdf_565300f603ca00c989e16389d9eb42f5}

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

\begin{CompactList}\small\item\em return expected variance (not covariance!) \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_a4fa8637e7307cb051c400c2ce0ca0c8}{
virtual \hyperlink{classbdm_1_1epdf_a4fa8637e7307cb051c400c2ce0ca0c8}{$\sim$epdf} ()}
\label{classbdm_1_1epdf_a4fa8637e7307cb051c400c2ce0ca0c8}

\begin{CompactList}\small\item\em Destructor for future use;. \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 access function, possibly dangerous! \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{
void \hyperlink{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{\_\-renewrv} (const \hyperlink{classbdm_1_1RV}{RV} \&in\_\-rv)}
\label{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}

\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\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 Identified of the random variable. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Probability density function with numerical statistics, e.g. posterior density. 

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{libBM_8h}{libBM.h}\item 
libBM.cpp\end{CompactItemize}
