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

implements the comma-selection. More...

#include <freESCommaSelection.h>

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

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

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

List of all members.

Public Types

typedef
CommaSelection
< TIndividual > 
Self
typedef
SelectionBase
< TIndividual > 
Superclass
typedef
itk::SmartPointer
< Self
Pointer
typedef
itk::SmartPointer
< const Self
ConstPointer
typedef
Superclass::IndividualType 
IndividualType
typedef
Superclass::Pointer 
IndividualPointer
typedef
Superclass::PopulationType 
PopulationType
typedef
Superclass::PopulationPointer 
PopulationPointer
typedef
Superclass::PopulationSizeType 
PopulationSizeType

Public Member Functions

virtual
::itk::LightObject::Pointer 
CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual PopulationPointer Select (PopulationType *pPopulation, PopulationSizeType newSize) const
virtual void SetMaxGenerationAge (const unsigned long _arg)
virtual const
unsigned long & 
GetMaxGenerationAge () const

Static Public Member Functions

static Pointer New (void)

Protected Types

typedef
PlusSelection
< TIndividual > 
PrivatPlusSelectionType

Protected Member Functions

 CommaSelection ()

Protected Attributes

unsigned long m_MaxGenerationAge
PrivatPlusSelectionType::Pointer m_PlusSelection

Private Member Functions

 CommaSelection (Self const &)


Detailed Description

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

implements the comma-selection.

Realizes the comma selection for ES. By default it is the real comma selection, so only the new children are allowed to survive (MaxGenerationAge == 0). A soft elitism can be introduced by increasing the allowed generation age.

Definition at line 46 of file freESCommaSelection.h.


Member Typedef Documentation

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

Standard "Self" typedef.

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

Definition at line 51 of file freESCommaSelection.h.

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

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

Definition at line 52 of file freESCommaSelection.h.

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

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

Definition at line 53 of file freESCommaSelection.h.

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

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

Definition at line 54 of file freESCommaSelection.h.

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

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

Definition at line 60 of file freESCommaSelection.h.

template<class TIndividual>
typedef Superclass::Pointer FREE::ES::CommaSelection< TIndividual >::IndividualPointer

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

Definition at line 63 of file freESCommaSelection.h.

template<class TIndividual>
typedef Superclass::PopulationType FREE::ES::CommaSelection< TIndividual >::PopulationType

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

Definition at line 64 of file freESCommaSelection.h.

template<class TIndividual>
typedef Superclass::PopulationPointer FREE::ES::CommaSelection< TIndividual >::PopulationPointer

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

Definition at line 65 of file freESCommaSelection.h.

template<class TIndividual>
typedef Superclass::PopulationSizeType FREE::ES::CommaSelection< TIndividual >::PopulationSizeType

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

Definition at line 67 of file freESCommaSelection.h.

template<class TIndividual>
typedef PlusSelection<TIndividual> FREE::ES::CommaSelection< TIndividual >::PrivatPlusSelectionType [protected]

Definition at line 85 of file freESCommaSelection.h.


Constructor & Destructor Documentation

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

Definition at line 34 of file freESCommaSelection.txx.

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


Member Function Documentation

template<class TIndividual>
static Pointer FREE::ES::CommaSelection< TIndividual >::New ( void   )  [inline, static]

Method for creation through the object factory.

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

Definition at line 57 of file freESCommaSelection.h.

template<class TIndividual>
virtual ::itk::LightObject::Pointer FREE::ES::CommaSelection< TIndividual >::CreateAnother ( void   )  const [inline, virtual]

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

Definition at line 57 of file freESCommaSelection.h.

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

Run-time type information (and related methods).

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

Definition at line 60 of file freESCommaSelection.h.

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

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

Returns:
Population with the removed individuals.

Definition at line 43 of file freESCommaSelection.txx.

References FREE::ES::Population< TIndividual >::GetGenerationID(), and throwExceptionMacro.

Here is the call graph for this function:

FREE::ES::Population::GetGenerationID

template<class TIndividual>
virtual void FREE::ES::CommaSelection< TIndividual >::SetMaxGenerationAge ( const unsigned long  _arg  )  [inline, virtual]

Definition at line 77 of file freESCommaSelection.h.

Referenced by FREE::ESCommaSelectionController::ActualizeMainComponent().

template<class TIndividual>
virtual const unsigned long& FREE::ES::CommaSelection< TIndividual >::GetMaxGenerationAge (  )  const [inline, virtual]

Definition at line 78 of file freESCommaSelection.h.


Member Data Documentation

template<class TIndividual>
unsigned long FREE::ES::CommaSelection< TIndividual >::m_MaxGenerationAge [protected]

Definition at line 83 of file freESCommaSelection.h.

template<class TIndividual>
PrivatPlusSelectionType::Pointer FREE::ES::CommaSelection< TIndividual >::m_PlusSelection [protected]

Definition at line 86 of file freESCommaSelection.h.


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