root/doc/latex/classegamma.tex @ 32

Revision 30, 3.4 kB (checked in by smidl, 17 years ago)

compiles and runs successfully, except KF_QR

  • Property svn:eol-style set to native
Line 
1\section{egamma Class Reference}
2\label{classegamma}\index{egamma@{egamma}}
3Gamma posterior density. 
4
5
6{\tt \#include $<$libEF.h$>$}
7
8Inheritance diagram for egamma:\nopagebreak
9\begin{figure}[H]
10\begin{center}
11\leavevmode
12\includegraphics[width=52pt]{classegamma__inherit__graph}
13\end{center}
14\end{figure}
15Collaboration diagram for egamma:\nopagebreak
16\begin{figure}[H]
17\begin{center}
18\leavevmode
19\includegraphics[width=52pt]{classegamma__coll__graph}
20\end{center}
21\end{figure}
22\subsection*{Public Member Functions}
23\begin{CompactItemize}
24\item 
25{\bf egamma} (const {\bf RV} \&rv)\label{classegamma_4b1d34f3b244ea51a58ec10c468788c1}
26
27\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
28void {\bf set\_\-parameters} (const vec \&a, const vec \&b)\label{classegamma_8e348b89be82b70471fe8c5630f61339}
29
30\begin{CompactList}\small\item\em Sets parameters. \item\end{CompactList}\item 
31vec {\bf sample} ()
32\begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item 
33mat \textbf{sample} (int N)\label{classegamma_44bf6a5361059cf7a219bc9f68ff570a}
34
35\item 
36double \textbf{evalpdflog} (const vec val)\label{classegamma_fdf5819ed32377d364d6e0f8e8d30868}
37
38\item 
39void {\bf \_\-param} (vec $\ast$\&a, vec $\ast$\&b)\label{classegamma_44445c56e60b91b377f207f8d5089790}
40
41\begin{CompactList}\small\item\em Returns poiter to alpha and beta. Potentially dengerous: use with care! \item\end{CompactList}\item 
42vec {\bf mean} ()\label{classegamma_6617890ffa40767fc196876534d4119d}
43
44\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
45virtual void \textbf{tupdate} (double phi, mat \&vbar, double nubar)\label{classeEF_fd88bc35550ec8fe9281d358216d0fcf}
46
47\item 
48virtual void \textbf{dupdate} (mat \&v, double nu=1.0)\label{classeEF_5863718c3b2fb1496dece10c5b745d5c}
49
50\item 
51virtual double {\bf eval} (const vec \&val)\label{classepdf_f333ceeb88ebc37d81fcd4cea4526bfc}
52
53\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item 
54virtual double {\bf evalpdflog} (const vec \&val)\label{classepdf_113c76c61d20e3f2a24ba322a73dfc51}
55
56\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\end{CompactItemize}
57\subsection*{Protected Attributes}
58\begin{CompactItemize}
59\item 
60vec \textbf{alpha}\label{classegamma_376cebd8932546c440f21b182910b01b}
61
62\item 
63vec \textbf{beta}\label{classegamma_cfc5f136467488a421ab22f886323790}
64
65\item 
66{\bf RV} \textbf{rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9}
67
68\end{CompactItemize}
69
70
71\subsection{Detailed Description}
72Gamma posterior density.
73
74Multvariate Gamma density as product of independent univariate densities. \[ f(x|a,b) = \prod f(x_i|a_i,b_i) \] 
75
76\subsection{Member Function Documentation}
77\index{egamma@{egamma}!sample@{sample}}
78\index{sample@{sample}!egamma@{egamma}}
79\subsubsection{\setlength{\rightskip}{0pt plus 5cm}vec egamma::sample ()\hspace{0.3cm}{\tt  [virtual]}}\label{classegamma_0a2186a586432c2c3f22d09c5341890f}
80
81
82Returns the required moment of the \doxyref{epdf}{p.}{classepdf}.
83
84Returns a sample from the density, $x \sim epdf(rv)$ 
85
86Implements {\bf epdf} \doxyref{}{p.}{classepdf_7f74d871d50b9ff360f1b3879092a9fa}.
87
88The documentation for this class was generated from the following files:\begin{CompactItemize}
89\item 
90work/mixpp/bdm/stat/{\bf libEF.h}\item 
91work/mixpp/bdm/stat/libEF.cpp\end{CompactItemize}
Note: See TracBrowser for help on using the browser.