[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}{ |
---|
[210] | 33 | double \textbf{eval} (const vec \&val) const } |
---|
[172] | 34 | \label{classeuni_2723d4992900b5c5495bfa03628195ed} |
---|
[30] | 35 | |
---|
[210] | 36 | \item |
---|
[219] | 37 | \hypertarget{classeuni_357b36417ef4c9211d12e7a4a602fd6a}{ |
---|
| 38 | double \hyperlink{classeuni_357b36417ef4c9211d12e7a4a602fd6a}{evallog} (const vec \&val) const } |
---|
| 39 | \label{classeuni_357b36417ef4c9211d12e7a4a602fd6a} |
---|
[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 |
---|
[210] | 57 | \hypertarget{classepdf_76608914c3b19e150292d5c56e93e508}{ |
---|
| 58 | virtual mat \hyperlink{classepdf_76608914c3b19e150292d5c56e93e508}{sample\_\-m} (int N) const } |
---|
| 59 | \label{classepdf_76608914c3b19e150292d5c56e93e508} |
---|
[106] | 60 | |
---|
| 61 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
---|
[219] | 62 | \hypertarget{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{ |
---|
| 63 | virtual vec \hyperlink{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{evallog\_\-m} (const mat \&Val) const } |
---|
| 64 | \label{classepdf_2495a04bbacb9b55fe5a3a59b78affca} |
---|
[33] | 65 | |
---|
[172] | 66 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
---|
[210] | 67 | \hypertarget{classepdf_e87dc8260a5c37bc1b03eb66174741a0}{ |
---|
| 68 | virtual \hyperlink{classmpdf}{mpdf} $\ast$ \hyperlink{classepdf_e87dc8260a5c37bc1b03eb66174741a0}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const } |
---|
| 69 | \label{classepdf_e87dc8260a5c37bc1b03eb66174741a0} |
---|
[181] | 70 | |
---|
| 71 | \begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classRV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item |
---|
[210] | 72 | \hypertarget{classepdf_38de9f59b65ee06028554f3f74b66025}{ |
---|
| 73 | virtual \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classepdf_38de9f59b65ee06028554f3f74b66025}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const } |
---|
| 74 | \label{classepdf_38de9f59b65ee06028554f3f74b66025} |
---|
[181] | 75 | |
---|
| 76 | \begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classRV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item |
---|
[172] | 77 | \hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{ |
---|
| 78 | const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const } |
---|
| 79 | \label{classepdf_ca0d32aabb4cbba347e0c37fe8607562} |
---|
| 80 | |
---|
| 81 | \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item |
---|
| 82 | \hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{ |
---|
| 83 | void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)} |
---|
| 84 | \label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5} |
---|
| 85 | |
---|
| 86 | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
---|
[30] | 87 | \subsection*{Protected Attributes} |
---|
| 88 | \begin{CompactItemize} |
---|
| 89 | \item |
---|
[172] | 90 | \hypertarget{classeuni_ef42cd8d7645422048d46c46ec5cdac1}{ |
---|
| 91 | vec \hyperlink{classeuni_ef42cd8d7645422048d46c46ec5cdac1}{low}} |
---|
| 92 | \label{classeuni_ef42cd8d7645422048d46c46ec5cdac1} |
---|
[30] | 93 | |
---|
| 94 | \begin{CompactList}\small\item\em lower bound on support \item\end{CompactList}\item |
---|
[172] | 95 | \hypertarget{classeuni_71b6d6b41aeb61a7f76f682b72119231}{ |
---|
| 96 | vec \hyperlink{classeuni_71b6d6b41aeb61a7f76f682b72119231}{high}} |
---|
| 97 | \label{classeuni_71b6d6b41aeb61a7f76f682b72119231} |
---|
[30] | 98 | |
---|
| 99 | \begin{CompactList}\small\item\em upper bound on support \item\end{CompactList}\item |
---|
[172] | 100 | \hypertarget{classeuni_52a6ff4a54010f88a6a19fca605c64a4}{ |
---|
| 101 | vec \hyperlink{classeuni_52a6ff4a54010f88a6a19fca605c64a4}{distance}} |
---|
| 102 | \label{classeuni_52a6ff4a54010f88a6a19fca605c64a4} |
---|
[30] | 103 | |
---|
| 104 | \begin{CompactList}\small\item\em internal \item\end{CompactList}\item |
---|
[172] | 105 | \hypertarget{classeuni_63105490e946e43372d6187ad1bafdda}{ |
---|
| 106 | double \hyperlink{classeuni_63105490e946e43372d6187ad1bafdda}{nk}} |
---|
| 107 | \label{classeuni_63105490e946e43372d6187ad1bafdda} |
---|
[30] | 108 | |
---|
| 109 | \begin{CompactList}\small\item\em normalizing coefficients \item\end{CompactList}\item |
---|
[172] | 110 | \hypertarget{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}{ |
---|
| 111 | double \hyperlink{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3}{lnk}} |
---|
| 112 | \label{classeuni_f445a0ce24f39d14c1a4eed53fc8e2c3} |
---|
[30] | 113 | |
---|
[33] | 114 | \begin{CompactList}\small\item\em cache of log( {\tt nk} ) \item\end{CompactList}\item |
---|
[172] | 115 | \hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{ |
---|
| 116 | \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}} |
---|
| 117 | \label{classepdf_74da992e3f5d598da8850b646b79b9d9} |
---|
[30] | 118 | |
---|
[33] | 119 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
---|
[30] | 120 | |
---|
| 121 | |
---|
| 122 | \subsection{Detailed Description} |
---|
| 123 | Uniform distributed density on a rectangular support. |
---|
| 124 | |
---|
| 125 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
| 126 | \item |
---|
[172] | 127 | work/git/mixpp/bdm/stat/\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize} |
---|