Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/BreederGeneticAlgorithmManipulator.cs
r5445 r6760 52 52 public BreederGeneticAlgorithmManipulator() 53 53 : base() { 54 Parameters.Add(new ValueLookupParameter<DoubleValue>("SearchIntervalFactor", "The factor determining the size of the search interval, that will be added/removed to/from the allele selected for manipulation. E.g. a value of 0.1 means 10% of the range will be maximally added/removed.", new DoubleValue(0.1))); 54 Parameters.Add(new ValueLookupParameter<DoubleValue>("SearchIntervalFactor", @"Scales the manipulation strength as a factor of the range. The range is determined by the bounds interval. 55 A value of 0.1 means that certain components of the vector are moved by values in the non-uniform interval [0;0.1*range].", new DoubleValue(0.1))); 55 56 } 56 57 -
branches/PersistenceSpeedUp/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
r5445 r6760 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; -
branches/PersistenceSpeedUp/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialOnePositionManipulator.cs
r5445 r6760 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.