root/doc/latex/classbdm_1_1mlstudent.tex @ 270

Revision 270, 10.5 kB (checked in by smidl, 16 years ago)

Changes in the very root classes!
* rv and rvc are no longer compulsory,
* samplecond does not return ll
* BM has drv

RevLine 
[261]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:\nopagebreak
8\begin{figure}[H]
9\begin{center}
10\leavevmode
11\includegraphics[width=116pt]{classbdm_1_1mlstudent__inherit__graph}
12\end{center}
13\end{figure}
[270]14
15
16\subsection{Detailed Description}
17(Approximate) Student t density with linear function of mean value
18
19The 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.
20
21Perhaps a moment-matching technique? \subsection*{Public Member Functions}
[261]22\begin{CompactItemize}
23\item 
24\hypertarget{classbdm_1_1mlstudent_4cdf79aac1b2165c0290e73810a0e4a3}{
25void \textbf{set\_\-parameters} (const mat \&A0, const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&R0, const \hyperlink{classldmat}{ldmat} \&Lambda0)}
26\label{classbdm_1_1mlstudent_4cdf79aac1b2165c0290e73810a0e4a3}
27
28\item 
29\hypertarget{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}{
30void \hyperlink{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}{condition} (const vec \&cond)}
31\label{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}
32
33\begin{CompactList}\small\item\em Set value of {\tt rvc} . Result of this operation is stored in {\tt \hyperlink{classbdm_1_1epdf}{epdf}} use function {\tt \_\-ep} to access it. \item\end{CompactList}\item 
34\hypertarget{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}{
35void \hyperlink{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}{set\_\-parameters} (const mat \&A, const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&R)}
36\label{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}
37
38\begin{CompactList}\small\item\em Set {\tt A} and {\tt R}. \item\end{CompactList}\item 
39\hypertarget{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}{
40vec \& \hyperlink{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}{\_\-mu\_\-const} ()}
41\label{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}
42
43\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
44\hypertarget{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}{
45mat \& \hyperlink{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}{\_\-A} ()}
46\label{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}
47
48\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
49\hypertarget{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}{
50mat \hyperlink{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}{\_\-R} ()}
51\label{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}
52
[270]53\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize}
54\begin{Indent}{\bf Matematical operations}\par
55\begin{CompactItemize}
56\item 
[269]57virtual vec \hyperlink{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{samplecond} (const vec \&cond)
[261]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 
[270]59virtual mat \hyperlink{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{samplecond\_\-m} (const vec \&cond, int N)
[261]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
[270]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}
[261]78
[270]79\item 
80\hypertarget{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}{
81\hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rvc} ()}
82\label{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}
[261]83
[270]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 
[261]95\hypertarget{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{
[270]96\hyperlink{classbdm_1_1epdf}{epdf} \& \textbf{\_\-epdf} ()}
[261]97\label{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}
98
[270]99\item 
[261]100\hypertarget{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{
[270]101\hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \textbf{\_\-e} ()}
[261]102\label{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}
103
[270]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}
[261]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 
[270]163\hypertarget{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{
164int \hyperlink{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{dimc}}
165\label{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}
[261]166
[270]167\begin{CompactList}\small\item\em dimension of the condition \item\end{CompactList}\item 
[261]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}
[269]189\hypertarget{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{
[261]190\index{bdm::mlstudent@{bdm::mlstudent}!samplecond@{samplecond}}
191\index{samplecond@{samplecond}!bdm::mlstudent@{bdm::mlstudent}}
[269]192\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{]}}}}
193\label{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}
[261]194
195
196Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$.
197
198\begin{Desc}
199\item[Parameters:]
200\begin{description}
[269]201\item[{\em cond}]is numeric value of {\tt rv} \end{description}
[261]202\end{Desc}
203
204
[269]205References bdm::mpdf::condition(), bdm::mpdf::ep, and bdm::epdf::sample().
[261]206
[270]207Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{
[261]208\index{bdm::mlstudent@{bdm::mlstudent}!samplecond\_\-m@{samplecond\_\-m}}
209\index{samplecond\_\-m@{samplecond\_\-m}!bdm::mlstudent@{bdm::mlstudent}}
[270]210\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{]}}}}
211\label{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}
[261]212
213
214Returns.
215
216\begin{Desc}
217\item[Parameters:]
218\begin{description}
219\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}
220\end{Desc}
221
222
[270]223References bdm::mpdf::condition(), bdm::epdf::dimension(), bdm::mpdf::ep, and bdm::epdf::sample().
[261]224
225The documentation for this class was generated from the following file:\begin{CompactItemize}
226\item 
227\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.