Changeset 5733 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/ArgumentCreaterTest.cs
- Timestamp:
- 03/17/11 14:07:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/ArgumentCreaterTest.cs
r5686 r5733 72 72 Util.GetSizeDistributionString(trees, 200, 20) + Environment.NewLine + 73 73 Util.GetFunctionDistributionString(trees) + Environment.NewLine + 74 Util.GetNumberOfSub TreesDistributionString(trees) + Environment.NewLine +74 Util.GetNumberOfSubtreesDistributionString(trees) + Environment.NewLine + 75 75 Util.GetTerminalDistributionString(trees) + Environment.NewLine 76 76 ); … … 78 78 79 79 private bool TreeHasAdfWithParameter(ISymbolicExpressionTree tree, int maxParameters) { 80 if (tree.Root.Sub Trees.Count() != 2) return false;81 var firstAdf = tree.Root.GetSub Tree(1);80 if (tree.Root.Subtrees.Count() != 2) return false; 81 var firstAdf = tree.Root.GetSubtree(1); 82 82 return firstAdf.Grammar.GetAllowedChildSymbols(firstAdf.Symbol, 0).Where(x => x is Argument).Count() < maxParameters; 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.