1 | \hypertarget{classenorm}{ |
---|
2 | \section{enorm$<$ sq\_\-T $>$ Class Template Reference} |
---|
3 | \label{classenorm}\index{enorm@{enorm}} |
---|
4 | } |
---|
5 | Gaussian density with positive definite (decomposed) covariance matrix. |
---|
6 | |
---|
7 | |
---|
8 | {\tt \#include $<$libEF.h$>$} |
---|
9 | |
---|
10 | Inheritance diagram for enorm$<$ sq\_\-T $>$:\nopagebreak |
---|
11 | \begin{figure}[H] |
---|
12 | \begin{center} |
---|
13 | \leavevmode |
---|
14 | \includegraphics[width=171pt]{classenorm__inherit__graph} |
---|
15 | \end{center} |
---|
16 | \end{figure} |
---|
17 | Collaboration diagram for enorm$<$ sq\_\-T $>$:\nopagebreak |
---|
18 | \begin{figure}[H] |
---|
19 | \begin{center} |
---|
20 | \leavevmode |
---|
21 | \includegraphics[width=69pt]{classenorm__coll__graph} |
---|
22 | \end{center} |
---|
23 | \end{figure} |
---|
24 | \subsection*{Public Member Functions} |
---|
25 | \begin{CompactItemize} |
---|
26 | \item |
---|
27 | \hypertarget{classenorm_7b5cb487a2570e8109bfdc0df149aa06}{ |
---|
28 | \hyperlink{classenorm_7b5cb487a2570e8109bfdc0df149aa06}{enorm} (\hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})} |
---|
29 | \label{classenorm_7b5cb487a2570e8109bfdc0df149aa06} |
---|
30 | |
---|
31 | \begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item |
---|
32 | \hypertarget{classenorm_1394a65caa6e00d42e00cc99b12227af}{ |
---|
33 | void \hyperlink{classenorm_1394a65caa6e00d42e00cc99b12227af}{set\_\-parameters} (const vec \&\hyperlink{classenorm_71fde0d54bba147e00f612577f95ad20}{mu}, const sq\_\-T \&\hyperlink{classenorm_4ccc8d8514d644ef1c98d8ab023748a1}{R})} |
---|
34 | \label{classenorm_1394a65caa6e00d42e00cc99b12227af} |
---|
35 | |
---|
36 | \begin{CompactList}\small\item\em Set mean value {\tt mu} and covariance {\tt R}. \item\end{CompactList}\item |
---|
37 | \hypertarget{classenorm_5b5fd142b6b17ea334597960e3fe126a}{ |
---|
38 | void \hyperlink{classenorm_5b5fd142b6b17ea334597960e3fe126a}{tupdate} (double phi, mat \&vbar, double nubar)} |
---|
39 | \label{classenorm_5b5fd142b6b17ea334597960e3fe126a} |
---|
40 | |
---|
41 | \begin{CompactList}\small\item\em tupdate in exponential form (not really handy) \item\end{CompactList}\item |
---|
42 | \hypertarget{classenorm_5bf185e31e5954fceb90ada3debd2ff2}{ |
---|
43 | void \hyperlink{classenorm_5bf185e31e5954fceb90ada3debd2ff2}{dupdate} (mat \&v, double nu=1.0)} |
---|
44 | \label{classenorm_5bf185e31e5954fceb90ada3debd2ff2} |
---|
45 | |
---|
46 | \begin{CompactList}\small\item\em dupdate in exponential form (not really handy) \item\end{CompactList}\item |
---|
47 | \hypertarget{classenorm_60b47544f6181ffd4530d3e415ce12c5}{ |
---|
48 | vec \hyperlink{classenorm_60b47544f6181ffd4530d3e415ce12c5}{sample} () const } |
---|
49 | \label{classenorm_60b47544f6181ffd4530d3e415ce12c5} |
---|
50 | |
---|
51 | \begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item |
---|
52 | \hypertarget{classenorm_60f0f3bfa53d6e65843eea9532b16d36}{ |
---|
53 | mat \hyperlink{classenorm_60f0f3bfa53d6e65843eea9532b16d36}{sample} (int N) const } |
---|
54 | \label{classenorm_60f0f3bfa53d6e65843eea9532b16d36} |
---|
55 | |
---|
56 | \begin{CompactList}\small\item\em TODO is it used? \item\end{CompactList}\item |
---|
57 | \hypertarget{classenorm_b9e1dfd33692d7b3f1a59f17b0e61bd0}{ |
---|
58 | double \hyperlink{classenorm_b9e1dfd33692d7b3f1a59f17b0e61bd0}{eval} (const vec \&val) const } |
---|
59 | \label{classenorm_b9e1dfd33692d7b3f1a59f17b0e61bd0} |
---|
60 | |
---|
61 | \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item |
---|
62 | \hypertarget{classenorm_c1e3dcba256b0153cfdb286120e110be}{ |
---|
63 | double \hyperlink{classenorm_c1e3dcba256b0153cfdb286120e110be}{evalpdflog\_\-nn} (const vec \&val) const } |
---|
64 | \label{classenorm_c1e3dcba256b0153cfdb286120e110be} |
---|
65 | |
---|
66 | \begin{CompactList}\small\item\em Evaluate normalized log-probability. \item\end{CompactList}\item |
---|
67 | \hypertarget{classenorm_b289a36a69db59d182bb6eba9c05d4a8}{ |
---|
68 | double \hyperlink{classenorm_b289a36a69db59d182bb6eba9c05d4a8}{lognc} () const } |
---|
69 | \label{classenorm_b289a36a69db59d182bb6eba9c05d4a8} |
---|
70 | |
---|
71 | \begin{CompactList}\small\item\em logarithm of the normalizing constant, $\mathcal{I}$ \item\end{CompactList}\item |
---|
72 | \hypertarget{classenorm_50fa84da7bae02f7af17a98f37566899}{ |
---|
73 | vec \hyperlink{classenorm_50fa84da7bae02f7af17a98f37566899}{mean} () const } |
---|
74 | \label{classenorm_50fa84da7bae02f7af17a98f37566899} |
---|
75 | |
---|
76 | \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item |
---|
77 | \hypertarget{classenorm_0b8cb284e5af920a1b64a21d057ec5ac}{ |
---|
78 | vec \& \hyperlink{classenorm_0b8cb284e5af920a1b64a21d057ec5ac}{\_\-mu} ()} |
---|
79 | \label{classenorm_0b8cb284e5af920a1b64a21d057ec5ac} |
---|
80 | |
---|
81 | \begin{CompactList}\small\item\em returns a pointer to the internal mean value. Use with Care! \item\end{CompactList}\item |
---|
82 | \hypertarget{classenorm_d892a38f03be12e572ea57d9689cef6b}{ |
---|
83 | void \hyperlink{classenorm_d892a38f03be12e572ea57d9689cef6b}{set\_\-mu} (const vec mu0)} |
---|
84 | \label{classenorm_d892a38f03be12e572ea57d9689cef6b} |
---|
85 | |
---|
86 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
87 | \hypertarget{classenorm_7a5034b25771a84450a990d10fc40ac9}{ |
---|
88 | sq\_\-T \& \hyperlink{classenorm_7a5034b25771a84450a990d10fc40ac9}{\_\-R} ()} |
---|
89 | \label{classenorm_7a5034b25771a84450a990d10fc40ac9} |
---|
90 | |
---|
91 | \begin{CompactList}\small\item\em returns pointers to the internal variance and its inverse. Use with Care! \item\end{CompactList}\item |
---|
92 | \hypertarget{classeEF_a89bef8996410609004fa019b5b48964}{ |
---|
93 | virtual void \hyperlink{classeEF_a89bef8996410609004fa019b5b48964}{dupdate} (mat \&v)} |
---|
94 | \label{classeEF_a89bef8996410609004fa019b5b48964} |
---|
95 | |
---|
96 | \begin{CompactList}\small\item\em TODO decide if it is really needed. \item\end{CompactList}\item |
---|
97 | \hypertarget{classeEF_6466e8d4aa9dd64698ed288cbb1afc03}{ |
---|
98 | virtual double \hyperlink{classeEF_6466e8d4aa9dd64698ed288cbb1afc03}{evalpdflog} (const vec \&val) const } |
---|
99 | \label{classeEF_6466e8d4aa9dd64698ed288cbb1afc03} |
---|
100 | |
---|
101 | \begin{CompactList}\small\item\em Evaluate normalized log-probability. \item\end{CompactList}\item |
---|
102 | \hypertarget{classeEF_c71faf4b2d153efda14bf1f87dca1507}{ |
---|
103 | virtual vec \hyperlink{classeEF_c71faf4b2d153efda14bf1f87dca1507}{evalpdflog} (const mat \&Val) const } |
---|
104 | \label{classeEF_c71faf4b2d153efda14bf1f87dca1507} |
---|
105 | |
---|
106 | \begin{CompactList}\small\item\em Evaluate normalized log-probability for many samples. \item\end{CompactList}\item |
---|
107 | \hypertarget{classeEF_4f8385dd1cc9740522dc373b1dc3cbf5}{ |
---|
108 | virtual void \hyperlink{classeEF_4f8385dd1cc9740522dc373b1dc3cbf5}{pow} (double p)} |
---|
109 | \label{classeEF_4f8385dd1cc9740522dc373b1dc3cbf5} |
---|
110 | |
---|
111 | \begin{CompactList}\small\item\em Power of the density, used e.g. to flatten the density. \item\end{CompactList}\item |
---|
112 | \hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{ |
---|
113 | virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const } |
---|
114 | \label{classepdf_54d7dd53a641b618771cd9bee135181f} |
---|
115 | |
---|
116 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
---|
117 | \hypertarget{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{ |
---|
118 | virtual vec \hyperlink{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{evalpdflog\_\-m} (const mat \&Val) const } |
---|
119 | \label{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c} |
---|
120 | |
---|
121 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
---|
122 | \hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{ |
---|
123 | const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const } |
---|
124 | \label{classepdf_ca0d32aabb4cbba347e0c37fe8607562} |
---|
125 | |
---|
126 | \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item |
---|
127 | \hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{ |
---|
128 | void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)} |
---|
129 | \label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5} |
---|
130 | |
---|
131 | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
---|
132 | \subsection*{Protected Attributes} |
---|
133 | \begin{CompactItemize} |
---|
134 | \item |
---|
135 | \hypertarget{classenorm_71fde0d54bba147e00f612577f95ad20}{ |
---|
136 | vec \hyperlink{classenorm_71fde0d54bba147e00f612577f95ad20}{mu}} |
---|
137 | \label{classenorm_71fde0d54bba147e00f612577f95ad20} |
---|
138 | |
---|
139 | \begin{CompactList}\small\item\em mean value \item\end{CompactList}\item |
---|
140 | \hypertarget{classenorm_4ccc8d8514d644ef1c98d8ab023748a1}{ |
---|
141 | sq\_\-T \hyperlink{classenorm_4ccc8d8514d644ef1c98d8ab023748a1}{R}} |
---|
142 | \label{classenorm_4ccc8d8514d644ef1c98d8ab023748a1} |
---|
143 | |
---|
144 | \begin{CompactList}\small\item\em Covariance matrix in decomposed form. \item\end{CompactList}\item |
---|
145 | \hypertarget{classenorm_6938fc390a19cdaf6ad4503fcbaada4e}{ |
---|
146 | int \hyperlink{classenorm_6938fc390a19cdaf6ad4503fcbaada4e}{dim}} |
---|
147 | \label{classenorm_6938fc390a19cdaf6ad4503fcbaada4e} |
---|
148 | |
---|
149 | \begin{CompactList}\small\item\em dimension (redundant from rv.count() for easier coding ) \item\end{CompactList}\item |
---|
150 | \hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{ |
---|
151 | \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}} |
---|
152 | \label{classepdf_74da992e3f5d598da8850b646b79b9d9} |
---|
153 | |
---|
154 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
---|
155 | |
---|
156 | |
---|
157 | \subsection{Detailed Description} |
---|
158 | \subsubsection*{template$<$class sq\_\-T$>$ class enorm$<$ sq\_\-T $>$} |
---|
159 | |
---|
160 | Gaussian density with positive definite (decomposed) covariance matrix. |
---|
161 | |
---|
162 | More?... |
---|
163 | |
---|
164 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
165 | \item |
---|
166 | work/git/mixpp/bdm/stat/\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize} |
---|