Changeset 73 for trunk/sources/HeuristicLab.RealVector/DiscreteCrossover.cs
- Timestamp:
- 03/18/08 00:40:57 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.RealVector/DiscreteCrossover.cs
r70 r73 15 15 16 16 for (int i = 0; i < length; i++) { 17 if (random.NextDouble() < 0.5) {17 if (random.NextDouble() < 0.5) 18 18 result[i] = parent1[i]; 19 } else {19 else 20 20 result[i] = parent2[i]; 21 }22 21 } 23 24 22 return result; 25 23 }
Note: See TracChangeset
for help on using the changeset viewer.