#include <gp/eoParseTreeOp.h>
Inheritance diagram for eoExpansionMutation< FType, Node >:

Public Types | |
|
typedef eoParseTree< FType, Node > | EoType |
Public Member Functions | |
| eoExpansionMutation (eoInit< EoType > &_init, unsigned _max_length) | |
| Constructor. | |
| virtual std::string | className () const |
| The class name. | |
| virtual | ~eoExpansionMutation () |
| Dtor. | |
| bool | operator() (EoType &_eo1) |
| Mutate an individual. | |
Private Attributes | |
| unsigned | max_length |
| eoInit< EoType > & | initializer |
Definition at line 204 of file eoParseTreeOp.h.
| eoExpansionMutation< FType, Node >::eoExpansionMutation | ( | eoInit< EoType > & | _init, | |
| unsigned | _max_length | |||
| ) | [inline] |
Constructor.
| _init | An instantiation of eoGpDepthInitializer | |
| _max_length | the maximum size of an individual |
Definition at line 215 of file eoParseTreeOp.h.
| bool eoExpansionMutation< FType, Node >::operator() | ( | EoType & | _eo1 | ) | [inline, virtual] |
Mutate an individual.
| _eo1 | The individual that is to be changed |
Implements eoUF< eoParseTree< FType, Node > &, bool >.
Definition at line 228 of file eoParseTreeOp.h.
References eoExpansionMutation< FType, Node >::initializer, eoExpansionMutation< FType, Node >::max_length, eoParseTree< FType, Node >::pruneTree(), eoRng::random(), and gp_parse_tree::parse_tree< T >::size().
1.4.7