[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 |
---|
| 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 | |
---|
[106] | 56 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
---|
[172] | 57 | \hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{ |
---|
| 58 | virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const } |
---|
| 59 | \label{classepdf_3ea597362e11a0040fe7c990269d072c} |
---|
[8] | 60 | |
---|
[32] | 61 | \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item |
---|
[180] | 62 | \hypertarget{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{ |
---|
| 63 | virtual vec \hyperlink{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{evalpdflog\_\-m} (const mat \&Val) const } |
---|
| 64 | \label{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c} |
---|
[8] | 65 | |
---|
[172] | 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} |
---|
[8] | 70 | |
---|
[172] | 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} |
---|
[33] | 75 | |
---|
[172] | 76 | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
---|
[32] | 77 | \subsection*{Protected Attributes} |
---|
| 78 | \begin{CompactItemize} |
---|
| 79 | \item |
---|
[172] | 80 | \hypertarget{classeprod_63fc0db078542bce1c5dff94f9c3a357}{ |
---|
| 81 | Array$<$ const \hyperlink{classepdf}{epdf} $\ast$ $>$ \hyperlink{classeprod_63fc0db078542bce1c5dff94f9c3a357}{epdfs}} |
---|
| 82 | \label{classeprod_63fc0db078542bce1c5dff94f9c3a357} |
---|
[140] | 83 | |
---|
[172] | 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} |
---|
[140] | 88 | |
---|
[172] | 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} |
---|
[145] | 93 | |
---|
[33] | 94 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
---|
[32] | 95 | |
---|
| 96 | |
---|
[8] | 97 | \subsection{Detailed Description} |
---|
[172] | 98 | Product of independent epdfs. For dependent pdfs, use \hyperlink{classmprod}{mprod}. |
---|
[8] | 99 | |
---|
[140] | 100 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
[8] | 101 | \item |
---|
[172] | 102 | work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\end{CompactItemize} |
---|