\hypertarget{classeuni}{
\section{euni Class Reference}
\label{classeuni}\index{euni@{euni}}
}
Uniform distributed density on a rectangular support.  


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

Inheritance diagram for euni:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=39pt]{classeuni__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for euni:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=39pt]{classeuni__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classeuni_2537a6c239cff52e3ba814851a1116cd}{
\hyperlink{classeuni_2537a6c239cff52e3ba814851a1116cd}{euni} (const \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
\label{classeuni_2537a6c239cff52e3ba814851a1116cd}

\begin{CompactList}\small\item\em Defualt constructor. \item\end{CompactList}\item 
\hypertarget{classeuni_2723d4992900b5c5495bfa03628195ed}{
double \textbf{eval} (const vec \&val) const }
\label{classeuni_2723d4992900b5c5495bfa03628195ed}

\item 
\hypertarget{classeuni_357b36417ef4c9211d12e7a4a602fd6a}{
double \hyperlink{classeuni_357b36417ef4c9211d12e7a4a602fd6a}{evallog} (const vec \&val) const }
\label{classeuni_357b36417ef4c9211d12e7a4a602fd6a}

\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item 
\hypertarget{classeuni_4a0e09392be17beaee120ba98fc038cd}{
vec \hyperlink{classeuni_4a0e09392be17beaee120ba98fc038cd}{sample} () const }
\label{classeuni_4a0e09392be17beaee120ba98fc038cd}

\begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item 
\hypertarget{classeuni_4fd7c6a05100616ad16ece405cad7bf2}{
void \hyperlink{classeuni_4fd7c6a05100616ad16ece405cad7bf2}{set\_\-parameters} (const vec \&low0, const vec \&high0)}
\label{classeuni_4fd7c6a05100616ad16ece405cad7bf2}

\begin{CompactList}\small\item\em set values of {\tt low} and {\tt high} \item\end{CompactList}\item 
\hypertarget{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1}{
vec \hyperlink{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1}{mean} () const }
\label{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1}

\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
\hypertarget{classepdf_76608914c3b19e150292d5c56e93e508}{
virtual mat \hyperlink{classepdf_76608914c3b19e150292d5c56e93e508}{sample\_\-m} (int N) const }
\label{classepdf_76608914c3b19e150292d5c56e93e508}

\begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item 
\hypertarget{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{
virtual vec \hyperlink{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{evallog\_\-m} (const mat \&Val) const }
\label{classepdf_2495a04bbacb9b55fe5a3a59b78affca}

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

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

\begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classRV}{RV}, the remainig rvs are intergrated out. \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{classeuni_ef42cd8d7645422048d46c46ec5cdac1}{
vec \hyperlink{classeuni_ef42cd8d7645422048d46c46ec5cdac1}{low}}
\label{classeuni_ef42cd8d7645422048d46c46ec5cdac1}

\begin{CompactList}\small\item\em lower bound on support \item\end{CompactList}\item 
\hypertarget{classeuni_71b6d6b41aeb61a7f76f682b72119231}{
vec \hyperlink{classeuni_71b6d6b41aeb61a7f76f682b72119231}{high}}
\label{classeuni_71b6d6b41aeb61a7f76f682b72119231}

\begin{CompactList}\small\item\em upper bound on support \item\end{CompactList}\item 
\hypertarget{classeuni_52a6ff4a54010f88a6a19fca605c64a4}{
vec \hyperlink{classeuni_52a6ff4a54010f88a6a19fca605c64a4}{distance}}
\label{classeuni_52a6ff4a54010f88a6a19fca605c64a4}

\begin{CompactList}\small\item\em internal \item\end{CompactList}\item 
\hypertarget{classeuni_63105490e946e43372d6187ad1bafdda}{
double \hyperlink{classeuni_63105490e946e43372d6187ad1bafdda}{nk}}
\label{classeuni_63105490e946e43372d6187ad1bafdda}

\begin{CompactList}\small\item\em normalizing coefficients \item\end{CompactList}\item 
\hypertarget{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}{
double \hyperlink{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}{lnk}}
\label{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}

\begin{CompactList}\small\item\em cache of log( {\tt nk} ) \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}
Uniform distributed density on a rectangular support. 

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
work/git/mixpp/bdm/stat/\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize}
