#include <gp/eoParseTreeDepthInit.h>
Public Types | |
typedef eoParseTree< FType, Node > | EoType |
Public Member Functions | |
eoParseTreeDepthInit (unsigned _max_depth, const std::vector< Node > &_initializor, bool _grow=true, bool _ramped_half_and_half=false) | |
Constructor _max_depth The maximum depth of a tree. | |
virtual std::string | className () const |
My class name. | |
void | operator() (EoType &_tree) |
initialize a tree | |
Private Member Functions | |
void | generate (std::list< Node > &sequence, int the_max, int last_terminal=-1) |
Private Attributes | |
unsigned | max_depth |
std::vector< Node > | initializor |
bool | grow |
bool | ramped_half_and_half |
unsigned | current_depth |
Classes | |
struct | lt_arity |
Definition at line 48 of file eoParseTreeDepthInit.h.
eoParseTreeDepthInit< FType, Node >::eoParseTreeDepthInit | ( | unsigned | _max_depth, | |
const std::vector< Node > & | _initializor, | |||
bool | _grow = true , |
|||
bool | _ramped_half_and_half = false | |||
) | [inline] |
Constructor _max_depth The maximum depth of a tree.
_initializor | A std::vector containing the possible nodes | |
_grow | False results in a full tree, True result is a randomly grown tree | |
_ramped_half_and_half | True results in Ramped Half and Half Initialization |
Definition at line 69 of file eoParseTreeDepthInit.h.
void eoParseTreeDepthInit< FType, Node >::operator() | ( | EoType & | _tree | ) | [inline] |
initialize a tree
_tree | : the tree to be initialized |
Definition at line 96 of file eoParseTreeDepthInit.h.