Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/01/08 13:47:10 (15 years ago)
Author:
vdorfer
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Evolutionary/CrossoverBase.cs

    r108 r881  
    2727
    2828namespace HeuristicLab.Evolutionary {
     29  /// <summary>
     30  /// Base class for crossing over operators.
     31  /// </summary>
    2932  public abstract class CrossoverBase : OperatorBase {
     33    /// <summary>
     34    /// Initializes a new instance of <see cref="CrossoverBase"/> with one variable info (<c>Random</c>).
     35    /// </summary>
    3036    public CrossoverBase()
    3137      : base() {
     
    3339    }
    3440
     41    /// <summary>
     42    /// Replaces the parents (the sub scopes of the current <paramref name="scope"/>) with created children
     43    /// by crossing over of two adjacent sub scopes.
     44    /// </summary>
     45    /// <exception cref="InvalidOperationException">Thrown when the size of the mating pool
     46    /// is not even.</exception>
     47    /// <param name="scope">The current scope whose sub scopes shall be parents.</param>
     48    /// <returns><c>null</c>.</returns>
    3549    public override IOperation Apply(IScope scope) {
    3650      IRandom random = GetVariableValue<IRandom>("Random", scope, true);
     
    5367    }
    5468
     69    /// <summary>
     70    /// Performs a cross over of <paramref name="parent1"/> and <paramref name="parent2"/>
     71    /// to create a new <paramref name="child"/>.
     72    /// </summary>
     73    /// <param name="scope">The current scope.</param>
     74    /// <param name="random">A random number generator.</param>
     75    /// <param name="parent1">The parent scope 1 to cross over.</param>
     76    /// <param name="parent2">The parent scope 2 to cross over.</param>
     77    /// <param name="child">The resulting child of the cross over.</param>
    5578    protected abstract void Cross(IScope scope, IRandom random, IScope parent1, IScope parent2, IScope child);
    5679  }
Note: See TracChangeset for help on using the changeset viewer.