Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BBIndividual Class Reference

The class is the abstract base class for indiviuals. More...

#include <BB2004Evo.h>

Inheritance diagram for BBIndividual:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void init (const BBIndividual &initial)=0
 The function initializes the current individual with another one.

virtual void interpolate (const BBIndividual &other)=0
 The function interpolates between the current individual and another one.

virtual void extrapolate (const BBIndividual &other)=0
 The function extrapolates between the current individual and another one.

virtual void mutate ()=0
 The function mutates the current individual.

virtual double getFitness () const=0
 The function calculates the fitness of the individual.


Detailed Description

The class is the abstract base class for indiviuals.

Concrete implementations only have to be derived from this class.

Definition at line 21 of file BB2004Evo.h.


Member Function Documentation

virtual void BBIndividual::init const BBIndividual initial  )  [pure virtual]
 

The function initializes the current individual with another one.

It has to be implemented in a derived class.

Parameters:
initial The other individual the current one is initialized with.

Implemented in CalibrationIndividual, and BBInvKinIndividual.

virtual void BBIndividual::interpolate const BBIndividual other  )  [pure virtual]
 

The function interpolates between the current individual and another one.

The result is stored in the current individual. It has to be implemented in a derived class.

Parameters:
other The other individual the current one is interpolated with.

Implemented in CalibrationIndividual, and BBInvKinIndividual.

virtual void BBIndividual::extrapolate const BBIndividual other  )  [pure virtual]
 

The function extrapolates between the current individual and another one.

It has to be implemented in a derived class.

Parameters:
other The other individual the current one is extrapolated with.

Implemented in CalibrationIndividual, and BBInvKinIndividual.

virtual void BBIndividual::mutate  )  [pure virtual]
 

The function mutates the current individual.

It has to be implemented in a derived class.

Implemented in CalibrationIndividual, and BBInvKinIndividual.

virtual double BBIndividual::getFitness  )  const [pure virtual]
 

The function calculates the fitness of the individual.

It has to be implemented in a derived class.

Returns:
The fitness as a number >= 0. A higher result means a higher fitness.

Implemented in CalibrationIndividual, and BBInvKinIndividual.


The documentation for this class was generated from the following file:
Generated on Thu Sep 23 20:04:35 2004 for GT2004 by doxygen 1.3.6