|
EvolvingObjects
|
Base classes for generic mutations on variable length chromosomes. More...
#include <eoVariableLengthMutation.h>
Public Types | |
| typedef EOT::AtomType | AtomType |
Public Member Functions | |
| eoVlAddMutation (unsigned _nMax, eoInit< AtomType > &_atomInit) | |
| default ctor | |
| bool | operator() (EOT &_eo) |
| operator: actually adds an Atom | |
| virtual std::string | className () const |
| inherited className | |
Private Attributes | |
| unsigned | nMax |
| eoInit< AtomType > & | atomInit |
Base classes for generic mutations on variable length chromosomes.
Contains addition and deletion of a gene
The generic mutations that apply a gene-level mutation to some genes dont't modify the length, and so are NOT specific to variable-length Hence they are in file eoFlOr MonOp.h file (FixedLengthOrdered mutations) Addition of a gene Is inserted at a random position - so can be applied to both order-dependent and order-independent
Definition at line 51 of file eoVariableLengthMutation.h.
| eoVlAddMutation< EOT >::eoVlAddMutation | ( | unsigned | _nMax, |
| eoInit< AtomType > & | _atomInit | ||
| ) | [inline] |
default ctor
| _nMax | max number of atoms |
| _atomInit | an Atom initializer |
Definition at line 62 of file eoVariableLengthMutation.h.