Beispiel #1
0
 public DecisionTree(Decision decision)
 {
     root = new DecisionTreeNode(decision);
 }
Beispiel #2
0
 /// <summary>
 /// Add a new child (a leaf) to the current node.
 /// </summary>
 /// <param name="data">The data contained in the new node.</param>
 public void AddChild(DecisionTreeNode node)
 {
     base.Children.Add(node);
     branches++;
 }
Beispiel #3
0
 // Constructors.
 public DecisionTree()
 {
     root = null;
 }