root/doc/latex/classeprod.tex @ 198

Revision 181, 5.7 kB (checked in by smidl, 16 years ago)

Regenerated doc

  • Property svn:eol-style set to native
Line 
1\hypertarget{classeprod}{
2\section{eprod Class Reference}
3\label{classeprod}\index{eprod@{eprod}}
4}
5Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}
6
7
8{\tt \#include $<$emix.h$>$}
9
10Inheritance diagram for eprod:\nopagebreak
11\begin{figure}[H]
12\begin{center}
13\leavevmode
14\includegraphics[width=44pt]{classeprod__inherit__graph}
15\end{center}
16\end{figure}
17Collaboration diagram for eprod:\nopagebreak
18\begin{figure}[H]
19\begin{center}
20\leavevmode
21\includegraphics[width=44pt]{classeprod__coll__graph}
22\end{center}
23\end{figure}
24\subsection*{Public Member Functions}
25\begin{CompactItemize}
26\item 
27\hypertarget{classeprod_288ace3ff1df274dfa89e1a641448a43}{
28\textbf{eprod} (const Array$<$ const \hyperlink{classepdf}{epdf} $\ast$ $>$ epdfs0)}
29\label{classeprod_288ace3ff1df274dfa89e1a641448a43}
30
31\item 
32\hypertarget{classeprod_5752dd999e1f4638f9558b0cc35b64f7}{
33vec \hyperlink{classeprod_5752dd999e1f4638f9558b0cc35b64f7}{mean} () const }
34\label{classeprod_5752dd999e1f4638f9558b0cc35b64f7}
35
36\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
37\hypertarget{classeprod_94a5b7c44056cf7f4e688d53ba6295b4}{
38vec \hyperlink{classeprod_94a5b7c44056cf7f4e688d53ba6295b4}{sample} () const }
39\label{classeprod_94a5b7c44056cf7f4e688d53ba6295b4}
40
41\begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item 
42\hypertarget{classeprod_5adef154e3655a872c284b02635b8b35}{
43double \hyperlink{classeprod_5adef154e3655a872c284b02635b8b35}{evalpdflog} (const vec \&val) const }
44\label{classeprod_5adef154e3655a872c284b02635b8b35}
45
46\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item 
47\hypertarget{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}{
48const \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}{operator()} (int i) const }
49\label{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}
50
51\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
52\hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{
53virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const }
54\label{classepdf_54d7dd53a641b618771cd9bee135181f}
55
56\begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item 
57\hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{
58virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const }
59\label{classepdf_3ea597362e11a0040fe7c990269d072c}
60
61\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item 
62\hypertarget{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{
63virtual vec \hyperlink{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{evalpdflog\_\-m} (const mat \&Val) const }
64\label{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}
65
66\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item 
67\hypertarget{classepdf_3ba08c0e788deff22134c049b9269666}{
68\hyperlink{classmpdf}{mpdf} $\ast$ \hyperlink{classepdf_3ba08c0e788deff22134c049b9269666}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
69\label{classepdf_3ba08c0e788deff22134c049b9269666}
70
71\begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classRV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item 
72\hypertarget{classepdf_bc0c171b6dafacd78d26263913b1d0c0}{
73\hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classepdf_bc0c171b6dafacd78d26263913b1d0c0}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
74\label{classepdf_bc0c171b6dafacd78d26263913b1d0c0}
75
76\begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classRV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item 
77\hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{
78const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const }
79\label{classepdf_ca0d32aabb4cbba347e0c37fe8607562}
80
81\begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item 
82\hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{
83void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)}
84\label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}
85
86\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize}
87\subsection*{Protected Attributes}
88\begin{CompactItemize}
89\item 
90\hypertarget{classeprod_63fc0db078542bce1c5dff94f9c3a357}{
91Array$<$ const \hyperlink{classepdf}{epdf} $\ast$ $>$ \hyperlink{classeprod_63fc0db078542bce1c5dff94f9c3a357}{epdfs}}
92\label{classeprod_63fc0db078542bce1c5dff94f9c3a357}
93
94\begin{CompactList}\small\item\em Components (epdfs). \item\end{CompactList}\item 
95\hypertarget{classeprod_a471987de1115dc639eccff65f3b9aa3}{
96Array$<$ ivec $>$ \hyperlink{classeprod_a471987de1115dc639eccff65f3b9aa3}{rvinds}}
97\label{classeprod_a471987de1115dc639eccff65f3b9aa3}
98
99\begin{CompactList}\small\item\em Array of indeces. \item\end{CompactList}\item 
100\hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{
101\hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}}
102\label{classepdf_74da992e3f5d598da8850b646b79b9d9}
103
104\begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize}
105
106
107\subsection{Detailed Description}
108Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}.
109
110The documentation for this class was generated from the following file:\begin{CompactItemize}
111\item 
112work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.