- Timestamp:
- 09/20/11 15:22:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView.cs
r6807 r6808 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.