- Timestamp:
- 04/25/08 12:13:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Manipulation/ChangeNodeTypeManipulation.cs
r180 r189 156 156 int maxArity; 157 157 // 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(); 159 159 gardener.GetMinMaxArity(newTree.Function, out minArity, out maxArity); 160 160 // 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.