Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/18/08 16:20:26 (16 years ago)
Author:
gkronber
Message:

added Size and Height properties to interface IFunctionTree and removed the helper methods from TreeGardener (specific implementations of size and height properties in classes implementing IFunctionTree can be more efficient than the general functions in TreeGardener)

File:
1 edited

Legend:

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

    r286 r324  
    5858      IFunctionTree root = gardener.PTC2(random, treeSize, maxTreeHeight);
    5959
    60       int actualTreeSize = gardener.GetTreeSize(root);
    61       int actualTreeHeight = gardener.GetTreeHeight(root);
     60      int actualTreeSize = root.Size;
     61      int actualTreeHeight = root.Height;
    6262
    6363      scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("FunctionTree"), root));
Note: See TracChangeset for help on using the changeset viewer.