root/doc/latex/classmprod.tex @ 212

Revision 210, 9.0 kB (checked in by smidl, 16 years ago)

dokumentace

Line 
1\hypertarget{classmprod}{
2\section{mprod Class Reference}
3\label{classmprod}\index{mprod@{mprod}}
4}
5Chain rule decomposition of \hyperlink{classepdf}{epdf}
6
7
8{\tt \#include $<$emix.h$>$}
9
10Inheritance diagram for mprod:\nopagebreak
11\begin{figure}[H]
12\begin{center}
13\leavevmode
14\includegraphics[width=91pt]{classmprod__inherit__graph}
15\end{center}
16\end{figure}
17Collaboration diagram for mprod:\nopagebreak
18\begin{figure}[H]
19\begin{center}
20\leavevmode
21\includegraphics[width=102pt]{classmprod__coll__graph}
22\end{center}
23\end{figure}
24\subsection*{Public Member Functions}
25\begin{CompactItemize}
26\item 
27\hypertarget{classmprod_419b303581a91ad85200bdcb4b3186f4}{
28\hyperlink{classmprod_419b303581a91ad85200bdcb4b3186f4}{mprod} (Array$<$ \hyperlink{classmpdf}{mpdf} $\ast$ $>$ mFacs)}
29\label{classmprod_419b303581a91ad85200bdcb4b3186f4}
30
31\begin{CompactList}\small\item\em Constructor from list of mFacs,. \item\end{CompactList}\item 
32\hypertarget{classmprod_1e662c8d90a96bf19235a05373d6887a}{
33double \hyperlink{classmprod_1e662c8d90a96bf19235a05373d6887a}{evalcond} (const vec \&val, const vec \&cond)}
34\label{classmprod_1e662c8d90a96bf19235a05373d6887a}
35
36\begin{CompactList}\small\item\em Shortcut for conditioning and evaluation of the internal \hyperlink{classepdf}{epdf}. In some cases, this operation can be implemented efficiently. \item\end{CompactList}\item 
37vec \hyperlink{classmprod_a48887eb8738a9e5550bfc38eb8e9d68}{samplecond} (const vec \&cond, double \&ll)
38\begin{CompactList}\small\item\em Returns the required moment of the \hyperlink{classepdf}{epdf}. \item\end{CompactList}\item 
39mat \hyperlink{classmprod_e171c40e210539c2af01d6237785620b}{samplecond} (const vec \&cond, vec \&ll, int N)
40\begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item 
41\hyperlink{classRV}{RV} \hyperlink{classcompositepdf_635d219fb3e32852400d6f98aa4bdc93}{getrv} (bool checkoverlap=false)
42\begin{CompactList}\small\item\em find common rv, flag \item\end{CompactList}\item 
43\hypertarget{classcompositepdf_5a4479785c1fdb2cc351fbea07b899ac}{
44void \hyperlink{classcompositepdf_5a4479785c1fdb2cc351fbea07b899ac}{setrvc} (const \hyperlink{classRV}{RV} \&\hyperlink{classmpdf_f6687c07ff07d47812dd565368ca59eb}{rv}, \hyperlink{classRV}{RV} \&\hyperlink{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{rvc})}
45\label{classcompositepdf_5a4479785c1fdb2cc351fbea07b899ac}
46
47\begin{CompactList}\small\item\em common rvc of all mpdfs is written to rvc \item\end{CompactList}\item 
48\hypertarget{classmpdf_0f95a0cc6ab40611f46804682446ed83}{
49virtual void \hyperlink{classmpdf_0f95a0cc6ab40611f46804682446ed83}{condition} (const vec \&cond)}
50\label{classmpdf_0f95a0cc6ab40611f46804682446ed83}
51
52\begin{CompactList}\small\item\em Update {\tt ep} so that it represents this \hyperlink{classmpdf}{mpdf} conditioned on {\tt rvc} = cond. \item\end{CompactList}\item 
53\hypertarget{classmpdf_b7b2da35080cd15f1be365b805e7277e}{
54virtual vec \textbf{evalcond\_\-m} (const mat \&Dt, const vec \&cond)}
55\label{classmpdf_b7b2da35080cd15f1be365b805e7277e}
56
57\item 
58\hypertarget{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}{
59\hyperlink{classRV}{RV} \hyperlink{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}{\_\-rvc} () const }
60\label{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}
61
62\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
63\hypertarget{classmpdf_71256ffb5fbd08f41d650e606a5bd585}{
64\hyperlink{classRV}{RV} \hyperlink{classmpdf_71256ffb5fbd08f41d650e606a5bd585}{\_\-rv} () const }
65\label{classmpdf_71256ffb5fbd08f41d650e606a5bd585}
66
67\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
68\hypertarget{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{
69\hyperlink{classepdf}{epdf} \& \hyperlink{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{\_\-epdf} ()}
70\label{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}
71
72\begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize}
73\subsection*{Protected Attributes}
74\begin{CompactItemize}
75\item 
76\hypertarget{classmprod_0883ce383e8475546df138719918f70e}{
77Array$<$ \hyperlink{classepdf}{epdf} $\ast$ $>$ \hyperlink{classmprod_0883ce383e8475546df138719918f70e}{epdfs}}
78\label{classmprod_0883ce383e8475546df138719918f70e}
79
80\begin{CompactList}\small\item\em pointers to epdfs - shortcut to \hyperlink{classcompositepdf_637877061b917a16a0421bb5c4cd480d}{mpdfs()}.\hyperlink{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{\_\-epdf()} \item\end{CompactList}\item 
81\hypertarget{classmprod_5334777dda3dad9b9fa73e22e8d0f24c}{
82Array$<$ \hyperlink{classdatalink__m2m}{datalink\_\-m2m} $\ast$ $>$ \hyperlink{classmprod_5334777dda3dad9b9fa73e22e8d0f24c}{dls}}
83\label{classmprod_5334777dda3dad9b9fa73e22e8d0f24c}
84
85\begin{CompactList}\small\item\em Data link for each mpdfs. \item\end{CompactList}\item 
86\hypertarget{classcompositepdf_c1646fe41ff5934d010e54ccaa46133f}{
87int \hyperlink{classcompositepdf_c1646fe41ff5934d010e54ccaa46133f}{n}}
88\label{classcompositepdf_c1646fe41ff5934d010e54ccaa46133f}
89
90\begin{CompactList}\small\item\em Number of mpdfs in the composite. \item\end{CompactList}\item 
91\hypertarget{classcompositepdf_637877061b917a16a0421bb5c4cd480d}{
92Array$<$ \hyperlink{classmpdf}{mpdf} $\ast$ $>$ \hyperlink{classcompositepdf_637877061b917a16a0421bb5c4cd480d}{mpdfs}}
93\label{classcompositepdf_637877061b917a16a0421bb5c4cd480d}
94
95\begin{CompactList}\small\item\em Elements of composition. \item\end{CompactList}\item 
96\hypertarget{classmpdf_f6687c07ff07d47812dd565368ca59eb}{
97\hyperlink{classRV}{RV} \hyperlink{classmpdf_f6687c07ff07d47812dd565368ca59eb}{rv}}
98\label{classmpdf_f6687c07ff07d47812dd565368ca59eb}
99
100\begin{CompactList}\small\item\em modeled random variable \item\end{CompactList}\item 
101\hypertarget{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{
102\hyperlink{classRV}{RV} \hyperlink{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{rvc}}
103\label{classmpdf_acb7dda792b3cd5576f39fa3129abbab}
104
105\begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item 
106\hypertarget{classmpdf_7aa894208a32f3487827df6d5054424c}{
107\hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classmpdf_7aa894208a32f3487827df6d5054424c}{ep}}
108\label{classmpdf_7aa894208a32f3487827df6d5054424c}
109
110\begin{CompactList}\small\item\em pointer to internal \hyperlink{classepdf}{epdf} \item\end{CompactList}\end{CompactItemize}
111
112
113\subsection{Detailed Description}
114Chain rule decomposition of \hyperlink{classepdf}{epdf}.
115
116Probability density in the form of Chain-rule decomposition: $\backslash$\mbox{[} f(x\_\-1,x\_\-2,x\_\-3) = f(x\_\-1$|$x\_\-2,x\_\-3)f(x\_\-2,x\_\-3)f(x\_\-3) $\backslash$\mbox{]} Note that
117
118\subsection{Member Function Documentation}
119\hypertarget{classmprod_a48887eb8738a9e5550bfc38eb8e9d68}{
120\index{mprod@{mprod}!samplecond@{samplecond}}
121\index{samplecond@{samplecond}!mprod@{mprod}}
122\subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}vec mprod::samplecond (const vec \& {\em cond}, \/  double \& {\em ll})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual\mbox{]}}}}
123\label{classmprod_a48887eb8738a9e5550bfc38eb8e9d68}
124
125
126Returns the required moment of the \hyperlink{classepdf}{epdf}.
127
128Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \begin{Desc}
129\item[Parameters:]
130\begin{description}
131\item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description}
132\end{Desc}
133
134
135Reimplemented from \hyperlink{classmpdf_3f172b79ec4a5ebc87898a5381141f1b}{mpdf}.
136
137References RV::count(), dls, epdfs, compositepdf::mpdfs, compositepdf::n, and mpdf::rv.
138
139Referenced by samplecond().\hypertarget{classmprod_e171c40e210539c2af01d6237785620b}{
140\index{mprod@{mprod}!samplecond@{samplecond}}
141\index{samplecond@{samplecond}!mprod@{mprod}}
142\subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}mat mprod::samplecond (const vec \& {\em cond}, \/  vec \& {\em ll}, \/  int {\em N})\hspace{0.3cm}{\tt  \mbox{[}inline, virtual\mbox{]}}}}
143\label{classmprod_e171c40e210539c2af01d6237785620b}
144
145
146Returns.
147
148\begin{Desc}
149\item[Parameters:]
150\begin{description}
151\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}
152\end{Desc}
153
154
155Reimplemented from \hyperlink{classmpdf_0e37163660f93df2a4d723cedb1da89c}{mpdf}.
156
157References RV::count(), mpdf::rv, and samplecond().\hypertarget{classcompositepdf_635d219fb3e32852400d6f98aa4bdc93}{
158\index{mprod@{mprod}!getrv@{getrv}}
159\index{getrv@{getrv}!mprod@{mprod}}
160\subsubsection[getrv]{\setlength{\rightskip}{0pt plus 5cm}{\bf RV} compositepdf::getrv (bool {\em checkoverlap} = {\tt false})\hspace{0.3cm}{\tt  \mbox{[}inherited\mbox{]}}}}
161\label{classcompositepdf_635d219fb3e32852400d6f98aa4bdc93}
162
163
164find common rv, flag
165
166\begin{Desc}
167\item[Parameters:]
168\begin{description}
169\item[{\em checkoverlap}]modifies whether overlaps are acceptable \end{description}
170\end{Desc}
171
172
173References RV::add(), compositepdf::mpdfs, and compositepdf::n.
174
175The documentation for this class was generated from the following file:\begin{CompactItemize}
176\item 
177work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.