Changeset 3061 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/SimulatedBinaryCrossoverTest.cs
- Timestamp:
- 03/16/10 11:37:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/SimulatedBinaryCrossoverTest.cs
r3060 r3061 113 113 expected = new RealVector(new double[] { 1.11032829834638, -0.0145477755417797, 0.3, 0.5, 0.1 }); 114 114 actual = SimulatedBinaryCrossover.Apply(random, parent1, parent2, contiguity); 115 Assert.IsTrue(Auxiliary. DoubleArrayIsAlmostEqualByPosition(actual, expected));115 Assert.IsTrue(Auxiliary.RealVectorIsAlmostEqualByPosition(actual, expected)); 116 116 // The following test is not based on published examples 117 117 random.Reset();
Note: See TracChangeset
for help on using the changeset viewer.