\section{egamma Class Reference} \label{classegamma}\index{egamma@{egamma}} Gamma posterior density. {\tt \#include $<$libEF.h$>$} Inheritance diagram for egamma:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=52pt]{classegamma__inherit__graph} \end{center} \end{figure} Collaboration diagram for egamma:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=52pt]{classegamma__coll__graph} \end{center} \end{figure} \subsection*{Public Member Functions} \begin{CompactItemize} \item {\bf egamma} (const {\bf RV} \&rv)\label{classegamma_4b1d34f3b244ea51a58ec10c468788c1} \begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item void {\bf set\_\-parameters} (const vec \&a, const vec \&b)\label{classegamma_8e348b89be82b70471fe8c5630f61339} \begin{CompactList}\small\item\em Sets parameters. \item\end{CompactList}\item vec {\bf sample} () \begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item mat \textbf{sample} (int N)\label{classegamma_44bf6a5361059cf7a219bc9f68ff570a} \item double \textbf{evalpdflog} (const vec val)\label{classegamma_fdf5819ed32377d364d6e0f8e8d30868} \item void {\bf \_\-param} (vec $\ast$\&a, vec $\ast$\&b)\label{classegamma_44445c56e60b91b377f207f8d5089790} \begin{CompactList}\small\item\em Returns poiter to alpha and beta. Potentially dengerous: use with care! \item\end{CompactList}\item vec {\bf mean} ()\label{classegamma_6617890ffa40767fc196876534d4119d} \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item virtual void \textbf{tupdate} (double phi, mat \&vbar, double nubar)\label{classeEF_fd88bc35550ec8fe9281d358216d0fcf} \item virtual void \textbf{dupdate} (mat \&v, double nu=1.0)\label{classeEF_5863718c3b2fb1496dece10c5b745d5c} \item virtual double {\bf eval} (const vec \&val)\label{classepdf_f333ceeb88ebc37d81fcd4cea4526bfc} \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item virtual double {\bf evalpdflog} (const vec \&val)\label{classepdf_113c76c61d20e3f2a24ba322a73dfc51} \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\end{CompactItemize} \subsection*{Protected Attributes} \begin{CompactItemize} \item vec \textbf{alpha}\label{classegamma_376cebd8932546c440f21b182910b01b} \item vec \textbf{beta}\label{classegamma_cfc5f136467488a421ab22f886323790} \item {\bf RV} \textbf{rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9} \end{CompactItemize} \subsection{Detailed Description} Gamma posterior density. Multvariate Gamma density as product of independent univariate densities. \[ f(x|a,b) = \prod f(x_i|a_i,b_i) \] \subsection{Member Function Documentation} \index{egamma@{egamma}!sample@{sample}} \index{sample@{sample}!egamma@{egamma}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}vec egamma::sample ()\hspace{0.3cm}{\tt [virtual]}}\label{classegamma_0a2186a586432c2c3f22d09c5341890f} Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. Returns a sample from the density, $x \sim epdf(rv)$ Implements {\bf epdf} \doxyref{}{p.}{classepdf_7f74d871d50b9ff360f1b3879092a9fa}. The documentation for this class was generated from the following files:\begin{CompactItemize} \item work/mixpp/bdm/stat/{\bf libEF.h}\item work/mixpp/bdm/stat/libEF.cpp\end{CompactItemize}