Free cookie consent management tool by TermsFeed Policy Generator

Changeset 433


Ignore:
Timestamp:
08/04/08 00:33:11 (16 years ago)
Author:
gkronber
Message:

removed commented code and fixed a bug (#225)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/TreeGardener.cs

    r431 r433  
    241241
    242242    #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 
    252243    internal IFunctionTree GetRandomParentNode(IFunctionTree tree) {
    253244      List<IFunctionTree> parentNodes = new List<IFunctionTree>();
     
    411402      } else {
    412403        SubOperatorsConstraintAnalyser analyzer = new SubOperatorsConstraintAnalyser();
     404        analyzer.AllPossibleOperators = AllFunctions.Cast<IOperator>().ToArray<IOperator>();
    413405        List<IFunction> result = new List<IFunction>();
    414406        foreach(IFunction function in analyzer.GetAllowedOperators(f, index)) {
Note: See TracChangeset for help on using the changeset viewer.