\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 {\bf euni} (const {\bf RV} {\bf rv})\label{classeuni_2537a6c239cff52e3ba814851a1116cd} \begin{CompactList}\small\item\em Defualt constructor. \item\end{CompactList}\item double {\bf eval} (const vec \&val) const \label{classeuni_2723d4992900b5c5495bfa03628195ed} \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item double {\bf evalpdflog} (const vec \&val) const \label{classeuni_06af95d514a6623ad4688bd2ad50ad71} \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item vec {\bf sample} () const \begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item void {\bf 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 vec {\bf mean} () const \label{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1} \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item virtual mat {\bf sampleN} (int N) const \label{classepdf_54d7dd53a641b618771cd9bee135181f} \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item {\bf RV} \& {\bf \_\-rv} ()\label{classepdf_4778ea61ef400813e47750e024e9fc2f} \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\end{CompactItemize} \subsection*{Protected Attributes} \begin{CompactItemize} \item vec {\bf low}\label{classeuni_ef42cd8d7645422048d46c46ec5cdac1} \begin{CompactList}\small\item\em lower bound on support \item\end{CompactList}\item vec {\bf high}\label{classeuni_71b6d6b41aeb61a7f76f682b72119231} \begin{CompactList}\small\item\em upper bound on support \item\end{CompactList}\item vec {\bf distance}\label{classeuni_52a6ff4a54010f88a6a19fca605c64a4} \begin{CompactList}\small\item\em internal \item\end{CompactList}\item double {\bf nk}\label{classeuni_63105490e946e43372d6187ad1bafdda} \begin{CompactList}\small\item\em normalizing coefficients \item\end{CompactList}\item double {\bf lnk}\label{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3} \begin{CompactList}\small\item\em cache of log( {\tt nk} ) \item\end{CompactList}\item {\bf RV} {\bf 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. \subsection{Member Function Documentation} \index{euni@{euni}!sample@{sample}} \index{sample@{sample}!euni@{euni}} \subsubsection[sample]{\setlength{\rightskip}{0pt plus 5cm}vec euni::sample () const\hspace{0.3cm}{\tt [inline, virtual]}}\label{classeuni_4a0e09392be17beaee120ba98fc038cd} Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. Returns a sample, $x$ from density $epdf(rv)$ Implements {\bf epdf} \doxyref{}{p.}{classepdf_8019654e494bf5e458f6fb947e11b262}. References RV::count(), distance, low, and epdf::rv. The documentation for this class was generated from the following file:\begin{CompactItemize} \item work/git/mixpp/bdm/stat/{\bf libEF.h}\end{CompactItemize}