1 | \hypertarget{classeprod}{ |
---|
2 | \section{eprod Class Reference} |
---|
3 | \label{classeprod}\index{eprod@{eprod}} |
---|
4 | } |
---|
5 | Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}. |
---|
6 | |
---|
7 | |
---|
8 | {\tt \#include $<$emix.h$>$} |
---|
9 | |
---|
10 | Inheritance 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} |
---|
17 | Collaboration 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}{ |
---|
33 | vec \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}{ |
---|
38 | vec \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_0af49e491414d6f270dc347bcb054eb6}{ |
---|
43 | double \hyperlink{classeprod_0af49e491414d6f270dc347bcb054eb6}{evallog} (const vec \&val) const } |
---|
44 | \label{classeprod_0af49e491414d6f270dc347bcb054eb6} |
---|
45 | |
---|
46 | \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item |
---|
47 | \hypertarget{classeprod_c049331d8b1ec7e4c088cf0cc6d47f3f}{ |
---|
48 | const \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{classeprod_fe8cc34921cb43558654455007676f05}{ |
---|
53 | \hyperlink{classeprod_fe8cc34921cb43558654455007676f05}{$\sim$eprod} ()} |
---|
54 | \label{classeprod_fe8cc34921cb43558654455007676f05} |
---|
55 | |
---|
56 | \begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item |
---|
57 | \hypertarget{classepdf_76608914c3b19e150292d5c56e93e508}{ |
---|
58 | virtual mat \hyperlink{classepdf_76608914c3b19e150292d5c56e93e508}{sample\_\-m} (int N) const } |
---|
59 | \label{classepdf_76608914c3b19e150292d5c56e93e508} |
---|
60 | |
---|
61 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
---|
62 | \hypertarget{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{ |
---|
63 | virtual vec \hyperlink{classepdf_2495a04bbacb9b55fe5a3a59b78affca}{evallog\_\-m} (const mat \&Val) const } |
---|
64 | \label{classepdf_2495a04bbacb9b55fe5a3a59b78affca} |
---|
65 | |
---|
66 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
---|
67 | \hypertarget{classepdf_e87dc8260a5c37bc1b03eb66174741a0}{ |
---|
68 | virtual \hyperlink{classmpdf}{mpdf} $\ast$ \hyperlink{classepdf_e87dc8260a5c37bc1b03eb66174741a0}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const } |
---|
69 | \label{classepdf_e87dc8260a5c37bc1b03eb66174741a0} |
---|
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_38de9f59b65ee06028554f3f74b66025}{ |
---|
73 | virtual \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classepdf_38de9f59b65ee06028554f3f74b66025}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const } |
---|
74 | \label{classepdf_38de9f59b65ee06028554f3f74b66025} |
---|
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}{ |
---|
78 | const \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}{ |
---|
83 | void \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}{ |
---|
91 | Array$<$ 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_852a8e1b5b52a992f56cd2ab6c0b4a29}{ |
---|
96 | Array$<$ \hyperlink{classdatalink__e2e}{datalink\_\-e2e} $\ast$ $>$ \hyperlink{classeprod_852a8e1b5b52a992f56cd2ab6c0b4a29}{dls}} |
---|
97 | \label{classeprod_852a8e1b5b52a992f56cd2ab6c0b4a29} |
---|
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} |
---|
108 | Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}. |
---|
109 | |
---|
110 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
111 | \item |
---|
112 | work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\end{CompactItemize} |
---|