Show
Ignore:
Timestamp:
09/24/08 13:31:03 (16 years ago)
Author:
smidl
Message:

Latex doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/latex/classeEmp.tex

    r162 r172  
     1\hypertarget{classeEmp}{ 
    12\section{eEmp Class Reference} 
    23\label{classeEmp}\index{eEmp@{eEmp}} 
     4} 
    35Weighted empirical density.   
    46 
     
    2325\begin{CompactItemize} 
    2426\item  
    25 {\bf eEmp} (const {\bf RV} \&rv0, int n0)\label{classeEmp_0c04b073ecd0dae3d498e680ae27e9e4} 
     27\hypertarget{classeEmp_0c04b073ecd0dae3d498e680ae27e9e4}{ 
     28\hyperlink{classeEmp_0c04b073ecd0dae3d498e680ae27e9e4}{eEmp} (const \hyperlink{classRV}{RV} \&rv0, int n0)} 
     29\label{classeEmp_0c04b073ecd0dae3d498e680ae27e9e4} 
    2630 
    2731\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item  
    28 void {\bf set\_\-parameters} (const vec \&w0, {\bf epdf} $\ast$pdf0)\label{classeEmp_6606a656c1b28114f7384c25aaf80e8d} 
     32\hypertarget{classeEmp_6606a656c1b28114f7384c25aaf80e8d}{ 
     33void \hyperlink{classeEmp_6606a656c1b28114f7384c25aaf80e8d}{set\_\-parameters} (const vec \&w0, \hyperlink{classepdf}{epdf} $\ast$pdf0)} 
     34\label{classeEmp_6606a656c1b28114f7384c25aaf80e8d} 
    2935 
    3036\begin{CompactList}\small\item\em Set sample. \item\end{CompactList}\item  
    31 vec \& {\bf \_\-w} ()\label{classeEmp_31b2bfb73b72486a5c89f2ab850c7a9b} 
     37\hypertarget{classeEmp_31b2bfb73b72486a5c89f2ab850c7a9b}{ 
     38vec \& \hyperlink{classeEmp_31b2bfb73b72486a5c89f2ab850c7a9b}{\_\-w} ()} 
     39\label{classeEmp_31b2bfb73b72486a5c89f2ab850c7a9b} 
    3240 
    3341\begin{CompactList}\small\item\em Potentially dangerous, use with care. \item\end{CompactList}\item  
    34 Array$<$ vec $>$ \& {\bf \_\-samples} ()\label{classeEmp_31b747eca73b16f30370827ba4cc3575} 
     42\hypertarget{classeEmp_31b747eca73b16f30370827ba4cc3575}{ 
     43Array$<$ vec $>$ \& \hyperlink{classeEmp_31b747eca73b16f30370827ba4cc3575}{\_\-samples} ()} 
     44\label{classeEmp_31b747eca73b16f30370827ba4cc3575} 
    3545 
    3646\begin{CompactList}\small\item\em access function \item\end{CompactList}\item  
    37 ivec {\bf resample} ({\bf RESAMPLING\_\-METHOD} method=SYSTEMATIC)\label{classeEmp_77268292fc4465cb73ddbfb1f2932a59} 
     47\hypertarget{classeEmp_77268292fc4465cb73ddbfb1f2932a59}{ 
     48ivec \hyperlink{classeEmp_77268292fc4465cb73ddbfb1f2932a59}{resample} (\hyperlink{libEF_8h_99497a3ff630f761cf6bff7babd23212}{RESAMPLING\_\-METHOD} method=SYSTEMATIC)} 
     49\label{classeEmp_77268292fc4465cb73ddbfb1f2932a59} 
    3850 
    3951\begin{CompactList}\small\item\em Function performs resampling, i.e. removal of low-weight samples and duplication of high-weight samples such that the new samples represent the same density. \item\end{CompactList}\item  
    40 vec {\bf sample} () const \label{classeEmp_83f9283f92b805508d896479dc1ccf12} 
     52\hypertarget{classeEmp_83f9283f92b805508d896479dc1ccf12}{ 
     53vec \hyperlink{classeEmp_83f9283f92b805508d896479dc1ccf12}{sample} () const } 
     54\label{classeEmp_83f9283f92b805508d896479dc1ccf12} 
    4155 
    4256\begin{CompactList}\small\item\em inherited operation : NOT implemneted \item\end{CompactList}\item  
    43 double {\bf evalpdflog} (const vec \&val) const \label{classeEmp_23e7358995400865ad2e278945922fb3} 
     57\hypertarget{classeEmp_23e7358995400865ad2e278945922fb3}{ 
     58double \hyperlink{classeEmp_23e7358995400865ad2e278945922fb3}{evalpdflog} (const vec \&val) const } 
     59\label{classeEmp_23e7358995400865ad2e278945922fb3} 
    4460 
    4561\begin{CompactList}\small\item\em inherited operation : NOT implemneted \item\end{CompactList}\item  
    46 vec {\bf mean} () const \label{classeEmp_ba055c19038cc72628d98e25197e982d} 
     62\hypertarget{classeEmp_ba055c19038cc72628d98e25197e982d}{ 
     63vec \hyperlink{classeEmp_ba055c19038cc72628d98e25197e982d}{mean} () const } 
     64\label{classeEmp_ba055c19038cc72628d98e25197e982d} 
    4765 
    4866\begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item  
    49 virtual mat {\bf sampleN} (int N) const \label{classepdf_54d7dd53a641b618771cd9bee135181f} 
     67\hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{ 
     68virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const } 
     69\label{classepdf_54d7dd53a641b618771cd9bee135181f} 
    5070 
    5171\begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item  
    52 virtual double {\bf eval} (const vec \&val) const \label{classepdf_3ea597362e11a0040fe7c990269d072c} 
     72\hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{ 
     73virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const } 
     74\label{classepdf_3ea597362e11a0040fe7c990269d072c} 
    5375 
    5476\begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item  
    55 {\bf RV} \& {\bf \_\-rv} ()\label{classepdf_4778ea61ef400813e47750e024e9fc2f} 
     77\hypertarget{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{ 
     78virtual vec \hyperlink{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877}{evalpdflog} (const mat \&Val) const } 
     79\label{classepdf_6af383b6f1c6ea6fc5f6724dd03d8877} 
    5680 
    57 \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\end{CompactItemize} 
     81\begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item  
     82\hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{ 
     83const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const } 
     84\label{classepdf_ca0d32aabb4cbba347e0c37fe8607562} 
     85 
     86\begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item  
     87\hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{ 
     88void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)} 
     89\label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5} 
     90 
     91\begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} 
    5892\subsection*{Protected Attributes} 
    5993\begin{CompactItemize} 
    6094\item  
    61 int {\bf n}\label{classeEmp_8c33034de0e35f03f8bb85d3d67438fd} 
     95\hypertarget{classeEmp_8c33034de0e35f03f8bb85d3d67438fd}{ 
     96int \hyperlink{classeEmp_8c33034de0e35f03f8bb85d3d67438fd}{n}} 
     97\label{classeEmp_8c33034de0e35f03f8bb85d3d67438fd} 
    6298 
    6399\begin{CompactList}\small\item\em Number of particles. \item\end{CompactList}\item  
    64 vec {\bf w}\label{classeEmp_ae78d144404ddba843c93b171b215de8} 
     100\hypertarget{classeEmp_ae78d144404ddba843c93b171b215de8}{ 
     101vec \hyperlink{classeEmp_ae78d144404ddba843c93b171b215de8}{w}} 
     102\label{classeEmp_ae78d144404ddba843c93b171b215de8} 
    65103 
    66104\begin{CompactList}\small\item\em Sample weights $w$. \item\end{CompactList}\item  
    67 Array$<$ vec $>$ {\bf samples}\label{classeEmp_a4d6f4bbd6a6824fc39f14676701279a} 
     105\hypertarget{classeEmp_a4d6f4bbd6a6824fc39f14676701279a}{ 
     106Array$<$ vec $>$ \hyperlink{classeEmp_a4d6f4bbd6a6824fc39f14676701279a}{samples}} 
     107\label{classeEmp_a4d6f4bbd6a6824fc39f14676701279a} 
    68108 
    69109\begin{CompactList}\small\item\em Samples $x^{(i)}, i=1..n$. \item\end{CompactList}\item  
    70 {\bf RV} {\bf rv}\label{classepdf_74da992e3f5d598da8850b646b79b9d9} 
     110\hypertarget{classepdf_74da992e3f5d598da8850b646b79b9d9}{ 
     111\hyperlink{classRV}{RV} \hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}} 
     112\label{classepdf_74da992e3f5d598da8850b646b79b9d9} 
    71113 
    72114\begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} 
     
    80122The documentation for this class was generated from the following files:\begin{CompactItemize} 
    81123\item  
    82 work/git/mixpp/bdm/stat/{\bf libEF.h}\item  
     124work/git/mixpp/bdm/stat/\hyperlink{libEF_8h}{libEF.h}\item  
    83125work/git/mixpp/bdm/stat/libEF.cpp\end{CompactItemize}