org.encog.ml.tree
Interface TreeNode
-
- All Known Implementing Classes:
- BasicTreeNode, ProgramNode
public interface TreeNodeA node for a tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddChildNodes(TreeNode[] args)Add child nodes.booleanallLeafChildren()java.util.List<TreeNode>getChildNodes()booleanisLeaf()intsize()
-
-
-
Method Detail
-
addChildNodes
void addChildNodes(TreeNode[] args)
Add child nodes.- Parameters:
args- The child nodes to add.
-
allLeafChildren
boolean allLeafChildren()
- Returns:
- True, if all children are leaves.
-
getChildNodes
java.util.List<TreeNode> getChildNodes()
- Returns:
- The child nodes.
-
isLeaf
boolean isLeaf()
- Returns:
- True, if this is a leaf.
-
size
int size()
- Returns:
- The number of nodes from this point. Do not call on cyclic tree.
-
-
DMelt 3.0 © DataMelt by jWork.ORG