|
EvolvingObjects
|
eoStHoistMutation --> replace the individual with one of its strongly typed subtree's More...
#include <gp/eoStParseTreeOp.h>
Public Types | |
| typedef eoParseTree< FType, Node > | EoType |
Public Member Functions | |
| eoStHoistMutation (eoInit< EoType > &_init, unsigned _max_length) | |
| Constructor. | |
| virtual std::string | className () const |
| the class name | |
| virtual | ~eoStHoistMutation () |
| Dtor. | |
| bool | operator() (EoType &_eo1) |
| Mutate an individual. | |
Private Attributes | |
| unsigned | max_length |
| eoInit< EoType > & | initializer |
eoStHoistMutation --> replace the individual with one of its strongly typed subtree's
Definition at line 261 of file eoStParseTreeOp.h.
| eoStHoistMutation< FType, Node >::eoStHoistMutation | ( | eoInit< EoType > & | _init, |
| unsigned | _max_length | ||
| ) | [inline] |
Constructor.
| _init | An instantiation of eoStDepthInit |
| _max_length | the maximum size of an individual |
Definition at line 271 of file eoStParseTreeOp.h.
| bool eoStHoistMutation< FType, Node >::operator() | ( | EoType & | _eo1 | ) | [inline] |
Mutate an individual.
| _eo1 | The individual that is to be changed |
Definition at line 285 of file eoStParseTreeOp.h.
References eoRng::random().