root/doc/latex/classbdm_1_1mlstudent.tex @ 271

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

Next major revision

Line 
1\hypertarget{classbdm_1_1mlstudent}{
2\section{bdm::mlstudent Class Reference}
3\label{classbdm_1_1mlstudent}\index{bdm::mlstudent@{bdm::mlstudent}}
4}
5{\tt \#include $<$libEF.h$>$}
6
7Inheritance diagram for bdm::mlstudent::\begin{figure}[H]
8\begin{center}
9\leavevmode
10\includegraphics[height=5cm]{classbdm_1_1mlstudent}
11\end{center}
12\end{figure}
13
14
15\subsection{Detailed Description}
16(Approximate) Student t density with linear function of mean value
17
18The internal \hyperlink{classbdm_1_1epdf}{epdf} of this class is of the type of a Gaussian (\hyperlink{classbdm_1_1enorm}{enorm}). However, each conditioning is trying to assure the best possible approximation by taking into account the zeta function. See \mbox{[}\mbox{]} for reference.
19
20Perhaps a moment-matching technique? \subsection*{Public Member Functions}
21\begin{CompactItemize}
22\item 
23\hypertarget{classbdm_1_1mlstudent_4cdf79aac1b2165c0290e73810a0e4a3}{
24void \textbf{set\_\-parameters} (const mat \&A0, const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&R0, const \hyperlink{classldmat}{ldmat} \&Lambda0)}
25\label{classbdm_1_1mlstudent_4cdf79aac1b2165c0290e73810a0e4a3}
26
27\item 
28void \hyperlink{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}{condition} (const vec \&cond)
29\item 
30\hypertarget{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}{
31vec \& \hyperlink{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}{\_\-mu\_\-const} ()}
32\label{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}
33
34\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
35\hypertarget{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}{
36mat \& \hyperlink{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}{\_\-A} ()}
37\label{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}
38
39\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
40\hypertarget{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}{
41mat \hyperlink{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}{\_\-R} ()}
42\label{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}
43
44\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize}
45\begin{Indent}{\bf Constructors}\par
46\begin{CompactItemize}
47\item 
48\hypertarget{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}{
49void \hyperlink{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}{set\_\-parameters} (const mat \&A, const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&R)}
50\label{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}
51
52\begin{CompactList}\small\item\em Set {\tt A} and {\tt R}. \item\end{CompactList}\end{CompactItemize}
53\end{Indent}
54\begin{Indent}{\bf Matematical operations}\par
55\begin{CompactItemize}
56\item 
57virtual vec \hyperlink{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{samplecond} (const vec \&cond)
58\begin{CompactList}\small\item\em Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item\end{CompactList}\item 
59virtual mat \hyperlink{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{samplecond\_\-m} (const vec \&cond, int N)
60\begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item 
61\hypertarget{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{
62virtual double \hyperlink{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{evallogcond} (const vec \&dt, const vec \&cond)}
63\label{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}
64
65\begin{CompactList}\small\item\em Shortcut for conditioning and evaluation of the internal \hyperlink{classbdm_1_1epdf}{epdf}. In some cases, this operation can be implemented efficiently. \item\end{CompactList}\item 
66\hypertarget{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{
67virtual vec \hyperlink{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{evallogcond\_\-m} (const mat \&Dt, const vec \&cond)}
68\label{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}
69
70\begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\end{CompactItemize}
71\end{Indent}
72\begin{Indent}{\bf Access to attributes}\par
73\begin{CompactItemize}
74\item 
75\hypertarget{classbdm_1_1mpdf_5571482d150fbcb72cc36f6694ce1a10}{
76\hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rv} ()}
77\label{classbdm_1_1mpdf_5571482d150fbcb72cc36f6694ce1a10}
78
79\item 
80\hypertarget{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}{
81\hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rvc} ()}
82\label{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}
83
84\item 
85\hypertarget{classbdm_1_1mpdf_1c2bae3e1e90874e72941863974ec0ed}{
86int \textbf{dimension} ()}
87\label{classbdm_1_1mpdf_1c2bae3e1e90874e72941863974ec0ed}
88
89\item 
90\hypertarget{classbdm_1_1mpdf_35e135910aed187b7290742f50e61bc8}{
91int \textbf{dimensionc} ()}
92\label{classbdm_1_1mpdf_35e135910aed187b7290742f50e61bc8}
93
94\item 
95\hypertarget{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{
96\hyperlink{classbdm_1_1epdf}{epdf} \& \textbf{\_\-epdf} ()}
97\label{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}
98
99\item 
100\hypertarget{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{
101\hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \textbf{\_\-e} ()}
102\label{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}
103
104\end{CompactItemize}
105\end{Indent}
106\begin{Indent}{\bf Connection to other objects}\par
107\begin{CompactItemize}
108\item 
109\hypertarget{classbdm_1_1mpdf_7631a5570e4ade1420065e8df78f4401}{
110void \textbf{set\_\-rvc} (const \hyperlink{classbdm_1_1RV}{RV} \&rvc0)}
111\label{classbdm_1_1mpdf_7631a5570e4ade1420065e8df78f4401}
112
113\item 
114\hypertarget{classbdm_1_1mpdf_18ac26bc2f96ae01ef4eb06178abbd75}{
115void \textbf{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)}
116\label{classbdm_1_1mpdf_18ac26bc2f96ae01ef4eb06178abbd75}
117
118\item 
119\hypertarget{classbdm_1_1mpdf_f8e3798150b42fd1f3e16ddbbe0e7045}{
120bool \textbf{isnamed} ()}
121\label{classbdm_1_1mpdf_f8e3798150b42fd1f3e16ddbbe0e7045}
122
123\end{CompactItemize}
124\end{Indent}
125\subsection*{Protected Attributes}
126\begin{CompactItemize}
127\item 
128\hypertarget{classbdm_1_1mlstudent_41595144a79594acbe288c6b59412657}{
129\hyperlink{classldmat}{ldmat} \textbf{Lambda}}
130\label{classbdm_1_1mlstudent_41595144a79594acbe288c6b59412657}
131
132\item 
133\hypertarget{classbdm_1_1mlstudent_72e9bda4d6684e07faafc4b2192daf39}{
134\hyperlink{classldmat}{ldmat} \& \textbf{\_\-R}}
135\label{classbdm_1_1mlstudent_72e9bda4d6684e07faafc4b2192daf39}
136
137\item 
138\hypertarget{classbdm_1_1mlstudent_1c063ad6cb6e079ee11bc4128c2c9fe8}{
139\hyperlink{classldmat}{ldmat} \textbf{Re}}
140\label{classbdm_1_1mlstudent_1c063ad6cb6e079ee11bc4128c2c9fe8}
141
142\item 
143\hypertarget{classbdm_1_1mlnorm_150ad6acb223b0a0abeaf92346686dcd}{
144\hyperlink{classbdm_1_1enorm}{enorm}$<$ \hyperlink{classldmat}{ldmat} $>$ \hyperlink{classbdm_1_1mlnorm_150ad6acb223b0a0abeaf92346686dcd}{epdf}}
145\label{classbdm_1_1mlnorm_150ad6acb223b0a0abeaf92346686dcd}
146
147\begin{CompactList}\small\item\em Internal epdf that arise by conditioning on {\tt rvc}. \item\end{CompactList}\item 
148\hypertarget{classbdm_1_1mlnorm_8207ae86d1722102897e139a23e29af8}{
149mat \textbf{A}}
150\label{classbdm_1_1mlnorm_8207ae86d1722102897e139a23e29af8}
151
152\item 
153\hypertarget{classbdm_1_1mlnorm_3a019144d414d1737aea331ffe1c3845}{
154vec \textbf{mu\_\-const}}
155\label{classbdm_1_1mlnorm_3a019144d414d1737aea331ffe1c3845}
156
157\item 
158\hypertarget{classbdm_1_1mlnorm_dea5ea658d5020c11da91275f592244b}{
159vec \& \textbf{\_\-mu}}
160\label{classbdm_1_1mlnorm_dea5ea658d5020c11da91275f592244b}
161
162\item 
163\hypertarget{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{
164int \hyperlink{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{dimc}}
165\label{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}
166
167\begin{CompactList}\small\item\em dimension of the condition \item\end{CompactList}\item 
168\hypertarget{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{
169\hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc}}
170\label{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}
171
172\begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item 
173\hypertarget{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{
174\hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{ep}}
175\label{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}
176
177\begin{CompactList}\small\item\em pointer to internal \hyperlink{classbdm_1_1epdf}{epdf} \item\end{CompactList}\end{CompactItemize}
178\subsection*{Friends}
179\begin{CompactItemize}
180\item 
181\hypertarget{classbdm_1_1mlnorm_1917009347bb410f73bf827df8767b09}{
182std::ostream \& \textbf{operator$<$$<$} (std::ostream \&os, \hyperlink{classbdm_1_1mlnorm}{mlnorm}$<$ sq\_\-M $>$ \&ml)}
183\label{classbdm_1_1mlnorm_1917009347bb410f73bf827df8767b09}
184
185\end{CompactItemize}
186
187
188\subsection{Member Function Documentation}
189\hypertarget{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}{
190\index{bdm::mlstudent@{bdm::mlstudent}!condition@{condition}}
191\index{condition@{condition}!bdm::mlstudent@{bdm::mlstudent}}
192\subsubsection[condition]{\setlength{\rightskip}{0pt plus 5cm}void bdm::mlstudent::condition (const vec \& {\em cond})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual\mbox{]}}}}
193\label{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}
194
195
196Set value of {\tt rvc} . Result of this operation is stored in {\tt \hyperlink{classbdm_1_1epdf}{epdf}} use function {\tt \_\-ep} to access it.
197
198Reimplemented from \hyperlink{classbdm_1_1mlnorm_0dafc0196e7e07fd06dc6716e0e18bc2}{bdm::mlnorm$<$ ldmat $>$}.
199
200References bdm::mlnorm$<$ ldmat $>$::\_\-R(), ldmat::invqform(), and ldmat::rows().\hypertarget{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{
201\index{bdm::mlstudent@{bdm::mlstudent}!samplecond@{samplecond}}
202\index{samplecond@{samplecond}!bdm::mlstudent@{bdm::mlstudent}}
203\subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}virtual vec bdm::mpdf::samplecond (const vec \& {\em cond})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual, inherited\mbox{]}}}}
204\label{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}
205
206
207Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$.
208
209\begin{Desc}
210\item[Parameters:]
211\begin{description}
212\item[{\em cond}]is numeric value of {\tt rv} \end{description}
213\end{Desc}
214
215
216Reimplemented in \hyperlink{classbdm_1_1mprod_ee715a8013acf9892f6cb489db595555}{bdm::mprod}.
217
218References bdm::mpdf::condition(), bdm::mpdf::ep, and bdm::epdf::sample().
219
220Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{
221\index{bdm::mlstudent@{bdm::mlstudent}!samplecond\_\-m@{samplecond\_\-m}}
222\index{samplecond\_\-m@{samplecond\_\-m}!bdm::mlstudent@{bdm::mlstudent}}
223\subsubsection[samplecond\_\-m]{\setlength{\rightskip}{0pt plus 5cm}virtual mat bdm::mpdf::samplecond\_\-m (const vec \& {\em cond}, \/  int {\em N})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual, inherited\mbox{]}}}}
224\label{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}
225
226
227Returns.
228
229\begin{Desc}
230\item[Parameters:]
231\begin{description}
232\item[{\em N}]samples from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description}
233\end{Desc}
234
235
236References bdm::mpdf::condition(), bdm::epdf::dimension(), bdm::mpdf::ep, and bdm::epdf::sample().
237
238The documentation for this class was generated from the following file:\begin{CompactItemize}
239\item 
240\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.