Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/28/08 10:32:20 (16 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.Permutation namespace (#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Permutation/CosaCrossover.cs

    r2 r850  
    2727
    2828namespace HeuristicLab.Permutation {
     29  /// <summary>
     30  /// Performs a cross over permutation between two permutation arrays by taking randomly chosen
     31  /// reverse and forward intervals from the first permutation array inserting
     32  /// it in the child on different positions depending on the second permutation array.
     33  /// </summary>
    2934  public class CosaCrossover : PermutationCrossoverBase {
     35    /// <inheritdoc select="summary"/>
    3036    public override string Description {
    3137      get { return @"TODO\r\nOperator description still missing ..."; }
    3238    }
    3339
     40    /// <summary>
     41    /// Performs a cross over permutation of <paramref name="parent1"/> and <paramref name="parent2"/>
     42    /// by taking first the reverse elements of a randomly chosen interval of parent1
     43    /// and inserting it in the result at a position specified by the permutation of parent2.
     44    /// The remaining elements to be inserted are taken again from parent1 in the forward direction.
     45    /// </summary>
     46    /// <param name="random">The random number generator.</param>
     47    /// <param name="parent1">The parent scope 1 to cross over.</param>
     48    /// <param name="parent2">The parent scope 2 to cross over.</param>
     49    /// <returns>The created cross over permutation as int array.</returns>
    3450    public static int[] Apply(IRandom random, int[] parent1, int[] parent2) {
    3551      int length = parent1.Length;
     
    6985    }
    7086
     87    /// <summary>
     88    /// Performs a cross over permutation of <paramref name="parent1"/> and <paramref name="parent2"/>
     89    /// by taking first the reverse elements of a randomly chosen interval of parent1
     90    /// and inserting it in the result at a position specified by the permutation of parent2.
     91    /// The remaining elements to be inserted are taken again from parent1 in the forward direction.
     92    /// </summary>
     93    /// <remarks>Calls <see cref="Apply"/>.</remarks>
     94    /// <param name="scope">The current scope.</param>
     95    /// <param name="random">The random number generator.</param>
     96    /// <param name="parent1">The parent scope 1 to cross over.</param>
     97    /// <param name="parent2">The parent scope 2 to cross over.</param>
     98    /// <returns>The created cross over permutation as int array.</returns>
    7199    protected override int[] Cross(IScope scope, IRandom random, int[] parent1, int[] parent2) {
    72100      return Apply(random, parent1, parent2);
Note: See TracChangeset for help on using the changeset viewer.