Changeset 3123 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/UniformOnePositionManipulatorTest.cs
- Timestamp:
- 03/19/10 15:59:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/UniformOnePositionManipulatorTest.cs
r3061 r3123 86 86 TestRandom random = new TestRandom(); 87 87 RealVector parent, expected; 88 Double Value min, max;88 DoubleMatrix bounds; 89 89 // The following test is not based on published examples 90 90 random.Reset(); … … 93 93 parent = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 }); 94 94 expected = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.3, 0.1 }); 95 min = new DoubleValue(0.2); 96 max = new DoubleValue(0.7); 97 UniformOnePositionManipulator.Apply(random, parent, min, max); 95 bounds = new DoubleMatrix(new double[,] { { 0.2, 0.7 } }); 96 UniformOnePositionManipulator.Apply(random, parent, bounds); 98 97 Assert.IsTrue(Auxiliary.RealVectorIsAlmostEqualByPosition(expected, parent)); 99 98 }
Note: See TracChangeset
for help on using the changeset viewer.