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


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

Inheritance diagram for bdm::euni:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=64pt]{classbdm_1_1euni__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for bdm::euni:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classbdm_1_1euni__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1euni_dca02eda833d6295e0c19f6e120b64e0}{
\hyperlink{classbdm_1_1euni_dca02eda833d6295e0c19f6e120b64e0}{euni} (const \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv})}
\label{classbdm_1_1euni_dca02eda833d6295e0c19f6e120b64e0}

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

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

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

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

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

\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
\hypertarget{classbdm_1_1euni_951f932155111f6053c980f672b4c22c}{
vec \hyperlink{classbdm_1_1euni_951f932155111f6053c980f672b4c22c}{variance} () const }
\label{classbdm_1_1euni_951f932155111f6053c980f672b4c22c}

\begin{CompactList}\small\item\em return expected variance (not covariance!) \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{
virtual mat \hyperlink{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{sample\_\-m} (int N) const }
\label{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}

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

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

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

\begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classbdm_1_1RV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{
const \hyperlink{classbdm_1_1RV}{RV} \& \hyperlink{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{\_\-rv} () const }
\label{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}

\begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{
void \hyperlink{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{\_\-renewrv} (const \hyperlink{classbdm_1_1RV}{RV} \&in\_\-rv)}
\label{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}

\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
\hypertarget{classbdm_1_1euni_ff7ce6a2ef5ef0015bbd1398bed12f32}{
vec \hyperlink{classbdm_1_1euni_ff7ce6a2ef5ef0015bbd1398bed12f32}{low}}
\label{classbdm_1_1euni_ff7ce6a2ef5ef0015bbd1398bed12f32}

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

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

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

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

\begin{CompactList}\small\item\em cache of log( {\tt nk} ) \item\end{CompactList}\item 
\hypertarget{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{
\hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}}
\label{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}

\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 
\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize}
