Changeset 6387 for branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4
- Timestamp:
- 06/08/11 10:42:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView.cs
r6256 r6387 108 108 private double CalculateReplacementValue(ISymbolicExpressionTreeNode node, ISymbolicExpressionTree sourceTree) { 109 109 // remove old ADFs 110 while (tempTree.Root.Subtree sCount > 1) tempTree.Root.RemoveSubtree(1);110 while (tempTree.Root.SubtreeCount > 1) tempTree.Root.RemoveSubtree(1); 111 111 // clone ADFs of source tree 112 for (int i = 1; i < sourceTree.Root.Subtree sCount; i++) {112 for (int i = 1; i < sourceTree.Root.SubtreeCount; i++) { 113 113 tempTree.Root.AddSubtree((ISymbolicExpressionTreeNode)sourceTree.Root.GetSubtree(i).Clone()); 114 114 } 115 115 var start = tempTree.Root.GetSubtree(0); 116 while (start.Subtree sCount > 0) start.RemoveSubtree(0);116 while (start.SubtreeCount > 0) start.RemoveSubtree(0); 117 117 start.AddSubtree((ISymbolicExpressionTreeNode)node.Clone()); 118 118 var interpreter = Content.Model.Interpreter; … … 123 123 124 124 private void SwitchNode(ISymbolicExpressionTreeNode root, ISymbolicExpressionTreeNode oldBranch, ISymbolicExpressionTreeNode newBranch) { 125 for (int i = 0; i < root.Subtree sCount; i++) {125 for (int i = 0; i < root.SubtreeCount; i++) { 126 126 if (root.GetSubtree(i) == oldBranch) { 127 127 root.RemoveSubtree(i);
Note: See TracChangeset
for help on using the changeset viewer.