Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/25/08 12:13:34 (17 years ago)
Author:
gkronber
Message:

fixed #131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/Manipulation/ChangeNodeTypeManipulation.cs

    r180 r189  
    156156      int maxArity;
    157157      // create a new tree-node for a randomly selected function
    158       IFunctionTree newTree = new FunctionTree(allowedFunctions[random.Next(allowedFunctions.Count)]);
     158      IFunctionTree newTree = allowedFunctions[random.Next(allowedFunctions.Count)].GetTreeNode();
    159159      gardener.GetMinMaxArity(newTree.Function, out minArity, out maxArity);
    160160      // if the old child had too many sub-trees then the new child should keep as many sub-trees as possible
Note: See TracChangeset for help on using the changeset viewer.