EvolvingObjects
|
Base class to transform raw fitnesses into fitness for selection. More...
#include <eoPerf2Worth.h>
Classes | |
class | compare_worth |
helper class used to sort indices into populations/worths More... | |
Public Member Functions | |
eoPerf2Worth (std::string _description="Worths") | |
default constructor | |
virtual void | sort_pop (eoPop< EOT > &_pop) |
Sort population according to worth, will keep the worths and fitness_cache in sync with the population. | |
virtual void | resize (eoPop< EOT > &_pop, unsigned sz) |
Base class to transform raw fitnesses into fitness for selection.
-*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
----------------------------------------------------------------------------- eoPerf2Worth.h (c) Maarten Keijzer, Marc Schoenauer, 2001
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Contact: todos@geneura.ugr.es, http://geneura.ugr.es Marc.Schoenauer@polytechnique.fr mkeijzer@dhi.dk
Definition at line 46 of file eoPerf2Worth.h.
virtual void eoPerf2Worth< EOT, WorthT >::sort_pop | ( | eoPop< EOT > & | _pop | ) | [inline, virtual] |
Sort population according to worth, will keep the worths and fitness_cache in sync with the population.
Reimplemented in eoPerf2WorthCached< EOT, WorthT >, eoPerf2WorthCached< PyEO, double >, and eoPerf2WorthCached< EOT, double >.
Definition at line 59 of file eoPerf2Worth.h.