- Timestamp:
- 07/04/11 22:17:22 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
r5445 r6506 87 87 if (u < 0.5) { 88 88 delta = Math.Pow(2 * u, 1.0 / (contiguity.Value + 1)) - 1.0; 89 } else if (u > 0.5) {90 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / contiguity.Value + 1);91 } else if (u == 0.5) delta = 0;89 } else if (u >= 0.5) { 90 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / (contiguity.Value + 1)); 91 } 92 92 93 93 vector[index] += delta * maxManipulation.Value; -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialOnePositionManipulator.cs
r5445 r6506 89 89 if (u < 0.5) { 90 90 delta = Math.Pow(2 * u, 1.0 / (contiguity + 1)) - 1.0; 91 } else if (u > 0.5) {92 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / contiguity + 1);93 } else delta = 0;91 } else if (u >= 0.5) { 92 delta = 1.0 - Math.Pow(2.0 - 2.0 * u, 1.0 / (contiguity + 1)); 93 } 94 94 95 95 return delta;
Note: See TracChangeset
for help on using the changeset viewer.