Show
Ignore:
Timestamp:
05/12/08 17:37:08 (16 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/latex/classemix.tex

    r33 r106  
    11\section{emix Class Reference} 
    22\label{classemix}\index{emix@{emix}} 
    3 Weighted mixture of epdfs with external owned components.   
     3Mixture of epdfs.   
    44 
    55 
    6 {\tt \#include $<$libEF.h$>$} 
     6{\tt \#include $<$emix.h$>$} 
    77 
    88Inheritance diagram for emix:\nopagebreak 
     
    1010\begin{center} 
    1111\leavevmode 
    12 \includegraphics[width=42pt]{classemix__inherit__graph} 
     12\includegraphics[width=40pt]{classemix__inherit__graph} 
    1313\end{center} 
    1414\end{figure} 
     
    1717\begin{center} 
    1818\leavevmode 
    19 \includegraphics[width=42pt]{classemix__coll__graph} 
     19\includegraphics[width=40pt]{classemix__coll__graph} 
    2020\end{center} 
    2121\end{figure} 
     
    2323\begin{CompactItemize} 
    2424\item  
    25 {\bf emix} (const {\bf RV} \&rv, vec \&w0)\label{classemix_b0ac204af8919c22bce72816ed82019e} 
     25{\bf emix} ({\bf RV} \&{\bf rv})\label{classemix_3a10c8481115a5460877272ddb6532a6} 
    2626 
    2727\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item  
    28 void \textbf{set\_\-parameters} (int \&i, double wi, {\bf epdf} $\ast$ep)\label{classemix_7be197d56e64f7cb578be3932663dfe5} 
     28void {\bf set\_\-parameters} (const vec \&{\bf w}, const Array$<$ {\bf epdf} $\ast$ $>$ \&{\bf Coms})\label{classemix_6ce82b24d7fe540ddbf44b472a005555} 
    2929 
    30 \item  
    31 vec \textbf{mean} ()\label{classemix_dcb3f927bf061eac6229850158ca1558} 
     30\begin{CompactList}\small\item\em Set weights {\tt w} and components {\tt R}. \item\end{CompactList}\item  
     31vec {\bf sample} () const  
     32\begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item  
     33vec {\bf mean} () const \label{classemix_b662a51d042b062020460e64bff4e9e8} 
    3234 
    33 \item  
    34 vec \textbf{sample} ()\label{classemix_3eb9a8e12ce1c5c8a3ddb245354b6941} 
     35\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item  
     36double {\bf evalpdflog} (const vec \&val) const \label{classemix_469e910479b3402589104ef3bb1b5741} 
    3537 
    36 \item  
    37 virtual vec {\bf sample} () const =0 
    38 \begin{CompactList}\small\item\em Returns the required moment of the \doxyref{epdf}{p.}{classepdf}. \item\end{CompactList}\item  
     38\begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item  
     39vec \& {\bf \_\-w} ()\label{classemix_35baf0f62307455cebfbf462144b4dd8} 
     40 
     41\begin{CompactList}\small\item\em returns a pointer to the internal mean value. Use with Care! \item\end{CompactList}\item  
     42virtual mat {\bf sample} (int N) const \label{classepdf_7b3523bce1de49f58afe7c1e428cc4fd} 
     43 
     44\begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item  
    3945virtual double {\bf eval} (const vec \&val) const \label{classepdf_3ea597362e11a0040fe7c990269d072c} 
    4046 
    4147\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item  
    42 virtual double {\bf evalpdflog} (const vec \&val) const =0\label{classepdf_6aef3eca74899692503769c18add1a4c} 
    43  
    44 \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item  
    45 virtual vec {\bf mean} () const =0\label{classepdf_bf0a070a8f3e67a93604ca724638b870} 
    46  
    47 \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item  
    4848{\bf RV} {\bf \_\-rv} () const \label{classepdf_b89143f12c9b49282e30841e4fb5f337} 
    4949 
     
    5252\begin{CompactItemize} 
    5353\item  
    54 int \textbf{n}\label{classemix_d408b764d002e5eb88acbf333921b2b3} 
     54vec {\bf w}\label{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab} 
    5555 
    56 \item  
    57 vec \& \textbf{w}\label{classemix_c79274a1e67dde9cc2914054c69b596b} 
     56\begin{CompactList}\small\item\em weights of the components \item\end{CompactList}\item  
     57Array$<$ {\bf epdf} $\ast$ $>$ {\bf Coms}\label{classemix_7155d827417b53fb6aa5cff1459e6eb4} 
    5858 
    59 \item  
    60 Array$<$ {\bf epdf} $\ast$ $>$ \textbf{Coms}\label{classemix_7155d827417b53fb6aa5cff1459e6eb4} 
     59\begin{CompactList}\small\item\em Component (epdfs). \item\end{CompactList}\item  
     60{\bf RV} {\bf rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9} 
    6161 
    62 \item  
    63 {\bf RV} \textbf{rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9} 
    64  
    65 \end{CompactItemize} 
     62\begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} 
    6663 
    6764 
    6865\subsection{Detailed Description} 
    69 Weighted mixture of epdfs with external owned components.  
     66Mixture of epdfs.  
     67 
     68Density 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\/},  
    7069 
    7170\subsection{Member Function Documentation} 
    7271\index{emix@{emix}!sample@{sample}} 
    7372\index{sample@{sample}!emix@{emix}} 
    74 \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual vec epdf::sample () const\hspace{0.3cm}{\tt  [pure virtual, inherited]}}\label{classepdf_8019654e494bf5e458f6fb947e11b262} 
     73\subsubsection{\setlength{\rightskip}{0pt plus 5cm}vec emix::sample () const\hspace{0.3cm}{\tt  [virtual]}}\label{classemix_0650601f24e633e0ab09aa1e46c14483} 
    7574 
    7675 
    7776Returns the required moment of the \doxyref{epdf}{p.}{classepdf}.  
    7877 
    79 Returns a sample from the density, $x \sim epdf(rv)$  
     78Returns a sample, $x$ from density $epdf(rv)$  
    8079 
    81 Implemented in {\bf enorm$<$ sq\_\-T $>$} \doxyref{}{p.}{classenorm_60b47544f6181ffd4530d3e415ce12c5}, {\bf egamma} \doxyref{}{p.}{classegamma_8e10c0021b5dfdd9cb62c6959b5ef425}, {\bf euni} \doxyref{}{p.}{classeuni_4a0e09392be17beaee120ba98fc038cd}, {\bf eEmp} \doxyref{}{p.}{classeEmp_83f9283f92b805508d896479dc1ccf12}, and {\bf enorm$<$ ldmat $>$} \doxyref{}{p.}{classenorm_60b47544f6181ffd4530d3e415ce12c5}. 
     80Implements {\bf epdf} \doxyref{}{p.}{classepdf_8019654e494bf5e458f6fb947e11b262}. 
    8281 
    83 The documentation for this class was generated from the following file:\begin{CompactItemize} 
     82References Coms, and w. 
     83 
     84The documentation for this class was generated from the following files:\begin{CompactItemize} 
    8485\item  
    85 work/mixpp/bdm/stat/{\bf libEF.h}\end{CompactItemize} 
     86work/mixpp/bdm/stat/{\bf emix.h}\item  
     87work/mixpp/bdm/stat/emix.cpp\end{CompactItemize}