Changeset 3064 for trunk/sources
- Timestamp:
- 03/16/10 14:25:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/SinglePointCrossover.cs
r3062 r3064 48 48 /// <returns>The newly created binary vector, resulting from the single point crossover.</returns> 49 49 protected override BinaryVector Cross(IRandom random, ItemArray<BinaryVector> parents) { 50 if (parents.Length != 2) throw new ArgumentException("ERROR in NPointCrossover: The number of parents is not equal to 2");50 if (parents.Length != 2) throw new ArgumentException("ERROR in SinglePointCrossover: The number of parents is not equal to 2"); 51 51 52 52 return NPointCrossover.Apply(random, parents[0], parents[1], new IntValue(1));
Note: See TracChangeset
for help on using the changeset viewer.