\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 \hyperlink{classeuni_2723d4992900b5c5495bfa03628195ed}{eval} (const vec \&val) const }
\label{classeuni_2723d4992900b5c5495bfa03628195ed}

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

\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_54d7dd53a641b618771cd9bee135181f}{
virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const }
\label{classepdf_54d7dd53a641b618771cd9bee135181f}

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

\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \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}
