Changeset 17491
- Timestamp:
- 04/02/20 09:43:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Crossovers/SubtreeCrossover.cs
r17490 r17491 106 106 double probability, 107 107 double internalCrossoverPointProbability, int maxTreeLength, int maxTreeDepth) { 108 if ( random.NextDouble() >= probability) return random.NextDouble() < 0.5 ? parent0 : parent1;108 if ((probability < 1) && (random.NextDouble() >= probability)) return random.NextDouble() < 0.5 ? parent0 : parent1; 109 109 // select a random crossover point in the first parent 110 110 CutPoint crossoverPoint0;
Note: See TracChangeset
for help on using the changeset viewer.