[8] | 1 | \section{epdf Class Reference} |
---|
| 2 | \label{classepdf}\index{epdf@{epdf}} |
---|
| 3 | Probability density function with numerical statistics, e.g. posterior density. |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | {\tt \#include $<$libBM.h$>$} |
---|
| 7 | |
---|
[19] | 8 | Inheritance diagram for epdf:\nopagebreak |
---|
| 9 | \begin{figure}[H] |
---|
[8] | 10 | \begin{center} |
---|
| 11 | \leavevmode |
---|
[33] | 12 | \includegraphics[width=400pt]{classepdf__inherit__graph} |
---|
[8] | 13 | \end{center} |
---|
| 14 | \end{figure} |
---|
[19] | 15 | Collaboration diagram for epdf:\nopagebreak |
---|
| 16 | \begin{figure}[H] |
---|
| 17 | \begin{center} |
---|
| 18 | \leavevmode |
---|
[91] | 19 | \includegraphics[width=39pt]{classepdf__coll__graph} |
---|
[19] | 20 | \end{center} |
---|
| 21 | \end{figure} |
---|
[8] | 22 | \subsection*{Public Member Functions} |
---|
| 23 | \begin{CompactItemize} |
---|
| 24 | \item |
---|
[32] | 25 | {\bf epdf} ()\label{classepdf_d8eb760037b3bad5a0d64081606697cd} |
---|
| 26 | |
---|
| 27 | \begin{CompactList}\small\item\em default constructor \item\end{CompactList}\item |
---|
| 28 | {\bf epdf} (const {\bf RV} \&rv0)\label{classepdf_c95b1a27a8dd9507bb9a5a3cb2809c7a} |
---|
| 29 | |
---|
| 30 | \begin{CompactList}\small\item\em default constructor \item\end{CompactList}\item |
---|
[33] | 31 | virtual vec {\bf sample} () const =0 |
---|
[8] | 32 | \begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item |
---|
[140] | 33 | virtual mat {\bf sampleN} (int N) const \label{classepdf_54d7dd53a641b618771cd9bee135181f} |
---|
[106] | 34 | |
---|
| 35 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
---|
[33] | 36 | virtual double {\bf eval} (const vec \&val) const \label{classepdf_3ea597362e11a0040fe7c990269d072c} |
---|
[8] | 37 | |
---|
[32] | 38 | \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item |
---|
[33] | 39 | virtual double {\bf evalpdflog} (const vec \&val) const =0\label{classepdf_6aef3eca74899692503769c18add1a4c} |
---|
[8] | 40 | |
---|
[32] | 41 | \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item |
---|
[33] | 42 | virtual vec {\bf mean} () const =0\label{classepdf_bf0a070a8f3e67a93604ca724638b870} |
---|
[8] | 43 | |
---|
[32] | 44 | \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item |
---|
| 45 | virtual {\bf $\sim$epdf} ()\label{classepdf_0a322dd106f04c0a2915e3d4f4227396} |
---|
| 46 | |
---|
[33] | 47 | \begin{CompactList}\small\item\em Destructor for future use;. \item\end{CompactList}\item |
---|
| 48 | {\bf RV} {\bf \_\-rv} () const \label{classepdf_b89143f12c9b49282e30841e4fb5f337} |
---|
| 49 | |
---|
| 50 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} |
---|
[32] | 51 | \subsection*{Protected Attributes} |
---|
| 52 | \begin{CompactItemize} |
---|
| 53 | \item |
---|
[33] | 54 | {\bf RV} {\bf rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9} |
---|
[32] | 55 | |
---|
[33] | 56 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
---|
[32] | 57 | |
---|
| 58 | |
---|
[8] | 59 | \subsection{Detailed Description} |
---|
| 60 | Probability density function with numerical statistics, e.g. posterior density. |
---|
| 61 | |
---|
| 62 | \subsection{Member Function Documentation} |
---|
| 63 | \index{epdf@{epdf}!sample@{sample}} |
---|
| 64 | \index{sample@{sample}!epdf@{epdf}} |
---|
[140] | 65 | \subsubsection[sample]{\setlength{\rightskip}{0pt plus 5cm}virtual vec epdf::sample () const\hspace{0.3cm}{\tt [pure virtual]}}\label{classepdf_8019654e494bf5e458f6fb947e11b262} |
---|
[8] | 66 | |
---|
| 67 | |
---|
| 68 | Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. |
---|
| 69 | |
---|
[99] | 70 | Returns a sample, $x$ from density $epdf(rv)$ |
---|
[8] | 71 | |
---|
[106] | 72 | Implemented in {\bf emix} \doxyref{}{p.}{classemix_0650601f24e633e0ab09aa1e46c14483}, {\bf enorm$<$ sq\_\-T $>$} \doxyref{}{p.}{classenorm_60b47544f6181ffd4530d3e415ce12c5}, {\bf egiw} \doxyref{}{p.}{classegiw_3d2c1f2ba0f9966781f1e0ae695e8a6f}, {\bf egamma} \doxyref{}{p.}{classegamma_8e10c0021b5dfdd9cb62c6959b5ef425}, {\bf euni} \doxyref{}{p.}{classeuni_4a0e09392be17beaee120ba98fc038cd}, {\bf eEmp} \doxyref{}{p.}{classeEmp_83f9283f92b805508d896479dc1ccf12}, {\bf enorm$<$ ldmat $>$} \doxyref{}{p.}{classenorm_60b47544f6181ffd4530d3e415ce12c5}, {\bf enorm$<$ chmat $>$} \doxyref{}{p.}{classenorm_60b47544f6181ffd4530d3e415ce12c5}, and {\bf enorm$<$ fsqmat $>$} \doxyref{}{p.}{classenorm_60b47544f6181ffd4530d3e415ce12c5}. |
---|
[8] | 73 | |
---|
[140] | 74 | Referenced by mpdf::samplecond(), PF::set\_\-est(), and eEmp::set\_\-parameters(). |
---|
[91] | 75 | |
---|
[106] | 76 | The documentation for this class was generated from the following files:\begin{CompactItemize} |
---|
[8] | 77 | \item |
---|
[106] | 78 | work/mixpp/bdm/stat/{\bf libBM.h}\item |
---|
| 79 | work/mixpp/bdm/stat/libBM.cpp\end{CompactItemize} |
---|