- Timestamp:
- 11/28/08 10:32:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Permutation/TranslocationInversionManipulator.cs
r2 r850 26 26 27 27 namespace HeuristicLab.Permutation { 28 /// <summary> 29 /// Manipulates a permutation array by moving and reversing a randomly chosen interval of elements to another 30 /// (randomly chosen) position in the array. 31 /// </summary> 28 32 public class TranslocationInversionManipulator : PermutationManipulatorBase { 33 /// <inheritdoc select="summary"/> 29 34 public override string Description { 30 35 get { return @"TODO\r\nOperator description still missing ..."; } 31 36 } 32 37 38 /// <summary> 39 /// Moves a randomly chosen interval of elements to another (randomly chosen) position in the given 40 /// <paramref name="permutation"/> array and reverses it. 41 /// </summary> 42 /// <param name="random">The random number generator.</param> 43 /// <param name="permutation">The permutation array to manipulate.</param> 44 /// <returns>The new permuation array with the manipulated data.</returns> 33 45 public static int[] Apply(IRandom random, int[] permutation) { 34 46 int[] result = (int[])permutation.Clone(); … … 64 76 } 65 77 78 /// <summary> 79 /// Moves a randomly chosen interval of elements to another (randomly chosen) position in the given 80 /// <paramref name="permutation"/> array and reverses it. 81 /// </summary> 82 /// <remarks>Calls <see cref="Apply"/>.</remarks> 83 /// <param name="scope">The current scope.</param> 84 /// <param name="random">The random number generator.</param> 85 /// <param name="permutation">The permutation array to manipulate.</param> 86 /// <returns>The new permuation array with the manipulated data.</returns> 66 87 protected override int[] Manipulate(IScope scope, IRandom random, int[] permutation) { 67 88 return Apply(random, permutation);
Note: See TracChangeset
for help on using the changeset viewer.