Changeset 16619
- Timestamp:
- 02/25/19 09:25:08 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/RoundedNormalAllPositionsManipulator.cs
r16565 r16619 75 75 if (bounds.Columns > 2) step = bounds[i % bounds.Rows, 2]; 76 76 77 int value = (vector[i] + (int)Math.Round((N.NextDouble() * sigma[i % sigma.Length])) - min) / step;77 double value = vector[i] + N.NextDouble() * sigma[i % sigma.Length]; 78 78 max = FloorFeasible(min, max, step, max - 1); 79 79 vector[i] = RoundFeasible(min, max, step, value);
Note: See TracChangeset
for help on using the changeset viewer.