Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6808 for trunk


Ignore:
Timestamp:
09/20/11 15:22:39 (13 years ago)
Author:
gkronber
Message:

#1081 fixed build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView.cs

    r6807 r6808  
    9797    private double CalculateReplacementValue(ISymbolicExpressionTreeNode node, ISymbolicExpressionTree sourceTree) {
    9898      // remove old ADFs
    99       while (tempTree.Root.SubtreesCount > 1) tempTree.Root.RemoveSubtree(1);
     99      while (tempTree.Root.SubtreeCount > 1) tempTree.Root.RemoveSubtree(1);
    100100      // clone ADFs of source tree
    101       for (int i = 1; i < sourceTree.Root.SubtreesCount; i++) {
     101      for (int i = 1; i < sourceTree.Root.SubtreeCount; i++) {
    102102        tempTree.Root.AddSubtree((ISymbolicExpressionTreeNode)sourceTree.Root.GetSubtree(i).Clone());
    103103      }
    104104      var start = tempTree.Root.GetSubtree(0);
    105       while (start.SubtreesCount > 0) start.RemoveSubtree(0);
     105      while (start.SubtreeCount > 0) start.RemoveSubtree(0);
    106106      start.AddSubtree((ISymbolicExpressionTreeNode)node.Clone());
    107107      var interpreter = Content.Model.Interpreter;
     
    112112
    113113    private void SwitchNode(ISymbolicExpressionTreeNode root, ISymbolicExpressionTreeNode oldBranch, ISymbolicExpressionTreeNode newBranch) {
    114       for (int i = 0; i < root.SubtreesCount; i++) {
     114      for (int i = 0; i < root.SubtreeCount; i++) {
    115115        if (root.GetSubtree(i) == oldBranch) {
    116116          root.RemoveSubtree(i);
Note: See TracChangeset for help on using the changeset viewer.