- Timestamp:
- 11/28/08 10:32:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Permutation/InsertionManipulator.cs
r2 r850 26 26 27 27 namespace HeuristicLab.Permutation { 28 /// <summary> 29 /// Manipulates a permutation array by moving randomly one element to another position in the array. 30 /// </summary> 28 31 public class InsertionManipulator : PermutationManipulatorBase { 32 /// <inheritdoc select="summary"/> 29 33 public override string Description { 30 34 get { return @"TODO\r\nOperator description still missing ..."; } 31 35 } 32 36 37 /// <summary> 38 /// Moves an randomly chosen element in the specified <paramref name="permutation"/> array 39 /// to another randomly generated position. 40 /// </summary> 41 /// <param name="random">The random number generator.</param> 42 /// <param name="permutation">The array to manipulate.</param> 43 /// <returns>The new permuation array with the manipulated data.</returns> 33 44 public static int[] Apply(IRandom random, int[] permutation) { 34 45 int[] result = (int[])permutation.Clone(); … … 58 69 } 59 70 71 /// <summary> 72 /// Moves an randomly chosen element in the specified <paramref name="permutation"/> array 73 /// to another randomly generated position. 74 /// </summary> 75 /// <remarks>Calls <see cref="Apply"/>.</remarks> 76 /// <param name="scope">The current scope.</param> 77 /// <param name="random">The random number generator.</param> 78 /// <param name="permutation">The array to manipulate.</param> 79 /// <returns>The new permuation array with the manipulated data.</returns> 60 80 protected override int[] Manipulate(IScope scope, IRandom random, int[] permutation) { 61 81 return Apply(random, permutation);
Note: See TracChangeset
for help on using the changeset viewer.