EvolvingObjects
|
eoBranchMutation --> replace a subtree with a randomly created subtree More...
#include <gp/eoParseTreeOp.h>
Public Types | |
typedef eoParseTree< FType, Node > | EoType |
Public Member Functions | |
eoBranchMutation (eoInit< EoType > &_init, unsigned _max_length) | |
Constructor. | |
virtual std::string | className () const |
the class name | |
virtual | ~eoBranchMutation () |
Dtor. | |
bool | operator() (EoType &_eo1) |
Mutate an individual. | |
Private Attributes | |
unsigned | max_length |
eoInit< EoType > & | initializer |
eoBranchMutation --> replace a subtree with a randomly created subtree
Definition at line 87 of file eoParseTreeOp.h.
eoBranchMutation< FType, Node >::eoBranchMutation | ( | eoInit< EoType > & | _init, |
unsigned | _max_length | ||
) | [inline] |
Constructor.
_init | An instantiation of eoGpDepthInitializer |
_max_length | the maximum size of an individual |
Definition at line 97 of file eoParseTreeOp.h.
bool eoBranchMutation< FType, Node >::operator() | ( | EoType & | _eo1 | ) | [inline] |
Mutate an individual.
_eo1 | The individual that is to be changed |
Definition at line 111 of file eoParseTreeOp.h.
References eoParseTree< FType, Node >::pruneTree(), and eoRng::random().