コード例 #1
0
 // Add an entry in the dictionary linking a possible output
 // of Selector to a node
 public void AddLink(object value, IDTNode next)
 {
     links.Add(value, next);
 }
コード例 #2
0
 // Create a decision tree with starting from a root node
 public DecisionTree(IDTNode start)
 {
     root = start;
 }
コード例 #3
0
 public DTBinaryDecision(Func <bool> condition, IDTNode trueNode, IDTNode falseNode)
 {
     this.condition = condition;
     this.falseNode = falseNode;
     this.trueNode  = trueNode;
 }