root/doc/latex/classemix.tex @ 174

Revision 172, 5.5 kB (checked in by smidl, 16 years ago)

Latex doc

  • Property svn:eol-style set to native
Line 
1\hypertarget{classemix}{
2\section{emix Class Reference}
3\label{classemix}\index{emix@{emix}}
4}
5Mixture of epdfs. 
6
7
8{\tt \#include $<$emix.h$>$}
9
10Inheritance diagram for emix:\nopagebreak
11\begin{figure}[H]
12\begin{center}
13\leavevmode
14\includegraphics[width=40pt]{classemix__inherit__graph}
15\end{center}
16\end{figure}
17Collaboration diagram for emix:\nopagebreak
18\begin{figure}[H]
19\begin{center}
20\leavevmode
21\includegraphics[width=40pt]{classemix__coll__graph}
22\end{center}
23\end{figure}
24\subsection*{Public Member Functions}
25\begin{CompactItemize}
26\item 
27\hypertarget{classemix_3a10c8481115a5460877272ddb6532a6}{
28\hyperlink{classemix_3a10c8481115a5460877272ddb6532a6}{emix} (\hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})}
29\label{classemix_3a10c8481115a5460877272ddb6532a6}
30
31\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
32\hypertarget{classemix_6ce82b24d7fe540ddbf44b472a005555}{
33void \hyperlink{classemix_6ce82b24d7fe540ddbf44b472a005555}{set\_\-parameters} (const vec \&\hyperlink{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab}{w}, const Array$<$ \hyperlink{classepdf}{epdf} $\ast$ $>$ \&\hyperlink{classemix_7155d827417b53fb6aa5cff1459e6eb4}{Coms})}
34\label{classemix_6ce82b24d7fe540ddbf44b472a005555}
35
36\begin{CompactList}\small\item\em Set weights {\tt w} and components {\tt R}. \item\end{CompactList}\item 
37\hypertarget{classemix_0650601f24e633e0ab09aa1e46c14483}{
38vec \hyperlink{classemix_0650601f24e633e0ab09aa1e46c14483}{sample} () const }
39\label{classemix_0650601f24e633e0ab09aa1e46c14483}
40
41\begin{CompactList}\small\item\em Returns a sample, $x$ from density $epdf(rv)$. \item\end{CompactList}\item 
42\hypertarget{classemix_b662a51d042b062020460e64bff4e9e8}{
43vec \hyperlink{classemix_b662a51d042b062020460e64bff4e9e8}{mean} () const }
44\label{classemix_b662a51d042b062020460e64bff4e9e8}
45
46\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item 
47\hypertarget{classemix_469e910479b3402589104ef3bb1b5741}{
48double \hyperlink{classemix_469e910479b3402589104ef3bb1b5741}{evalpdflog} (const vec \&val) const }
49\label{classemix_469e910479b3402589104ef3bb1b5741}
50
51\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item 
52\hypertarget{classemix_35baf0f62307455cebfbf462144b4dd8}{
53vec \& \hyperlink{classemix_35baf0f62307455cebfbf462144b4dd8}{\_\-w} ()}
54\label{classemix_35baf0f62307455cebfbf462144b4dd8}
55
56\begin{CompactList}\small\item\em returns a pointer to the internal mean value. Use with Care! \item\end{CompactList}\item 
57\hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{
58virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const }
59\label{classepdf_54d7dd53a641b618771cd9bee135181f}
60
61\begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item 
62\hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{
63virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const }
64\label{classepdf_3ea597362e11a0040fe7c990269d072c}
65
66\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item 
67\hypertarget{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{
68virtual vec \hyperlink{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{evalpdflog} (const mat \&Val) const }
69\label{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}
70
71\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item 
72\hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{
73const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const }
74\label{classepdf_ca0d32aabb4cbba347e0c37fe8607562}
75
76\begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item 
77\hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{
78void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)}
79\label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}
80
81\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize}
82\subsection*{Protected Attributes}
83\begin{CompactItemize}
84\item 
85\hypertarget{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab}{
86vec \hyperlink{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab}{w}}
87\label{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab}
88
89\begin{CompactList}\small\item\em weights of the components \item\end{CompactList}\item 
90\hypertarget{classemix_7155d827417b53fb6aa5cff1459e6eb4}{
91Array$<$ \hyperlink{classepdf}{epdf} $\ast$ $>$ \hyperlink{classemix_7155d827417b53fb6aa5cff1459e6eb4}{Coms}}
92\label{classemix_7155d827417b53fb6aa5cff1459e6eb4}
93
94\begin{CompactList}\small\item\em Component (epdfs). \item\end{CompactList}\item 
95\hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{
96\hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}}
97\label{classepdf_74da992e3f5d598da8850b646b79b9d9}
98
99\begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize}
100
101
102\subsection{Detailed Description}
103Mixture of epdfs.
104
105Density function: \[ f(x) = \sum_{i=1}^{n} w_{i} f_i(x), \quad \sum_{i=1}^n w_i = 1. \] where $f_i(x)$ is any density on random variable $x$, called {\em component\/},
106
107The documentation for this class was generated from the following files:\begin{CompactItemize}
108\item 
109work/git/mixpp/bdm/stat/\hyperlink{emix_8h}{emix.h}\item 
110work/git/mixpp/bdm/stat/emix.cpp\end{CompactItemize}
Note: See TracBrowser for help on using the browser.