- Timestamp:
- 03/08/09 11:04:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP/Recombination/SizeFairCrossOver.cs
r1212 r1286 47 47 } 48 48 49 internal override IFunctionTree Cross(TreeGardener gardener, MersenneTwisterrandom, IFunctionTree tree0, IFunctionTree tree1, int maxTreeSize, int maxTreeHeight) {49 internal override IFunctionTree Cross(TreeGardener gardener, IRandom random, IFunctionTree tree0, IFunctionTree tree1, int maxTreeSize, int maxTreeHeight) { 50 50 int tries = 0; 51 51 IFunctionTree insertedBranch = null; … … 56 56 while (parent == null) parent = gardener.GetRandomParentNode(tree0); 57 57 removedBranchIndex = random.Next(parent.SubTrees.Count); 58 insertedBranch = GetReplacementBranch( random, gardener, tree0, parent, removedBranchIndex, tree1, maxTreeSize, maxTreeHeight);58 insertedBranch = GetReplacementBranch((MersenneTwister)random, gardener, tree0, parent, removedBranchIndex, tree1, maxTreeSize, maxTreeHeight); 59 59 } while (insertedBranch == null && tries++ < MaxRecombinationTries); 60 60
Note: See TracChangeset
for help on using the changeset viewer.