Changeset 6803 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView.cs
- Timestamp:
- 09/20/11 11:12:10 (13 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:ignore
-
old new 13 13 *.vsp 14 14 *.docstates 15 bin 16 HeuristicLab 3.3.6.0.ReSharper.user
-
- Property svn:mergeinfo changed
/branches/GP.Grammar.Editor (added) merged: 6284-6285,6296,6299,6335,6337,6377,6379,6387,6403,6409,6415,6493-6494,6497,6618,6620,6622,6626,6647,6675,6782,6784,6786,6795
- Property svn:ignore
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views/3.4/InteractiveSymbolicDiscriminantFunctionClassificationSolutionSimplifierView.cs
r6740 r6803 112 112 private double CalculateReplacementValue(ISymbolicExpressionTreeNode node, ISymbolicExpressionTree sourceTree) { 113 113 // remove old ADFs 114 while (tempTree.Root.Subtree sCount > 1) tempTree.Root.RemoveSubtree(1);114 while (tempTree.Root.SubtreeCount > 1) tempTree.Root.RemoveSubtree(1); 115 115 // clone ADFs of source tree 116 for (int i = 1; i < sourceTree.Root.Subtree sCount; i++) {116 for (int i = 1; i < sourceTree.Root.SubtreeCount; i++) { 117 117 tempTree.Root.AddSubtree((ISymbolicExpressionTreeNode)sourceTree.Root.GetSubtree(i).Clone()); 118 118 } 119 119 var start = tempTree.Root.GetSubtree(0); 120 while (start.Subtree sCount > 0) start.RemoveSubtree(0);120 while (start.SubtreeCount > 0) start.RemoveSubtree(0); 121 121 start.AddSubtree((ISymbolicExpressionTreeNode)node.Clone()); 122 122 var interpreter = Content.Model.Interpreter; … … 127 127 128 128 private void SwitchNode(ISymbolicExpressionTreeNode root, ISymbolicExpressionTreeNode oldBranch, ISymbolicExpressionTreeNode newBranch) { 129 for (int i = 0; i < root.Subtree sCount; i++) {129 for (int i = 0; i < root.SubtreeCount; i++) { 130 130 if (root.GetSubtree(i) == oldBranch) { 131 131 root.RemoveSubtree(i);
Note: See TracChangeset
for help on using the changeset viewer.