git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
53 lines
2.1 KiB
TeX
53 lines
2.1 KiB
TeX
\section{eo\-Proportional\-Select$<$ EOT $>$ Class Template Reference}
|
|
\label{classeo_proportional_select}\index{eoProportionalSelect@{eoProportionalSelect}}
|
|
eo\-Proportional\-Select: select an individual proportional to her stored fitness value
|
|
|
|
|
|
{\tt \#include $<$eo\-Proportional\-Select.h$>$}
|
|
|
|
Inheritance diagram for eo\-Proportional\-Select$<$ EOT $>$::\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[height=3.23699cm]{classeo_proportional_select}
|
|
\end{center}
|
|
\end{figure}
|
|
\subsection*{Public Member Functions}
|
|
\begin{CompactItemize}
|
|
\item
|
|
{\bf eo\-Proportional\-Select} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&pop={\bf eo\-Pop}$<$ {\bf EOT} $>$())\label{classeo_proportional_select_a0}
|
|
|
|
\begin{CompactList}\small\item\em Sanity check. \item\end{CompactList}\item
|
|
void {\bf setup} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_proportional_select_a1}
|
|
|
|
\begin{CompactList}\small\item\em virtual function to setup some population stats (for instance eo\-Proportional can benefit greatly from this) \item\end{CompactList}\item
|
|
const {\bf EOT} \& {\bf operator()} (const {\bf eo\-Pop}$<$ {\bf EOT} $>$ \&\_\-pop)\label{classeo_proportional_select_a2}
|
|
|
|
\begin{CompactList}\small\item\em do the selection, \item\end{CompactList}\end{CompactItemize}
|
|
\subsection*{Private Types}
|
|
\begin{CompactItemize}
|
|
\item
|
|
typedef std::vector$<$ typename EOT::Fitness $>$ {\bf Fit\-Vec}\label{classeo_proportional_select_y0}
|
|
|
|
\end{CompactItemize}
|
|
\subsection*{Private Attributes}
|
|
\begin{CompactItemize}
|
|
\item
|
|
Fit\-Vec {\bf cumulative}\label{classeo_proportional_select_r0}
|
|
|
|
\end{CompactItemize}
|
|
|
|
|
|
\subsection{Detailed Description}
|
|
\subsubsection*{template$<$class EOT$>$ class eo\-Proportional\-Select$<$ EOT $>$}
|
|
|
|
eo\-Proportional\-Select: select an individual proportional to her stored fitness value
|
|
|
|
Changed the algorithm to make use of a cumulative array of fitness scores, This changes the algorithm from O(n) per call to O(log n) per call. (MK)
|
|
|
|
|
|
|
|
Definition at line 45 of file eo\-Proportional\-Select.h.
|
|
|
|
The documentation for this class was generated from the following file:\begin{CompactItemize}
|
|
\item
|
|
eo\-Proportional\-Select.h\end{CompactItemize}
|