Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/11 14:07:47 (14 years ago)
Author:
mkommend
Message:

#1418: Corrected problem interfaces & unified naming of subtrees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/ArgumentDeleterTest.cs

    r5686 r5733  
    6767        Util.GetSizeDistributionString(trees, 105, 5) + Environment.NewLine +
    6868        Util.GetFunctionDistributionString(trees) + Environment.NewLine +
    69         Util.GetNumberOfSubTreesDistributionString(trees) + Environment.NewLine +
     69        Util.GetNumberOfSubtreesDistributionString(trees) + Environment.NewLine +
    7070        Util.GetTerminalDistributionString(trees) + Environment.NewLine
    7171        );
    7272    }
    7373    private bool TreeHasAdfWithArguments(ISymbolicExpressionTree tree) {
    74       if (tree.Root.SubTrees.Count() != 2) return false;
    75       var firstAdf = tree.Root.GetSubTree(1);
     74      if (tree.Root.Subtrees.Count() != 2) return false;
     75      var firstAdf = tree.Root.GetSubtree(1);
    7676      return firstAdf.Grammar.GetAllowedChildSymbols(firstAdf.Symbol, 0).Where(x => x is Argument).Count() >= 2;
    7777    }
Note: See TracChangeset for help on using the changeset viewer.