17 | | Collaboration diagram for bdm::enorm$<$ sq\_\-T $>$:\nopagebreak |
18 | | \begin{figure}[H] |
19 | | \begin{center} |
20 | | \leavevmode |
21 | | \includegraphics[width=96pt]{classbdm_1_1enorm__coll__graph} |
22 | | \end{center} |
23 | | \end{figure} |
24 | | \subsection*{Public Member Functions} |
25 | | \begin{CompactItemize} |
26 | | \item |
27 | | \hypertarget{classbdm_1_1enorm_7d433390d6bbad337986945b63d7fbe9}{ |
28 | | \hyperlink{classbdm_1_1enorm_7d433390d6bbad337986945b63d7fbe9}{enorm} (const \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv})} |
29 | | \label{classbdm_1_1enorm_7d433390d6bbad337986945b63d7fbe9} |
30 | | |
31 | | \begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item |
| 14 | |
| 15 | |
| 16 | \subsection{Detailed Description} |
| 17 | \subsubsection*{template$<$class sq\_\-T$>$ class bdm::enorm$<$ sq\_\-T $>$} |
| 18 | |
| 19 | Gaussian density with positive definite (decomposed) covariance matrix. |
| 20 | |
| 21 | More?... \subsection*{Public Member Functions} |
| 22 | \begin{CompactItemize} |
| 23 | \item |
| 24 | \hypertarget{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}{ |
| 25 | virtual void \hyperlink{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}{dupdate} (mat \&v)} |
| 26 | \label{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a} |
| 27 | |
| 28 | \begin{CompactList}\small\item\em TODO decide if it is really needed. \item\end{CompactList}\item |
| 29 | \hypertarget{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}{ |
| 30 | virtual double \hyperlink{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}{evallog} (const vec \&val) const } |
| 31 | \label{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692} |
| 32 | |
| 33 | \begin{CompactList}\small\item\em Evaluate normalized log-probability. \item\end{CompactList}\item |
| 34 | \hypertarget{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}{ |
| 35 | virtual vec \hyperlink{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}{evallog} (const mat \&Val) const } |
| 36 | \label{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41} |
| 37 | |
| 38 | \begin{CompactList}\small\item\em Evaluate normalized log-probability for many samples. \item\end{CompactList}\item |
| 39 | \hypertarget{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}{ |
| 40 | virtual void \hyperlink{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}{pow} (double p)} |
| 41 | \label{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053} |
| 42 | |
| 43 | \begin{CompactList}\small\item\em Power of the density, used e.g. to flatten the density. \item\end{CompactList}\end{CompactItemize} |
| 44 | \begin{Indent}{\bf Constructors}\par |
| 45 | \begin{CompactItemize} |
| 46 | \item |
| 47 | \hypertarget{classbdm_1_1enorm_ccc42fd86d4532de03e0d2a0075e066c}{ |
| 48 | \textbf{enorm} ()} |
| 49 | \label{classbdm_1_1enorm_ccc42fd86d4532de03e0d2a0075e066c} |
| 50 | |
| 51 | \item |
| 52 | \hypertarget{classbdm_1_1enorm_4c9db749e205a0605ad9c93470f6dcaa}{ |
| 53 | \textbf{enorm} (const vec \&\hyperlink{classbdm_1_1enorm_c702a194720853570d08b65482f842c7}{mu}, const sq\_\-T \&\hyperlink{classbdm_1_1enorm_2d92dde696b2a7a5b10ddef5d22ba2c2}{R})} |
| 54 | \label{classbdm_1_1enorm_4c9db749e205a0605ad9c93470f6dcaa} |
| 55 | |
| 56 | \item |
101 | | \item |
102 | | \hypertarget{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}{ |
103 | | virtual void \hyperlink{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}{dupdate} (mat \&v)} |
104 | | \label{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a} |
105 | | |
106 | | \begin{CompactList}\small\item\em TODO decide if it is really needed. \item\end{CompactList}\item |
107 | | \hypertarget{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}{ |
108 | | virtual double \hyperlink{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}{evallog} (const vec \&val) const } |
109 | | \label{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692} |
110 | | |
111 | | \begin{CompactList}\small\item\em Evaluate normalized log-probability. \item\end{CompactList}\item |
112 | | \hypertarget{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}{ |
113 | | virtual vec \hyperlink{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}{evallog} (const mat \&Val) const } |
114 | | \label{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41} |
115 | | |
116 | | \begin{CompactList}\small\item\em Evaluate normalized log-probability for many samples. \item\end{CompactList}\item |
117 | | \hypertarget{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}{ |
118 | | virtual void \hyperlink{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}{pow} (double p)} |
119 | | \label{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053} |
120 | | |
121 | | \begin{CompactList}\small\item\em Power of the density, used e.g. to flatten the density. \item\end{CompactList}\item |
| 134 | \end{CompactItemize} |
| 135 | \end{Indent} |
| 136 | \begin{Indent}{\bf Matematical Operations}\par |
| 137 | \begin{CompactItemize} |
| 138 | \item |
131 | | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
| 148 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\end{CompactItemize} |
| 149 | \end{Indent} |
| 150 | \begin{Indent}{\bf Connection to other classes}\par |
| 151 | {\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} |
| 152 | \item |
| 153 | \hypertarget{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{ |
| 154 | void \hyperlink{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)} |
| 155 | \label{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff} |
| 156 | |
| 157 | \begin{CompactList}\small\item\em Name its rv. \item\end{CompactList}\item |
| 158 | \hypertarget{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{ |
| 159 | bool \hyperlink{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{isnamed} () const } |
| 160 | \label{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9} |
| 161 | |
| 162 | \begin{CompactList}\small\item\em True if rv is assigned. \item\end{CompactList}\item |
136 | | \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item |
137 | | \hypertarget{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{ |
138 | | void \hyperlink{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{\_\-renewrv} (const \hyperlink{classbdm_1_1RV}{RV} \&in\_\-rv)} |
139 | | \label{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f} |
140 | | |
141 | | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
| 167 | \begin{CompactList}\small\item\em Return name (fails when isnamed is false). \item\end{CompactList}\end{CompactItemize} |
| 168 | \end{Indent} |
| 169 | \begin{Indent}{\bf Access to attributes}\par |
| 170 | \begin{CompactItemize} |
| 171 | \item |
| 172 | \hypertarget{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}{ |
| 173 | bool \hyperlink{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b}{dimension} () const } |
| 174 | \label{classbdm_1_1epdf_46dfe100cd621716ee5c7ee25a20f24b} |
| 175 | |
| 176 | \begin{CompactList}\small\item\em Size of the random variable. \item\end{CompactList}\end{CompactItemize} |
| 177 | \end{Indent} |
155 | | \hypertarget{classbdm_1_1enorm_91a2d4a91364b0144e1523cad4d1135b}{ |
156 | | int \hyperlink{classbdm_1_1enorm_91a2d4a91364b0144e1523cad4d1135b}{dim}} |
157 | | \label{classbdm_1_1enorm_91a2d4a91364b0144e1523cad4d1135b} |
158 | | |
159 | | \begin{CompactList}\small\item\em dimension (redundant from rv.count() for easier coding ) \item\end{CompactList}\item |
| 191 | \hypertarget{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{ |
| 192 | int \hyperlink{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{dim}} |
| 193 | \label{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce} |
| 194 | |
| 195 | \begin{CompactList}\small\item\em dimension of the random variable \item\end{CompactList}\item |