\section{eEmp Class Reference}
\label{classeEmp}\index{eEmp@{eEmp}}
Weighted empirical density.  


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

Inheritance diagram for eEmp:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=44pt]{classeEmp__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for eEmp:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=44pt]{classeEmp__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\textbf{eEmp} (const {\bf RV} \&rv0)\label{classeEmp_0b7235ea451df276dd2c57aae207fe34}

\item 
void \textbf{set\_\-parameters} (const vec \&w0, {\bf epdf} $\ast$pdf0)\label{classeEmp_6606a656c1b28114f7384c25aaf80e8d}

\item 
vec \& {\bf \_\-w} ()\label{classeEmp_31b2bfb73b72486a5c89f2ab850c7a9b}

\begin{CompactList}\small\item\em Potentially dangerous, use with care. \item\end{CompactList}\item 
Array$<$ vec $>$ \& \textbf{\_\-samples} ()\label{classeEmp_31b747eca73b16f30370827ba4cc3575}

\item 
ivec {\bf resample} ({\bf RESAMPLING\_\-METHOD} method=SYSTEMATIC)\label{classeEmp_77268292fc4465cb73ddbfb1f2932a59}

\begin{CompactList}\small\item\em Function performs resampling, i.e. removal of low-weight samples and duplication of high-weight samples such that the new samples represent the same density. \item\end{CompactList}\item 
vec {\bf sample} ()
\begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item 
vec {\bf mean} ()\label{classeEmp_de42454cb65a17fd8662d207dd59aacf}

\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
virtual double {\bf eval} (const vec \&val)\label{classepdf_f333ceeb88ebc37d81fcd4cea4526bfc}

\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item 
virtual double {\bf evalpdflog} (const vec \&val)\label{classepdf_113c76c61d20e3f2a24ba322a73dfc51}

\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
int {\bf n}\label{classeEmp_8c33034de0e35f03f8bb85d3d67438fd}

\begin{CompactList}\small\item\em Number of particles. \item\end{CompactList}\item 
vec \textbf{w}\label{classeEmp_ae78d144404ddba843c93b171b215de8}

\item 
Array$<$ vec $>$ \textbf{samples}\label{classeEmp_a4d6f4bbd6a6824fc39f14676701279a}

\item 
{\bf RV} \textbf{rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9}

\end{CompactItemize}


\subsection{Detailed Description}
Weighted empirical density. 

Used e.g. in particle filters. 

\subsection{Member Function Documentation}
\index{eEmp@{eEmp}!sample@{sample}}
\index{sample@{sample}!eEmp@{eEmp}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}vec eEmp::sample ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classeEmp_c9b44099a400579b88aff9f5afaf9c13}


Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. 

Returns a sample from the density, $x \sim epdf(rv)$ 

Implements {\bf epdf} \doxyref{}{p.}{classepdf_7f74d871d50b9ff360f1b3879092a9fa}.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
work/mixpp/bdm/stat/{\bf libEF.h}\item 
work/mixpp/bdm/stat/libEF.cpp\end{CompactItemize}
