root/doc/latex/classbdm_1_1enorm.tex @ 271

Revision 271, 11.5 kB (checked in by smidl, 16 years ago)

Next major revision

Line 
1\hypertarget{classbdm_1_1enorm}{
2\section{bdm::enorm$<$ sq\_\-T $>$ Class Template Reference}
3\label{classbdm_1_1enorm}\index{bdm::enorm@{bdm::enorm}}
4}
5{\tt \#include $<$libEF.h$>$}
6
7Inheritance diagram for bdm::enorm$<$ sq\_\-T $>$::\begin{figure}[H]
8\begin{center}
9\leavevmode
10\includegraphics[height=4cm]{classbdm_1_1enorm}
11\end{center}
12\end{figure}
13
14
15\subsection{Detailed Description}
16\subsubsection*{template$<$class sq\_\-T$>$ class bdm::enorm$<$ sq\_\-T $>$}
17
18Gaussian density with positive definite (decomposed) covariance matrix.
19
20More?... \subsection*{Public Member Functions}
21\begin{CompactItemize}
22\item 
23\hypertarget{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}{
24virtual void \hyperlink{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}{dupdate} (mat \&v)}
25\label{classbdm_1_1eEF_deef7d6273ba4d5a5cf0bbd91ec7277a}
26
27\begin{CompactList}\small\item\em TODO decide if it is really needed. \item\end{CompactList}\item 
28\hypertarget{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}{
29virtual double \hyperlink{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}{evallog} (const vec \&val) const }
30\label{classbdm_1_1eEF_a36d06ecdd6f4c79dc122510eaccc692}
31
32\begin{CompactList}\small\item\em Evaluate normalized log-probability. \item\end{CompactList}\item 
33\hypertarget{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}{
34virtual vec \hyperlink{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}{evallog} (const mat \&Val) const }
35\label{classbdm_1_1eEF_79a7c8ea8c02e45d410bd1d7ffd72b41}
36
37\begin{CompactList}\small\item\em Evaluate normalized log-probability for many samples. \item\end{CompactList}\item 
38\hypertarget{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}{
39virtual void \hyperlink{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}{pow} (double p)}
40\label{classbdm_1_1eEF_cf38af29e8e3d650c640509a52396053}
41
42\begin{CompactList}\small\item\em Power of the density, used e.g. to flatten the density. \item\end{CompactList}\end{CompactItemize}
43\begin{Indent}{\bf Constructors}\par
44\begin{CompactItemize}
45\item 
46\hypertarget{classbdm_1_1enorm_ccc42fd86d4532de03e0d2a0075e066c}{
47\textbf{enorm} ()}
48\label{classbdm_1_1enorm_ccc42fd86d4532de03e0d2a0075e066c}
49
50\item 
51\hypertarget{classbdm_1_1enorm_4c9db749e205a0605ad9c93470f6dcaa}{
52\textbf{enorm} (const vec \&\hyperlink{classbdm_1_1enorm_c702a194720853570d08b65482f842c7}{mu}, const sq\_\-T \&\hyperlink{classbdm_1_1enorm_2d92dde696b2a7a5b10ddef5d22ba2c2}{R})}
53\label{classbdm_1_1enorm_4c9db749e205a0605ad9c93470f6dcaa}
54
55\item 
56\hypertarget{classbdm_1_1enorm_b8322f2c11560871dd922c660f4771bb}{
57void \textbf{set\_\-parameters} (const vec \&\hyperlink{classbdm_1_1enorm_c702a194720853570d08b65482f842c7}{mu}, const sq\_\-T \&\hyperlink{classbdm_1_1enorm_2d92dde696b2a7a5b10ddef5d22ba2c2}{R})}
58\label{classbdm_1_1enorm_b8322f2c11560871dd922c660f4771bb}
59
60\end{CompactItemize}
61\end{Indent}
62\begin{Indent}{\bf Mathematical operations}\par
63\begin{CompactItemize}
64\item 
65\hypertarget{classbdm_1_1enorm_d2e0d3a1e30ab3ab04df2d0c43ae74a2}{
66void \hyperlink{classbdm_1_1enorm_d2e0d3a1e30ab3ab04df2d0c43ae74a2}{dupdate} (mat \&v, double nu=1.0)}
67\label{classbdm_1_1enorm_d2e0d3a1e30ab3ab04df2d0c43ae74a2}
68
69\begin{CompactList}\small\item\em dupdate in exponential form (not really handy) \item\end{CompactList}\item 
70\hypertarget{classbdm_1_1enorm_e1a48f52351ec3a349bd443b713b1766}{
71vec \hyperlink{classbdm_1_1enorm_e1a48f52351ec3a349bd443b713b1766}{sample} () const }
72\label{classbdm_1_1enorm_e1a48f52351ec3a349bd443b713b1766}
73
74\begin{CompactList}\small\item\em Returns a sample, $ x $ from density $ f_x()$. \item\end{CompactList}\item 
75\hypertarget{classbdm_1_1enorm_ebd96125aed74f9504033bb3605849db}{
76mat \textbf{sample} (int N) const }
77\label{classbdm_1_1enorm_ebd96125aed74f9504033bb3605849db}
78
79\item 
80\hypertarget{classbdm_1_1enorm_e13aeed5b543b2179bacdc4fa2ae47a3}{
81double \hyperlink{classbdm_1_1enorm_e13aeed5b543b2179bacdc4fa2ae47a3}{evallog\_\-nn} (const vec \&val) const }
82\label{classbdm_1_1enorm_e13aeed5b543b2179bacdc4fa2ae47a3}
83
84\begin{CompactList}\small\item\em Evaluate normalized log-probability. \item\end{CompactList}\item 
85\hypertarget{classbdm_1_1enorm_25785343aff102cc5df1cab08ba16d32}{
86double \hyperlink{classbdm_1_1enorm_25785343aff102cc5df1cab08ba16d32}{lognc} () const }
87\label{classbdm_1_1enorm_25785343aff102cc5df1cab08ba16d32}
88
89\begin{CompactList}\small\item\em logarithm of the normalizing constant, $\mathcal{I}$ \item\end{CompactList}\item 
90\hypertarget{classbdm_1_1enorm_b2fa2915c35366392fe9bb022ca1a600}{
91vec \hyperlink{classbdm_1_1enorm_b2fa2915c35366392fe9bb022ca1a600}{mean} () const }
92\label{classbdm_1_1enorm_b2fa2915c35366392fe9bb022ca1a600}
93
94\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
95\hypertarget{classbdm_1_1enorm_729c75ef0fa8abae03d58ad1f81e6773}{
96vec \hyperlink{classbdm_1_1enorm_729c75ef0fa8abae03d58ad1f81e6773}{variance} () const }
97\label{classbdm_1_1enorm_729c75ef0fa8abae03d58ad1f81e6773}
98
99\begin{CompactList}\small\item\em return expected variance (not covariance!) \item\end{CompactList}\item 
100\hypertarget{classbdm_1_1enorm_baea4d49c657342b58297d68cda16d26}{
101\hyperlink{classbdm_1_1mpdf}{mpdf} $\ast$ \hyperlink{classbdm_1_1enorm_baea4d49c657342b58297d68cda16d26}{condition} (const \hyperlink{classbdm_1_1RV}{RV} \&rvn) const }
102\label{classbdm_1_1enorm_baea4d49c657342b58297d68cda16d26}
103
104\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 
105\hypertarget{classbdm_1_1enorm_cd02d76e9d4f96bdd3fa6b604e273039}{
106\hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1enorm_cd02d76e9d4f96bdd3fa6b604e273039}{marginal} (const \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}) const }
107\label{classbdm_1_1enorm_cd02d76e9d4f96bdd3fa6b604e273039}
108
109\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}
110\end{Indent}
111\begin{Indent}{\bf Access to attributes}\par
112\begin{CompactItemize}
113\item 
114\hypertarget{classbdm_1_1enorm_766127847e9482aea9226ea157295ea2}{
115vec \& \textbf{\_\-mu} ()}
116\label{classbdm_1_1enorm_766127847e9482aea9226ea157295ea2}
117
118\item 
119\hypertarget{classbdm_1_1enorm_8915d68ae76ad185c8c314f960a63f0c}{
120void \textbf{set\_\-mu} (const vec mu0)}
121\label{classbdm_1_1enorm_8915d68ae76ad185c8c314f960a63f0c}
122
123\item 
124\hypertarget{classbdm_1_1enorm_81d81e35e57c9f194bde248e3affcf1f}{
125sq\_\-T \& \textbf{\_\-R} ()}
126\label{classbdm_1_1enorm_81d81e35e57c9f194bde248e3affcf1f}
127
128\item 
129\hypertarget{classbdm_1_1enorm_8c664b024e79f18ca3f8e8cc81af2103}{
130const sq\_\-T \& \textbf{\_\-R} () const }
131\label{classbdm_1_1enorm_8c664b024e79f18ca3f8e8cc81af2103}
132
133\end{CompactItemize}
134\end{Indent}
135\begin{Indent}{\bf Constructors}\par
136{\em Construction of each \hyperlink{classbdm_1_1epdf}{epdf} should support two types of constructors: \begin{itemize}
137\item empty constructor, \item copy constructor,\end{itemize}
138The following constructors should be supported for convenience: \begin{itemize}
139\item constructor followed by calling {\tt set\_\-parameters()} \item constructor accepting random variables calling {\tt \hyperlink{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{set\_\-rv()}} \end{itemize}
140All internal data structures are constructed as empty. Their values (including sizes) will be set by method {\tt set\_\-parameters()}. This way references can be initialized in constructors. }\begin{CompactItemize}
141\item 
142\hypertarget{classbdm_1_1epdf_840de94aa33cf4f2ebd2427f45a165d8}{
143void \textbf{set\_\-parameters} (int dim0)}
144\label{classbdm_1_1epdf_840de94aa33cf4f2ebd2427f45a165d8}
145
146\end{CompactItemize}
147\end{Indent}
148\begin{Indent}{\bf Matematical Operations}\par
149\begin{CompactItemize}
150\item 
151\hypertarget{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{
152virtual mat \hyperlink{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{sample\_\-m} (int N) const }
153\label{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}
154
155\begin{CompactList}\small\item\em Returns N samples, $ [x_1 , x_2 , \ldots \ $ from density $ f_x(rv)$. \item\end{CompactList}\item 
156\hypertarget{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}{
157virtual vec \hyperlink{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}{evallog\_\-m} (const mat \&Val) const }
158\label{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}
159
160\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\end{CompactItemize}
161\end{Indent}
162\begin{Indent}{\bf Connection to other classes}\par
163{\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}
164\item 
165\hypertarget{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{
166void \hyperlink{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)}
167\label{classbdm_1_1epdf_f423e28448dbb69ef4905295ec8de8ff}
168
169\begin{CompactList}\small\item\em Name its rv. \item\end{CompactList}\item 
170\hypertarget{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{
171bool \hyperlink{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}{isnamed} () const }
172\label{classbdm_1_1epdf_c4b863ff84c7a4882fb3ad18556027f9}
173
174\begin{CompactList}\small\item\em True if rv is assigned. \item\end{CompactList}\item 
175\hypertarget{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{
176const \hyperlink{classbdm_1_1RV}{RV} \& \hyperlink{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{\_\-rv} () const }
177\label{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}
178
179\begin{CompactList}\small\item\em Return name (fails when isnamed is false). \item\end{CompactList}\end{CompactItemize}
180\end{Indent}
181\begin{Indent}{\bf Access to attributes}\par
182\begin{CompactItemize}
183\item 
184\hypertarget{classbdm_1_1epdf_7083a65f7b7a0d0d13b2c516bd2ec29c}{
185int \hyperlink{classbdm_1_1epdf_7083a65f7b7a0d0d13b2c516bd2ec29c}{dimension} () const }
186\label{classbdm_1_1epdf_7083a65f7b7a0d0d13b2c516bd2ec29c}
187
188\begin{CompactList}\small\item\em Size of the random variable. \item\end{CompactList}\end{CompactItemize}
189\end{Indent}
190\subsection*{Protected Attributes}
191\begin{CompactItemize}
192\item 
193\hypertarget{classbdm_1_1enorm_c702a194720853570d08b65482f842c7}{
194vec \hyperlink{classbdm_1_1enorm_c702a194720853570d08b65482f842c7}{mu}}
195\label{classbdm_1_1enorm_c702a194720853570d08b65482f842c7}
196
197\begin{CompactList}\small\item\em mean value \item\end{CompactList}\item 
198\hypertarget{classbdm_1_1enorm_2d92dde696b2a7a5b10ddef5d22ba2c2}{
199sq\_\-T \hyperlink{classbdm_1_1enorm_2d92dde696b2a7a5b10ddef5d22ba2c2}{R}}
200\label{classbdm_1_1enorm_2d92dde696b2a7a5b10ddef5d22ba2c2}
201
202\begin{CompactList}\small\item\em Covariance matrix in decomposed form. \item\end{CompactList}\item 
203\hypertarget{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{
204int \hyperlink{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}{dim}}
205\label{classbdm_1_1epdf_16adac20ec7fe07e1ea0b27d917788ce}
206
207\begin{CompactList}\small\item\em dimension of the random variable \item\end{CompactList}\item 
208\hypertarget{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{
209\hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}}
210\label{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}
211
212\begin{CompactList}\small\item\em Description of the random variable. \item\end{CompactList}\end{CompactItemize}
213
214
215The documentation for this class was generated from the following file:\begin{CompactItemize}
216\item 
217\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.