Changeset 1184 for trunk/sources/HeuristicLab.RealVector/MichalewiczNonUniformOnePositionManipulator.cs
- Timestamp:
- 01/28/09 10:20:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.RealVector/MichalewiczNonUniformOnePositionManipulator.cs
r294 r1184 27 27 28 28 namespace HeuristicLab.RealVector { 29 /// <summary> 30 /// Michalewicz, Z. (1992). Genetic Algorithms + Data Structures = Evolution Programs<br/> 31 /// Non-uniformly distributed change of one position of a real vector. 32 /// </summary> 29 33 public class MichalewiczNonUniformOnePositionManipulator : RealVectorManipulatorBase { 34 /// <inheritdoc select="summary"/> 30 35 public override string Description { 31 36 get { return … … 37 42 } 38 43 44 /// <summary> 45 /// Initializes a new instance of <see cref="MichalewiczNonUniformOnePositionManipulator"/> with five 46 /// variable infos (<c>Minimum</c>, <c>Maximum</c>, <c>CurrentGeneration</c>, <c>MaximumGenerations</c> 47 /// and <c>GenerationsDependency</c>). 48 /// </summary> 39 49 public MichalewiczNonUniformOnePositionManipulator() 40 50 : base() { … … 49 59 } 50 60 61 /// <summary> 62 /// Performs a non uniformly distributed one position manipulation on the given 63 /// real <paramref name="vector"/>, published by Z. Michalewicz, 1992. 64 /// </summary> 65 /// <remarks>Calls <see cref="Apply"/>.</remarks> 66 /// <param name="scope">The current scope.</param> 67 /// <param name="random">The random number generator.</param> 68 /// <param name="vector">The real vector to manipulate.</param> 69 /// <returns>The manipulated real vector.</returns> 51 70 protected override double[] Manipulate(IScope scope, IRandom random, double[] vector) { 52 71 double min = GetVariableValue<DoubleData>("Minimum", scope, true).Data; … … 58 77 } 59 78 79 /// <summary> 80 /// Performs a non uniformly distributed one position manipulation on the given 81 /// real <paramref name="vector"/>, published by Z. Michalewicz, 1992. 82 /// </summary> 83 /// <param name="random">The random number generator.</param> 84 /// <param name="vector">The real vector to manipulate.</param> 85 /// <param name="min">The minimum value of the sampling range for the vector element (inclusive).</param> 86 /// <param name="max">The maximum value of the sampling range for the vector element (exclusive).</param> 87 /// <param name="currentGeneration">The current generation of the algorithm.</param> 88 /// <param name="maximumGenerations">Maximum number of generations.</param> 89 /// <param name="generationsDependency">Specifies the degree of dependency on the number of generations.</param> 90 /// <returns>The manipulated real vector.</returns> 60 91 public static double[] Apply(IRandom random, double[] vector, double min, double max, int currentGeneration, int maximumGenerations, int generationsDependency) { 61 92 int length = vector.Length;
Note: See TracChangeset
for help on using the changeset viewer.