Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/11 14:07:47 (13 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/ArgumentCreaterTest.cs

    r5686 r5733  
    7272        Util.GetSizeDistributionString(trees, 200, 20) + Environment.NewLine +
    7373        Util.GetFunctionDistributionString(trees) + Environment.NewLine +
    74         Util.GetNumberOfSubTreesDistributionString(trees) + Environment.NewLine +
     74        Util.GetNumberOfSubtreesDistributionString(trees) + Environment.NewLine +
    7575        Util.GetTerminalDistributionString(trees) + Environment.NewLine
    7676        );
     
    7878
    7979    private bool TreeHasAdfWithParameter(ISymbolicExpressionTree tree, int maxParameters) {
    80       if (tree.Root.SubTrees.Count() != 2) return false;
    81       var firstAdf = tree.Root.GetSubTree(1);
     80      if (tree.Root.Subtrees.Count() != 2) return false;
     81      var firstAdf = tree.Root.GetSubtree(1);
    8282      return firstAdf.Grammar.GetAllowedChildSymbols(firstAdf.Symbol, 0).Where(x => x is Argument).Count() < maxParameters;
    8383    }
Note: See TracChangeset for help on using the changeset viewer.