\hypertarget{classbdm_1_1euni}{ \section{bdm::euni Class Reference} \label{classbdm_1_1euni}\index{bdm::euni@{bdm::euni}} } {\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} \subsection{Detailed Description} Uniform distributed density on a rectangular support. \subsection*{Public Member Functions} \begin{CompactItemize} \item \hypertarget{classbdm_1_1euni_8887b088e3ab0b01e96b88237d707b97}{ \hyperlink{classbdm_1_1euni_8887b088e3ab0b01e96b88237d707b97}{euni} ()} \label{classbdm_1_1euni_8887b088e3ab0b01e96b88237d707b97} \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 $ f_x()$. \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}\end{CompactItemize} \begin{Indent}{\bf Matematical Operations}\par \begin{CompactItemize} \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, $ [x_1 , x_2 , \ldots \ $ from density $ f_x(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}\end{CompactItemize} \end{Indent} \begin{Indent}{\bf Connection to other classes}\par {\em Description of the random quantity via attribute {\tt rv} is optional. For operations such as sampling {\tt rv} does not need to be set. However, for {\tt marginalization} and {\tt conditioning} {\tt rv} has to be set. NB: }\begin{CompactItemize} \item \hypertarget{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{ void \hyperlink{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)} \label{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff} \begin{CompactList}\small\item\em Name its rv. \item\end{CompactList}\item \hypertarget{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{ bool \hyperlink{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{isnamed} () const } \label{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9} \begin{CompactList}\small\item\em True if rv is assigned. \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 Return name (fails when isnamed is false). \item\end{CompactList}\end{CompactItemize} \end{Indent} \begin{Indent}{\bf Access to attributes}\par \begin{CompactItemize} \item \hypertarget{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}{ bool \hyperlink{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}{dimension} () const } \label{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b} \begin{CompactList}\small\item\em Size of the random variable. \item\end{CompactList}\end{CompactItemize} \end{Indent} \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_16adac20ec7fe07e1ea0b27d917788ce}{ int \hyperlink{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{dim}} \label{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce} \begin{CompactList}\small\item\em dimension of the random variable \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 Description of the random variable. \item\end{CompactList}\end{CompactItemize} The documentation for this class was generated from the following file:\begin{CompactItemize} \item \hyperlink{libEF_8h}{libEF.h}\end{CompactItemize}