\section{emix Class Reference}
\label{classemix}\index{emix@{emix}}
Weighted mixture of epdfs with external owned components.  


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

Inheritance diagram for emix:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=42pt]{classemix__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for emix:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=42pt]{classemix__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf emix} (const {\bf RV} \&rv, vec \&w0)\label{classemix_b0ac204af8919c22bce72816ed82019e}

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
void \textbf{set\_\-parameters} (int \&i, {\bf epdf} $\ast$ep)\label{classemix_599366d678152cfb0703da697b6b1de1}

\item 
vec {\bf mean} ()\label{classemix_dcb3f927bf061eac6229850158ca1558}

\begin{CompactList}\small\item\em return expected value \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 
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 \textbf{n}\label{classemix_d408b764d002e5eb88acbf333921b2b3}

\item 
vec \& \textbf{w}\label{classemix_c79274a1e67dde9cc2914054c69b596b}

\item 
Array$<$ {\bf epdf} $\ast$ $>$ \textbf{Coms}\label{classemix_7155d827417b53fb6aa5cff1459e6eb4}

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

\end{CompactItemize}


\subsection{Detailed Description}
Weighted mixture of epdfs with external owned components. 

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


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 file:\begin{CompactItemize}
\item 
work/mixpp/bdm/stat/{\bf libEF.h}\end{CompactItemize}
