[172] | 1 | \hypertarget{classeuni}{ |
---|
[30] | 2 | \section{euni Class Reference} |
---|
| 3 | \label{classeuni}\index{euni@{euni}} |
---|
[172] | 4 | } |
---|
[30] | 5 | Uniform distributed density on a rectangular support. |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | {\tt \#include $<$libEF.h$>$} |
---|
| 9 | |
---|
| 10 | Inheritance diagram for euni:\nopagebreak |
---|
| 11 | \begin{figure}[H] |
---|
| 12 | \begin{center} |
---|
| 13 | \leavevmode |
---|
[91] | 14 | \includegraphics[width=39pt]{classeuni__inherit__graph} |
---|
[30] | 15 | \end{center} |
---|
| 16 | \end{figure} |
---|
| 17 | Collaboration diagram for euni:\nopagebreak |
---|
| 18 | \begin{figure}[H] |
---|
| 19 | \begin{center} |
---|
| 20 | \leavevmode |
---|
[91] | 21 | \includegraphics[width=39pt]{classeuni__coll__graph} |
---|
[30] | 22 | \end{center} |
---|
| 23 | \end{figure} |
---|
| 24 | \subsection*{Public Member Functions} |
---|
| 25 | \begin{CompactItemize} |
---|
| 26 | \item |
---|
[172] | 27 | \hypertarget{classeuni_2537a6c239cff52e3ba814851a1116cd}{ |
---|
| 28 | \hyperlink{classeuni_2537a6c239cff52e3ba814851a1116cd}{euni} (const \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})} |
---|
| 29 | \label{classeuni_2537a6c239cff52e3ba814851a1116cd} |
---|
[30] | 30 | |
---|
[33] | 31 | \begin{CompactList}\small\item\em Defualt constructor. \item\end{CompactList}\item |
---|
[172] | 32 | \hypertarget{classeuni_2723d4992900b5c5495bfa03628195ed}{ |
---|
| 33 | double \hyperlink{classeuni_2723d4992900b5c5495bfa03628195ed}{eval} (const vec \&val) const } |
---|
| 34 | \label{classeuni_2723d4992900b5c5495bfa03628195ed} |
---|
[30] | 35 | |
---|
| 36 | \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item |
---|
[172] | 37 | \hypertarget{classeuni_06af95d514a6623ad4688bd2ad50ad71}{ |
---|
| 38 | double \hyperlink{classeuni_06af95d514a6623ad4688bd2ad50ad71}{evalpdflog} (const vec \&val) const } |
---|
| 39 | \label{classeuni_06af95d514a6623ad4688bd2ad50ad71} |
---|
[30] | 40 | |
---|
| 41 | \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item |
---|
[172] | 42 | \hypertarget{classeuni_4a0e09392be17beaee120ba98fc038cd}{ |
---|
| 43 | vec \hyperlink{classeuni_4a0e09392be17beaee120ba98fc038cd}{sample} () const } |
---|
| 44 | \label{classeuni_4a0e09392be17beaee120ba98fc038cd} |
---|
[30] | 45 | |
---|
[172] | 46 | \begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item |
---|
| 47 | \hypertarget{classeuni_4fd7c6a05100616ad16ece405cad7bf2}{ |
---|
| 48 | void \hyperlink{classeuni_4fd7c6a05100616ad16ece405cad7bf2}{set\_\-parameters} (const vec \&low0, const vec \&high0)} |
---|
| 49 | \label{classeuni_4fd7c6a05100616ad16ece405cad7bf2} |
---|
| 50 | |
---|
[33] | 51 | \begin{CompactList}\small\item\em set values of {\tt low} and {\tt high} \item\end{CompactList}\item |
---|
[172] | 52 | \hypertarget{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1}{ |
---|
| 53 | vec \hyperlink{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1}{mean} () const } |
---|
| 54 | \label{classeuni_8050087e421a9cfd1b4b1f8bd33b1cc1} |
---|
[30] | 55 | |
---|
[33] | 56 | \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item |
---|
[172] | 57 | \hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{ |
---|
| 58 | virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const } |
---|
| 59 | \label{classepdf_54d7dd53a641b618771cd9bee135181f} |
---|
[106] | 60 | |
---|
| 61 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
---|
[172] | 62 | \hypertarget{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{ |
---|
| 63 | virtual vec \hyperlink{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{evalpdflog} (const mat \&Val) const } |
---|
| 64 | \label{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877} |
---|
[33] | 65 | |
---|
[172] | 66 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
---|
| 67 | \hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{ |
---|
| 68 | const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const } |
---|
| 69 | \label{classepdf_ca0d32aabb4cbba347e0c37fe8607562} |
---|
| 70 | |
---|
| 71 | \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item |
---|
| 72 | \hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{ |
---|
| 73 | void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)} |
---|
| 74 | \label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5} |
---|
| 75 | |
---|
| 76 | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
---|
[30] | 77 | \subsection*{Protected Attributes} |
---|
| 78 | \begin{CompactItemize} |
---|
| 79 | \item |
---|
[172] | 80 | \hypertarget{classeuni_ef42cd8d7645422048d46c46ec5cdac1}{ |
---|
| 81 | vec \hyperlink{classeuni_ef42cd8d7645422048d46c46ec5cdac1}{low}} |
---|
| 82 | \label{classeuni_ef42cd8d7645422048d46c46ec5cdac1} |
---|
[30] | 83 | |
---|
| 84 | \begin{CompactList}\small\item\em lower bound on support \item\end{CompactList}\item |
---|
[172] | 85 | \hypertarget{classeuni_71b6d6b41aeb61a7f76f682b72119231}{ |
---|
| 86 | vec \hyperlink{classeuni_71b6d6b41aeb61a7f76f682b72119231}{high}} |
---|
| 87 | \label{classeuni_71b6d6b41aeb61a7f76f682b72119231} |
---|
[30] | 88 | |
---|
| 89 | \begin{CompactList}\small\item\em upper bound on support \item\end{CompactList}\item |
---|
[172] | 90 | \hypertarget{classeuni_52a6ff4a54010f88a6a19fca605c64a4}{ |
---|
| 91 | vec \hyperlink{classeuni_52a6ff4a54010f88a6a19fca605c64a4}{distance}} |
---|
| 92 | \label{classeuni_52a6ff4a54010f88a6a19fca605c64a4} |
---|
[30] | 93 | |
---|
| 94 | \begin{CompactList}\small\item\em internal \item\end{CompactList}\item |
---|
[172] | 95 | \hypertarget{classeuni_63105490e946e43372d6187ad1bafdda}{ |
---|
| 96 | double \hyperlink{classeuni_63105490e946e43372d6187ad1bafdda}{nk}} |
---|
| 97 | \label{classeuni_63105490e946e43372d6187ad1bafdda} |
---|
[30] | 98 | |
---|
| 99 | \begin{CompactList}\small\item\em normalizing coefficients \item\end{CompactList}\item |
---|
[172] | 100 | \hypertarget{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}{ |
---|
| 101 | double \hyperlink{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}{lnk}} |
---|
| 102 | \label{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3} |
---|
[30] | 103 | |
---|
[33] | 104 | \begin{CompactList}\small\item\em cache of log( {\tt nk} ) \item\end{CompactList}\item |
---|
[172] | 105 | \hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{ |
---|
| 106 | \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}} |
---|
| 107 | \label{classepdf_74da992e3f5d598da8850b646b79b9d9} |
---|
[30] | 108 | |
---|
[33] | 109 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
---|
[30] | 110 | |
---|
| 111 | |
---|
| 112 | \subsection{Detailed Description} |
---|
| 113 | Uniform distributed density on a rectangular support. |
---|
| 114 | |
---|
| 115 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
| 116 | \item |
---|
[172] | 117 | work/git/mixpp/bdm/stat/\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize} |
---|