Changeset 433 for trunk/sources
- Timestamp:
- 08/04/08 00:33:11 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/TreeGardener.cs
r431 r433 241 241 242 242 #region tree information gathering 243 //internal int GetTreeSize(IFunctionTree tree) {244 // return 1 + tree.SubTrees.Sum(f => GetTreeSize(f));245 //}246 247 //internal int GetTreeHeight(IFunctionTree tree) {248 // if(tree.SubTrees.Count == 0) return 1;249 // return 1 + tree.SubTrees.Max(f => GetTreeHeight(f));250 //}251 252 243 internal IFunctionTree GetRandomParentNode(IFunctionTree tree) { 253 244 List<IFunctionTree> parentNodes = new List<IFunctionTree>(); … … 411 402 } else { 412 403 SubOperatorsConstraintAnalyser analyzer = new SubOperatorsConstraintAnalyser(); 404 analyzer.AllPossibleOperators = AllFunctions.Cast<IOperator>().ToArray<IOperator>(); 413 405 List<IFunction> result = new List<IFunction>(); 414 406 foreach(IFunction function in analyzer.GetAllowedOperators(f, index)) {
Note: See TracChangeset
for help on using the changeset viewer.