Changeset 5733 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/ArgumentDeleterTest.cs
- Timestamp:
- 03/17/11 14:07:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/ArgumentDeleterTest.cs
r5686 r5733 67 67 Util.GetSizeDistributionString(trees, 105, 5) + Environment.NewLine + 68 68 Util.GetFunctionDistributionString(trees) + Environment.NewLine + 69 Util.GetNumberOfSub TreesDistributionString(trees) + Environment.NewLine +69 Util.GetNumberOfSubtreesDistributionString(trees) + Environment.NewLine + 70 70 Util.GetTerminalDistributionString(trees) + Environment.NewLine 71 71 ); 72 72 } 73 73 private bool TreeHasAdfWithArguments(ISymbolicExpressionTree tree) { 74 if (tree.Root.Sub Trees.Count() != 2) return false;75 var firstAdf = tree.Root.GetSub Tree(1);74 if (tree.Root.Subtrees.Count() != 2) return false; 75 var firstAdf = tree.Root.GetSubtree(1); 76 76 return firstAdf.Grammar.GetAllowedChildSymbols(firstAdf.Symbol, 0).Where(x => x is Argument).Count() >= 2; 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.