public class TreeNode extends Object implements Serializable
| Constructor and Description |
|---|
TreeNode() |
TreeNode(Primitive primitive) |
| Modifier and Type | Method and Description |
|---|---|
int |
arity() |
void |
copy(TreeNode that,
OperatorSet operatorSet,
VariableSet variableSet,
ConstantSet constantSet) |
int |
depth() |
int |
depth2Node(TreeNode node) |
static int |
depth2Node(TreeNode node,
TreeNode target,
int depthSoFar) |
double |
execute(Observation observation) |
String |
executeWithText(Observation observation) |
List<Primitive> |
flatten() |
boolean |
isTerminal() |
int |
length() |
TreeNode |
makeCopy(OperatorSet operatorSet,
VariableSet variableSet,
ConstantSet constantSet) |
String |
mathExpression() |
String |
toString() |
public TreeNode(Primitive primitive)
public TreeNode()
public int arity()
public int length()
public int depth()
public double execute(Observation observation)
public String executeWithText(Observation observation)
public TreeNode makeCopy(OperatorSet operatorSet, VariableSet variableSet, ConstantSet constantSet)
public void copy(TreeNode that, OperatorSet operatorSet, VariableSet variableSet, ConstantSet constantSet)
public boolean isTerminal()
public String mathExpression()
public int depth2Node(TreeNode node)
Copyright © 2017. All rights reserved.