eoPerf2Worth< EOT, WorthT > Class Template Reference

-*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- More...

#include <eoPerf2Worth.h>

Inheritance diagram for eoPerf2Worth< EOT, WorthT >:

eoUF< A1, R > eoValueParam< std::vector< WorthT > > eoFunctorBase eoParam eoLinearFitScaling< EOT > eoNoPerf2Worth< EOT > eoPerf2WorthCached< EOT, WorthT > eoRanking< EOT > eoSharing< EOT > eoNDSorting< EOT > eoParetoRanking< EOT > eoNDSorting_I< EOT > eoNDSorting_II< EOT >

List of all members.

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)
virtual void operator() (eoPop< EOT > &_pop)

Classes

class  compare_worth
 helper class used to sort indices into populations/worths More...


Detailed Description

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

-*- 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 Base class to transform raw fitnesses into fitness for selection

See also:
eoSelectFromWorth

Definition at line 43 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< Dummy, double >.

Definition at line 56 of file eoPerf2Worth.h.


The documentation for this class was generated from the following files:

Generated on Thu Jan 1 23:19:49 2009 for EvolvingObjects by  doxygen 1.5.5