EvolvingObjects
eoPerf2Worth< EOT, WorthT > Class Template Reference

Base class to transform raw fitnesses into fitness for selection. More...

#include <eoPerf2Worth.h>

Inheritance diagram for eoPerf2Worth< EOT, WorthT >:
eoUF< const eoPop< EOT > &, void > eoValueParam< std::vector< WorthT > > eoFunctorBase unary_function eoParam eoPerf2WorthCached< EOT, WorthT >

List of all members.

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)

Detailed Description

template<class EOT, class WorthT = double>
class eoPerf2Worth< EOT, WorthT >

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

See also:
eoSelectFromWorth

Definition at line 46 of file eoPerf2Worth.h.


Member Function Documentation

template<class EOT, class WorthT = double>
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends