- Timestamp:
- 11/28/08 10:32:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Permutation/Swap3Manipulator.cs
r2 r850 26 26 27 27 namespace HeuristicLab.Permutation { 28 /// <summary> 29 /// Manipulates a permutation array by swaping three randomly chosen elements. 30 /// </summary> 28 31 public class Swap3Manipulator : 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 /// Swaps three randomly chosen elements of the given <paramref name="permutation"/> array. 39 /// </summary> 40 /// <param name="random">The random number generator.</param> 41 /// <param name="permutation">The permutation array to manipulate.</param> 42 /// <returns>The new permuation array with the manipulated data.</returns> 33 43 public static int[] Apply(IRandom random, int[] permutation) { 34 44 int[] result = (int[])permutation.Clone(); … … 61 71 } 62 72 73 /// <summary> 74 /// Swaps three randomly chosen elements of the given <paramref name="permutation"/> array. 75 /// </summary> 76 /// <remarks>Calls <see cref="Apply"/>.</remarks> 77 /// <param name="scope">The current scope.</param> 78 /// <param name="random">The random number generator.</param> 79 /// <param name="permutation">The permutation array to manipulate.</param> 80 /// <returns>The new permuation array with the manipulated data.</returns> 63 81 protected override int[] Manipulate(IScope scope, IRandom random, int[] permutation) { 64 82 return Apply(random, permutation);
Note: See TracChangeset
for help on using the changeset viewer.