FREE::ES::SelectionBase< TIndividual > Class Template Reference
[Evolutionary strategies]

The abstract basis for a selection within a population. More...

#include <freESSelectionBase.h>

Inheritance diagram for FREE::ES::SelectionBase< TIndividual >:

Inheritance graph
FREE::ES::CommaSelection\< TIndividual \>FREE::ES::PlusSelection\< TIndividual \>FREE::ES::ComponentBase\< TIndividual \>
[legend]
Collaboration diagram for FREE::ES::SelectionBase< TIndividual >:

Collaboration graph
FREE::ES::ComponentBase\< TIndividual \>
[legend]

List of all members.

Public Types

typedef
SelectionBase
< TIndividual > 
Self
typedef
ComponentBase
< TIndividual > 
Superclass
typedef
itk::SmartPointer
< Self
Pointer
typedef
itk::SmartPointer
< const Self
ConstPointer
typedef
Superclass::IndividualType 
IndividualType
typedef
IndividualType::Pointer 
IndividualPointer
typedef Population
< IndividualType
PopulationType
typedef
PopulationType::Pointer 
PopulationPointer
typedef unsigned long PopulationSizeType

Public Member Functions

virtual const char * GetNameOfClass () const
virtual void SetMaximumIsBest (const bool _arg)
virtual bool GetMaximumIsBest () const
virtual void MaximumIsBestOn ()
virtual void MaximumIsBestOff ()
virtual PopulationPointer Select (PopulationType *pPopulation, PopulationSizeType newSize) const =0

Protected Member Functions

 SelectionBase ()
virtual ~SelectionBase ()

Private Member Functions

 SelectionBase (Self const &)

Private Attributes

bool m_MaximumIsBest


Detailed Description

template<class TIndividual>
class FREE::ES::SelectionBase< TIndividual >

The abstract basis for a selection within a population.

The class selects n individuals out of a population and removes the others from the populution. The selection strategie depends on the concrete implementation.

Remarks:
It will be assumed that all new individuals of the population have a generation ID greater than the generation ID of the population. (see also EvolutionStrategyOptimizerBase)

Definition at line 47 of file freESSelectionBase.h.


Member Typedef Documentation

template<class TIndividual>
typedef SelectionBase<TIndividual> FREE::ES::SelectionBase< TIndividual >::Self

Standard "Self" typedef.

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 52 of file freESSelectionBase.h.

template<class TIndividual>
typedef ComponentBase<TIndividual> FREE::ES::SelectionBase< TIndividual >::Superclass

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 53 of file freESSelectionBase.h.

template<class TIndividual>
typedef itk::SmartPointer<Self> FREE::ES::SelectionBase< TIndividual >::Pointer

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 54 of file freESSelectionBase.h.

template<class TIndividual>
typedef itk::SmartPointer<const Self> FREE::ES::SelectionBase< TIndividual >::ConstPointer

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 55 of file freESSelectionBase.h.

template<class TIndividual>
typedef Superclass::IndividualType FREE::ES::SelectionBase< TIndividual >::IndividualType

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 61 of file freESSelectionBase.h.

template<class TIndividual>
typedef IndividualType::Pointer FREE::ES::SelectionBase< TIndividual >::IndividualPointer

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 64 of file freESSelectionBase.h.

template<class TIndividual>
typedef Population<IndividualType> FREE::ES::SelectionBase< TIndividual >::PopulationType

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 65 of file freESSelectionBase.h.

template<class TIndividual>
typedef PopulationType::Pointer FREE::ES::SelectionBase< TIndividual >::PopulationPointer

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 66 of file freESSelectionBase.h.

template<class TIndividual>
typedef unsigned long FREE::ES::SelectionBase< TIndividual >::PopulationSizeType

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 68 of file freESSelectionBase.h.


Constructor & Destructor Documentation

template<class TIndividual>
FREE::ES::SelectionBase< TIndividual >::SelectionBase (  )  [inline, protected]

Definition at line 34 of file freESSelectionBase.txx.

template<class TIndividual>
FREE::ES::SelectionBase< TIndividual >::~SelectionBase (  )  [inline, protected, virtual]

Definition at line 41 of file freESSelectionBase.txx.

template<class TIndividual>
FREE::ES::SelectionBase< TIndividual >::SelectionBase ( Self const &   )  [private]


Member Function Documentation

template<class TIndividual>
virtual const char* FREE::ES::SelectionBase< TIndividual >::GetNameOfClass (  )  const [inline, virtual]

Method for creation through the object factory. Run-time type information (and related methods).

Reimplemented from FREE::ES::ComponentBase< TIndividual >.

Reimplemented in FREE::ES::CommaSelection< TIndividual >, and FREE::ES::PlusSelection< TIndividual >.

Definition at line 61 of file freESSelectionBase.h.

template<class TIndividual>
virtual void FREE::ES::SelectionBase< TIndividual >::SetMaximumIsBest ( const bool  _arg  )  [inline, virtual]

Definition at line 70 of file freESSelectionBase.h.

template<class TIndividual>
virtual bool FREE::ES::SelectionBase< TIndividual >::GetMaximumIsBest (  )  const [inline, virtual]

Definition at line 71 of file freESSelectionBase.h.

template<class TIndividual>
virtual void FREE::ES::SelectionBase< TIndividual >::MaximumIsBestOn (  )  [inline, virtual]

Definition at line 72 of file freESSelectionBase.h.

template<class TIndividual>
virtual void FREE::ES::SelectionBase< TIndividual >::MaximumIsBestOff (  )  [inline, virtual]

Definition at line 72 of file freESSelectionBase.h.

template<class TIndividual>
virtual PopulationPointer FREE::ES::SelectionBase< TIndividual >::Select ( PopulationType pPopulation,
PopulationSizeType  newSize 
) const [pure virtual]

Selects x individuals out of the population and removes the others form the passed population. (x == new Size) The removed individuals will be inserted in the newly created population and returned as function valus. The generation ID will not be changed by this function.

Returns:
Population with the removed individuals.


Member Data Documentation

template<class TIndividual>
bool FREE::ES::SelectionBase< TIndividual >::m_MaximumIsBest [private]

Definition at line 87 of file freESSelectionBase.h.


The documentation for this class was generated from the following files:
Generated at Sat Oct 13 18:29:50 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000