EvolvingObjects
|
Deletion of a gene By default at a random position, but a "chooser" can be specified can of course be applied to both order-dependent and order-independent. More...
#include <eoVariableLengthMutation.h>
Public Types | |
typedef EOT::AtomType | AtomType |
Public Member Functions | |
eoVlDelMutation (unsigned _nMin, eoGeneDelChooser< EOT > &_chooser) | |
ctor with an external gene chooser | |
eoVlDelMutation (unsigned _nMin) | |
ctor with uniform gene chooser - the default | |
bool | operator() (EOT &_eo) |
Do the job (delete one gene) | |
virtual std::string | className () const |
Private Attributes | |
unsigned | nMin |
eoUniformGeneChooser< EOT > | uChooser |
eoGeneDelChooser< EOT > & | chooser |
Deletion of a gene By default at a random position, but a "chooser" can be specified can of course be applied to both order-dependent and order-independent.
Definition at line 113 of file eoVariableLengthMutation.h.
eoVlDelMutation< EOT >::eoVlDelMutation | ( | unsigned | _nMin, |
eoGeneDelChooser< EOT > & | _chooser | ||
) | [inline] |
ctor with an external gene chooser
_nMin | min number of atoms to leave in the individual |
_chooser | an eoGeneCHooser to choose which one to delete |
Definition at line 124 of file eoVariableLengthMutation.h.
eoVlDelMutation< EOT >::eoVlDelMutation | ( | unsigned | _nMin | ) | [inline] |
ctor with uniform gene chooser - the default
_nMin | min number of atoms to leave in the individual |
Definition at line 131 of file eoVariableLengthMutation.h.
bool eoVlDelMutation< EOT >::operator() | ( | EOT & | _eo | ) | [inline, virtual] |
Do the job (delete one gene)
_eo | the EO to mutate |
Implements eoUF< EOT &, bool >.
Definition at line 137 of file eoVariableLengthMutation.h.