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_5adef154e3655a872c284b02635b8b35}{ |
---|
43 | double \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}{ |
---|
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{classepdf_54d7dd53a641b618771cd9bee135181f}{ |
---|
53 | virtual 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}{ |
---|
58 | virtual 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_6af383b6f1c6ea6fc5f6724dd03d8877}{ |
---|
63 | virtual vec \hyperlink{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{evalpdflog} (const mat \&Val) const } |
---|
64 | \label{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877} |
---|
65 | |
---|
66 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
---|
67 | \hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{ |
---|
68 | const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const } |
---|
69 | \label{classepdf_ca0d32aabb4cbba347e0c37fe8607562} |
---|
70 | |
---|
71 | \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item |
---|
72 | \hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{ |
---|
73 | void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)} |
---|
74 | \label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5} |
---|
75 | |
---|
76 | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
---|
77 | \subsection*{Protected Attributes} |
---|
78 | \begin{CompactItemize} |
---|
79 | \item |
---|
80 | \hypertarget{classeprod_63fc0db078542bce1c5dff94f9c3a357}{ |
---|
81 | Array$<$ const \hyperlink{classepdf}{epdf} $\ast$ $>$ \hyperlink{classeprod_63fc0db078542bce1c5dff94f9c3a357}{epdfs}} |
---|
82 | \label{classeprod_63fc0db078542bce1c5dff94f9c3a357} |
---|
83 | |
---|
84 | \begin{CompactList}\small\item\em Components (epdfs). \item\end{CompactList}\item |
---|
85 | \hypertarget{classeprod_a471987de1115dc639eccff65f3b9aa3}{ |
---|
86 | Array$<$ ivec $>$ \hyperlink{classeprod_a471987de1115dc639eccff65f3b9aa3}{rvinds}} |
---|
87 | \label{classeprod_a471987de1115dc639eccff65f3b9aa3} |
---|
88 | |
---|
89 | \begin{CompactList}\small\item\em Array of indeces. \item\end{CompactList}\item |
---|
90 | \hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{ |
---|
91 | \hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}} |
---|
92 | \label{classepdf_74da992e3f5d598da8850b646b79b9d9} |
---|
93 | |
---|
94 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
---|
95 | |
---|
96 | |
---|
97 | \subsection{Detailed Description} |
---|
98 | Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}. |
---|
99 | |
---|
100 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
101 | \item |
---|
102 | work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\end{CompactItemize} |
---|