Pos function primitive (Tree genotype). More...
#include <Pos.h>
Public Member Functions | |
void | execute (void *result, Tree &tree) |
Execute the primitive. |
Pos function primitive (Tree genotype).
pos(x) = (x > 0) ? x : 0
Definition at line 15 of file Pos.h.
void Tree::Primitives::PosT< T >::execute | ( | void * | result, | |
Tree & | tree | |||
) | [virtual] |
Execute the primitive.
Function primitives gather arguments and return a value; terminal primitives return current value.
Implements Tree::Primitives::Primitive.