43 std::map <std::string, Primitives::terminal_type> mTypeNames_;
55typedef boost::shared_ptr<PrimitiveSet> PrimitiveSetP;
57typedef std::map <std::string, PrimitiveP>::iterator prim_iter;
58typedef std::map <std::string, Primitives::terminal_type>::iterator type_iter;
Primitive set class: collects all Tree Primitives.
PrimitiveP getRandomFunction()
Get random function from the set of active functions.
uint getPrimitivesSize()
Get the number of active primitives (functions and terminals).
std::vector< PrimitiveP > primitives_
vector of active (actual used) primitives
PrimitiveP getTerminalByName(std::string name)
Access terminal by name (active terminals only).
std::map< std::string, PrimitiveP > mTerminalSet_
map of active (actual used) terminals
void addTerminal(PrimitiveP terminalPrimitive)
Add a terminal primitive to the set of active primitives.
PrimitiveP getRandomPrimitive()
Get random primitive (function or terminal) from the set of active primitives.
std::map< std::string, PrimitiveP > mPrimitiveSet_
map of active (actual used) primitives
uint getTerminalSetSize()
Get the number of active terminals.
uint getFunctionSetSize()
Get the number of active functions.
std::map< std::string, PrimitiveP > mFunctionSet_
map of active (actual used) functions
bool addFunction(std::string name)
Add a function primitive to the set of active primitives - if found by name in collection of all prim...
PrimitiveP getPrimitiveByName(std::string name)
Access primitive by name (active functions or terminals only).
std::vector< PrimitiveP > terminalSet_
vector of active (actual used) terminals
PrimitiveP getFunctionByName(std::string name)
Access function by name (active functions only).
std::vector< PrimitiveP > functionSet_
vector of active (actual used) functions
std::map< std::string, PrimitiveP > mAllPrimitives_
map of all registered primitive functions
PrimitiveP getRandomTerminal()
Get random terminal from the set of active terminals.
Tree class - implements genotype as a tree.
bool initialize(StateP state)
Initialize a genotype object (read parameters, perform sanity check, build data)