root/doc/latex/classbdm_1_1mpdf.tex @ 270

Revision 270, 7.4 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

Line 
1\hypertarget{classbdm_1_1mpdf}{
2\section{bdm::mpdf Class Reference}
3\label{classbdm_1_1mpdf}\index{bdm::mpdf@{bdm::mpdf}}
4}
5{\tt \#include $<$libBM.h$>$}
6
7Inheritance diagram for bdm::mpdf:\nopagebreak
8\begin{figure}[H]
9\begin{center}
10\leavevmode
11\includegraphics[width=400pt]{classbdm_1_1mpdf__inherit__graph}
12\end{center}
13\end{figure}
14
15
16\subsection{Detailed Description}
17Conditional probability density, e.g. modeling some dependencies. \subsection*{Public Member Functions}
18\begin{Indent}{\bf Constructors}\par
19\begin{CompactItemize}
20\item 
21\hypertarget{classbdm_1_1mpdf_dc3f5e531994dd42447d678deb92fe48}{
22\textbf{mpdf} ()}
23\label{classbdm_1_1mpdf_dc3f5e531994dd42447d678deb92fe48}
24
25\item 
26\hypertarget{classbdm_1_1mpdf_7089fcbd918f201fdf4256119e31f173}{
27\hyperlink{classbdm_1_1mpdf_7089fcbd918f201fdf4256119e31f173}{mpdf} (const \hyperlink{classbdm_1_1mpdf}{mpdf} \&m)}
28\label{classbdm_1_1mpdf_7089fcbd918f201fdf4256119e31f173}
29
30\begin{CompactList}\small\item\em copy constructor does not set pointer {\tt ep} - has to be done in offsprings! \item\end{CompactList}\end{CompactItemize}
31\end{Indent}
32\begin{Indent}{\bf Matematical operations}\par
33\begin{CompactItemize}
34\item 
35virtual vec \hyperlink{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{samplecond} (const vec \&cond)
36\begin{CompactList}\small\item\em Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item\end{CompactList}\item 
37virtual mat \hyperlink{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{samplecond\_\-m} (const vec \&cond, int N)
38\begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item 
39\hypertarget{classbdm_1_1mpdf_db94784a9aacf74c65c5a014f6743530}{
40virtual void \hyperlink{classbdm_1_1mpdf_db94784a9aacf74c65c5a014f6743530}{condition} (const vec \&cond)}
41\label{classbdm_1_1mpdf_db94784a9aacf74c65c5a014f6743530}
42
43\begin{CompactList}\small\item\em Update {\tt ep} so that it represents this \hyperlink{classbdm_1_1mpdf}{mpdf} conditioned on {\tt rvc} = cond. \item\end{CompactList}\item 
44\hypertarget{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{
45virtual double \hyperlink{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{evallogcond} (const vec \&dt, const vec \&cond)}
46\label{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}
47
48\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 
49\hypertarget{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{
50virtual vec \hyperlink{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{evallogcond\_\-m} (const mat \&Dt, const vec \&cond)}
51\label{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}
52
53\begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\end{CompactItemize}
54\end{Indent}
55\begin{Indent}{\bf Access to attributes}\par
56\begin{CompactItemize}
57\item 
58\hypertarget{classbdm_1_1mpdf_5571482d150fbcb72cc36f6694ce1a10}{
59\hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rv} ()}
60\label{classbdm_1_1mpdf_5571482d150fbcb72cc36f6694ce1a10}
61
62\item 
63\hypertarget{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}{
64\hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rvc} ()}
65\label{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}
66
67\item 
68\hypertarget{classbdm_1_1mpdf_1c2bae3e1e90874e72941863974ec0ed}{
69int \textbf{dimension} ()}
70\label{classbdm_1_1mpdf_1c2bae3e1e90874e72941863974ec0ed}
71
72\item 
73\hypertarget{classbdm_1_1mpdf_35e135910aed187b7290742f50e61bc8}{
74int \textbf{dimensionc} ()}
75\label{classbdm_1_1mpdf_35e135910aed187b7290742f50e61bc8}
76
77\item 
78\hypertarget{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{
79\hyperlink{classbdm_1_1epdf}{epdf} \& \textbf{\_\-epdf} ()}
80\label{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}
81
82\item 
83\hypertarget{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{
84\hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \textbf{\_\-e} ()}
85\label{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}
86
87\end{CompactItemize}
88\end{Indent}
89\begin{Indent}{\bf Connection to other objects}\par
90\begin{CompactItemize}
91\item 
92\hypertarget{classbdm_1_1mpdf_7631a5570e4ade1420065e8df78f4401}{
93void \textbf{set\_\-rvc} (const \hyperlink{classbdm_1_1RV}{RV} \&rvc0)}
94\label{classbdm_1_1mpdf_7631a5570e4ade1420065e8df78f4401}
95
96\item 
97\hypertarget{classbdm_1_1mpdf_18ac26bc2f96ae01ef4eb06178abbd75}{
98void \textbf{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)}
99\label{classbdm_1_1mpdf_18ac26bc2f96ae01ef4eb06178abbd75}
100
101\item 
102\hypertarget{classbdm_1_1mpdf_f8e3798150b42fd1f3e16ddbbe0e7045}{
103bool \textbf{isnamed} ()}
104\label{classbdm_1_1mpdf_f8e3798150b42fd1f3e16ddbbe0e7045}
105
106\end{CompactItemize}
107\end{Indent}
108\subsection*{Protected Attributes}
109\begin{CompactItemize}
110\item 
111\hypertarget{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{
112int \hyperlink{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{dimc}}
113\label{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}
114
115\begin{CompactList}\small\item\em dimension of the condition \item\end{CompactList}\item 
116\hypertarget{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{
117\hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc}}
118\label{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}
119
120\begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item 
121\hypertarget{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{
122\hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{ep}}
123\label{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}
124
125\begin{CompactList}\small\item\em pointer to internal \hyperlink{classbdm_1_1epdf}{epdf} \item\end{CompactList}\end{CompactItemize}
126
127
128\subsection{Member Function Documentation}
129\hypertarget{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{
130\index{bdm::mpdf@{bdm::mpdf}!samplecond@{samplecond}}
131\index{samplecond@{samplecond}!bdm::mpdf@{bdm::mpdf}}
132\subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}virtual vec bdm::mpdf::samplecond (const vec \& {\em cond})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual\mbox{]}}}}
133\label{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}
134
135
136Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$.
137
138\begin{Desc}
139\item[Parameters:]
140\begin{description}
141\item[{\em cond}]is numeric value of {\tt rv} \end{description}
142\end{Desc}
143
144
145References condition(), ep, and bdm::epdf::sample().
146
147Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{
148\index{bdm::mpdf@{bdm::mpdf}!samplecond\_\-m@{samplecond\_\-m}}
149\index{samplecond\_\-m@{samplecond\_\-m}!bdm::mpdf@{bdm::mpdf}}
150\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\mbox{]}}}}
151\label{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}
152
153
154Returns.
155
156\begin{Desc}
157\item[Parameters:]
158\begin{description}
159\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}
160\end{Desc}
161
162
163References condition(), bdm::epdf::dimension(), ep, and bdm::epdf::sample().
164
165The documentation for this class was generated from the following file:\begin{CompactItemize}
166\item 
167\hyperlink{libBM_8h}{libBM.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.