- 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.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r6740 r6803 97 97 private double CalculateReplacementValue(ISymbolicExpressionTreeNode node, ISymbolicExpressionTree sourceTree) { 98 98 // remove old ADFs 99 while (tempTree.Root.Subtree sCount > 1) tempTree.Root.RemoveSubtree(1);99 while (tempTree.Root.SubtreeCount > 1) tempTree.Root.RemoveSubtree(1); 100 100 // clone ADFs of source tree 101 for (int i = 1; i < sourceTree.Root.Subtree sCount; i++) {101 for (int i = 1; i < sourceTree.Root.SubtreeCount; i++) { 102 102 tempTree.Root.AddSubtree((ISymbolicExpressionTreeNode)sourceTree.Root.GetSubtree(i).Clone()); 103 103 } 104 104 var start = tempTree.Root.GetSubtree(0); 105 while (start.Subtree sCount > 0) start.RemoveSubtree(0);105 while (start.SubtreeCount > 0) start.RemoveSubtree(0); 106 106 start.AddSubtree((ISymbolicExpressionTreeNode)node.Clone()); 107 107 var interpreter = Content.Model.Interpreter; … … 112 112 113 113 private void SwitchNode(ISymbolicExpressionTreeNode root, ISymbolicExpressionTreeNode oldBranch, ISymbolicExpressionTreeNode newBranch) { 114 for (int i = 0; i < root.Subtree sCount; i++) {114 for (int i = 0; i < root.SubtreeCount; i++) { 115 115 if (root.GetSubtree(i) == oldBranch) { 116 116 root.RemoveSubtree(i);
Note: See TracChangeset
for help on using the changeset viewer.