Changeset 16755 for stable/HeuristicLab.Encodings.IntegerVectorEncoding
- Timestamp:
- 04/03/19 16:45:51 (6 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Encodings.IntegerVectorEncoding
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Encodings.IntegerVectorEncoding (added) merged: 16619
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Manipulators/RoundedNormalAllPositionsManipulator.cs
r15584 r16755 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.