root/doc/latex/classbdm_1_1eprod.tex @ 269

Revision 269, 6.5 kB (checked in by smidl, 16 years ago)

doc

RevLine 
[261]1\hypertarget{classbdm_1_1eprod}{
2\section{bdm::eprod Class Reference}
3\label{classbdm_1_1eprod}\index{bdm::eprod@{bdm::eprod}}
4}
5Product of independent epdfs. For dependent pdfs, use \hyperlink{classbdm_1_1mprod}{mprod}
6
7
8{\tt \#include $<$emix.h$>$}
9
10Inheritance diagram for bdm::eprod:\nopagebreak
11\begin{figure}[H]
12\begin{center}
13\leavevmode
14\includegraphics[width=64pt]{classbdm_1_1eprod__inherit__graph}
15\end{center}
16\end{figure}
17Collaboration diagram for bdm::eprod:\nopagebreak
18\begin{figure}[H]
19\begin{center}
20\leavevmode
21\includegraphics[width=75pt]{classbdm_1_1eprod__coll__graph}
22\end{center}
23\end{figure}
24\subsection*{Public Member Functions}
25\begin{CompactItemize}
26\item 
27\hypertarget{classbdm_1_1eprod_5f11492068875f95a8a377924ee0c611}{
28\textbf{eprod} (const Array$<$ const \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ $>$ epdfs0)}
29\label{classbdm_1_1eprod_5f11492068875f95a8a377924ee0c611}
30
31\item 
32\hypertarget{classbdm_1_1eprod_1d494351e7e385ad3382387c96915d24}{
33vec \hyperlink{classbdm_1_1eprod_1d494351e7e385ad3382387c96915d24}{mean} () const }
34\label{classbdm_1_1eprod_1d494351e7e385ad3382387c96915d24}
35
36\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
37\hypertarget{classbdm_1_1eprod_cc53a151f5ac5dfba68d425acc3a5615}{
38vec \hyperlink{classbdm_1_1eprod_cc53a151f5ac5dfba68d425acc3a5615}{variance} () const }
39\label{classbdm_1_1eprod_cc53a151f5ac5dfba68d425acc3a5615}
40
41\begin{CompactList}\small\item\em return expected variance (not covariance!) \item\end{CompactList}\item 
42\hypertarget{classbdm_1_1eprod_af48debea25d3473bcb71b6a77fac741}{
43vec \hyperlink{classbdm_1_1eprod_af48debea25d3473bcb71b6a77fac741}{sample} () const }
44\label{classbdm_1_1eprod_af48debea25d3473bcb71b6a77fac741}
45
46\begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item 
47\hypertarget{classbdm_1_1eprod_a5a91e67d2f74ff2b0b8eecde2fa42e2}{
48double \hyperlink{classbdm_1_1eprod_a5a91e67d2f74ff2b0b8eecde2fa42e2}{evallog} (const vec \&val) const }
49\label{classbdm_1_1eprod_a5a91e67d2f74ff2b0b8eecde2fa42e2}
50
51\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item 
52\hypertarget{classbdm_1_1eprod_5194b47dd05a5886e0745250b6704953}{
53const \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1eprod_5194b47dd05a5886e0745250b6704953}{operator()} (int i) const }
54\label{classbdm_1_1eprod_5194b47dd05a5886e0745250b6704953}
55
56\begin{CompactList}\small\item\em access function \item\end{CompactList}\item 
57\hypertarget{classbdm_1_1eprod_708b37971aab3667f20e325c358632cf}{
58\hyperlink{classbdm_1_1eprod_708b37971aab3667f20e325c358632cf}{$\sim$eprod} ()}
59\label{classbdm_1_1eprod_708b37971aab3667f20e325c358632cf}
60
61\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
62\hypertarget{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{
63virtual mat \hyperlink{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}{sample\_\-m} (int N) const }
64\label{classbdm_1_1epdf_b4cf45fd83cc7573ede9fe1215256058}
65
66\begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item 
67\hypertarget{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}{
68virtual vec \hyperlink{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}{evallog\_\-m} (const mat \&Val) const }
69\label{classbdm_1_1epdf_34956d4dd3176eeb5937cf48a1546b62}
70
71\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item 
72\hypertarget{classbdm_1_1epdf_e584eac5579c1b6384947ecf66166c77}{
73virtual \hyperlink{classbdm_1_1mpdf}{mpdf} $\ast$ \hyperlink{classbdm_1_1epdf_e584eac5579c1b6384947ecf66166c77}{condition} (const \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}) const }
74\label{classbdm_1_1epdf_e584eac5579c1b6384947ecf66166c77}
75
76\begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classbdm_1_1RV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item 
77\hypertarget{classbdm_1_1epdf_3fb2ece54f720b62ad325e61214fa0a1}{
78virtual \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1epdf_3fb2ece54f720b62ad325e61214fa0a1}{marginal} (const \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}) const }
79\label{classbdm_1_1epdf_3fb2ece54f720b62ad325e61214fa0a1}
80
81\begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classbdm_1_1RV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item 
82\hypertarget{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{
83const \hyperlink{classbdm_1_1RV}{RV} \& \hyperlink{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}{\_\-rv} () const }
84\label{classbdm_1_1epdf_a4ab378d5e004c3ff3e2d4e64f7bba21}
85
86\begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item 
87\hypertarget{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{
88void \hyperlink{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}{\_\-renewrv} (const \hyperlink{classbdm_1_1RV}{RV} \&in\_\-rv)}
89\label{classbdm_1_1epdf_62e88cbce0ce77a8692f5e15d76e805f}
90
91\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize}
92\subsection*{Protected Attributes}
93\begin{CompactItemize}
94\item 
95\hypertarget{classbdm_1_1eprod_fa0b0981730f0a8339b9ff3e29d78391}{
96Array$<$ const \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ $>$ \hyperlink{classbdm_1_1eprod_fa0b0981730f0a8339b9ff3e29d78391}{epdfs}}
97\label{classbdm_1_1eprod_fa0b0981730f0a8339b9ff3e29d78391}
98
99\begin{CompactList}\small\item\em Components (epdfs). \item\end{CompactList}\item 
100\hypertarget{classbdm_1_1eprod_a42b1820428ac06eecb6d938cb6896ff}{
[269]101Array$<$ \hyperlink{classbdm_1_1datalink__e2e}{datalink\_\-e2e} $\ast$ $>$ \hyperlink{classbdm_1_1eprod_a42b1820428ac06eecb6d938cb6896ff}{dls}}
[261]102\label{classbdm_1_1eprod_a42b1820428ac06eecb6d938cb6896ff}
103
104\begin{CompactList}\small\item\em Array of indeces. \item\end{CompactList}\item 
105\hypertarget{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{
106\hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}{rv}}
107\label{classbdm_1_1epdf_62c5b8ff71d9ebe6cd58d3c342eb1dc8}
108
109\begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize}
110
111
112\subsection{Detailed Description}
113Product of independent epdfs. For dependent pdfs, use \hyperlink{classbdm_1_1mprod}{mprod}.
114
115The documentation for this class was generated from the following file:\begin{CompactItemize}
116\item 
117\hyperlink{emix_8h}{emix.h}\end{CompactItemize}
Note: See TracBrowser for help on using the browser.