Changeset 3060 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
- Timestamp:
- 03/16/10 10:46:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
r3053 r3060 71 71 /// <param name="contiguity">A parameter describing the shape of the probability density function which influences the strength of the manipulation.</param> 72 72 /// <param name="maxManipulation">The maximum strength of the manipulation.</param> 73 public static void Apply(IRandom random, DoubleArrayvector, DoubleValue contiguity, DoubleValue maxManipulation) {73 public static void Apply(IRandom random, RealVector vector, DoubleValue contiguity, DoubleValue maxManipulation) { 74 74 if (contiguity.Value < 0) throw new ArgumentException("PolynomialAllPositionManipulator: Contiguity value is smaller than 0", "contiguity"); 75 75 double u, delta = 0; … … 88 88 89 89 /// <summary> 90 /// Checks the availability of the parameters and forwards the call to <see cref="Apply(IRandom, DoubleArray, DoubleValue, DoubleValue)"/>.90 /// Checks the availability of the parameters and forwards the call to <see cref="Apply(IRandom, RealVector, DoubleValue, DoubleValue)"/>. 91 91 /// </summary> 92 92 /// <param name="random">The random number generator to use.</param> 93 93 /// <param name="realVector">The vector of real values to manipulate.</param> 94 protected override void Manipulate(IRandom random, DoubleArrayrealVector) {94 protected override void Manipulate(IRandom random, RealVector realVector) { 95 95 if (ContiguityParameter.ActualValue == null) throw new InvalidOperationException("PolynomialAllPositionManipulator: Parameter " + ContiguityParameter.ActualName + " could not be found."); 96 96 if (MaximumManipulationParameter.ActualValue == null) throw new InvalidOperationException("PolynomialAllPositionManipulator: Parameter " + MaximumManipulationParameter.ActualName + " could not be found.");
Note: See TracChangeset
for help on using the changeset viewer.