ECF 1.5
IAERCD.cpp
1#include "GPSymbRegEvalOp.h"
2
3#include "IATree.h"
4#include "IAERCD.h"
5#include <cmath>
6
7void IAERCD::execute(void* result, Tree::Tree& tree)
8{
9 if (!calculateBoundsIfRootNode(result, tree)) {
10 return;
11 }
12
14}
15
16IABounds IAERCD::calculateBounds(Tree::IATree& tree) {
17 IABounds retVal;
18 double val = this->value_;
19
20 retVal.isWithinBounds = true;
21 retVal.isLowerBoundInclusive = true;
22 retVal.lowerBound = val;
23 retVal.isUpperBoundInclusive = true;
24 retVal.upperBound = val;
25 return retVal;
26}
virtual void execute(void *result, Tree::Tree &tree)
Execute the primitive.
Definition: IAERCD.cpp:7
void execute(void *result, Tree &tree)
Definition: Terminal.h:125
Tree class - implements genotype as a tree.
Definition: Tree_c.h:29