Neg function primitive (Tree genotype). More...
#include <Neg.h>
Public Member Functions | |
void | execute (void *result, Tree &tree) |
Execute the primitive. |
Neg function primitive (Tree genotype).
neg(x) = (x < 0) ? x : 0
Definition at line 15 of file Neg.h.
void Tree::Primitives::NegT< 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.