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