EvolvingObjects
eoAverageStat< EOT > Class Template Reference

Average fitness of a population. More...

#include <eoStat.h>

Inheritance diagram for eoAverageStat< EOT >:
eoStat< EOT, EOT::Fitness > eoValueParam< EOT::Fitness > eoStatBase< EOT > eoParam eoUF< const eoPop< EOT > &, void > eoFunctorBase unary_function

List of all members.

Public Types

typedef EOT::Fitness Fitness

Public Member Functions

 eoAverageStat (std::string _description="Average Fitness")
 eoAverageStat (double _value, std::string _desc)
virtual void operator() (const eoPop< EOT > &_pop)
 The pure virtual function that needs to be implemented by the subclass.
virtual std::string className (void) const

Static Public Member Functions

static Fitness sumFitness (double _sum, const EOT &_eot)

Private Member Functions

template<class T >
void doit (const eoPop< EOT > &_pop, T)

Detailed Description

template<class EOT>
class eoAverageStat< EOT >

Average fitness of a population.

Fitness can be:

  • double
  • eoMinimizingFitness or eoMaximizingFitness The average of each objective is evaluated.

( For eoScalarFitnessAssembled user eoAssembledFitnessStat classes.)

Examples:
t-eoSSGA.cpp, and t-eoSymreg.cpp.

Definition at line 140 of file eoStat.h.


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