Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/21/09 11:36:53 (15 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.IntVector namespace and changed some comments in HeuristicLab.Random and HeuristicLab.Selection.Offspring namespace(#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.IntVector/UniformOnePositionManipulator.cs

    r1057 r1157  
    2727
    2828namespace HeuristicLab.IntVector {
     29  /// <summary>
     30  /// Uniformly distributed change of a single position of an integer vector.
     31  /// </summary>
    2932  public class UniformOnePositionManipulator : IntVectorManipulatorBase {
     33    /// <inheritdoc select="summary"/>
    3034    public override string Description {
    3135      get { return "Uniformly distributed change of a single position of an integer vector."; }
    3236    }
    3337
     38    /// <summary>
     39    /// Initializes a new instance of <see cref="UniformOnePositionManipulator"/> with two variable infos
     40    /// (<c>Minimum</c> and <c>Maximum</c>).
     41    /// </summary>
    3442    public UniformOnePositionManipulator() {
    3543      AddVariableInfo(new VariableInfo("Minimum", "Minimum of the sampling range for the vector element (included)", typeof(IntData), VariableKind.In));
     
    3745    }
    3846
     47    /// <summary>
     48    /// Changes randomly a single position in the given integer <paramref name="vector"/>.
     49    /// </summary>
     50    /// <param name="random">A random number generator.</param>
     51    /// <param name="vector">The integer vector to manipulate.</param>
     52    /// <param name="min">The minimum value of the sampling range for
     53    /// the vector element to change (inclusive).</param>
     54    /// <param name="max">The maximum value of the sampling range for
     55    /// the vector element to change (exclusive).</param>
     56    /// <returns>The new integer vector that has been manipulated.</returns>
    3957    public static int[] Apply(IRandom random, int[] vector, int min, int max) {
    4058      int[] result = (int[])vector.Clone();
     
    4462    }
    4563
     64    /// <summary>
     65    /// Changes randomly a single position in the given integer <paramref name="vector"/>.
     66    /// </summary>
     67    /// <remarks>Calls <see cref="Apply"/>.</remarks>
     68    /// <param name="scope">The current scope.</param>
     69    /// <param name="random">A random number generator.</param>
     70    /// <param name="vector">The integer vector to manipulate.</param>
     71    /// <returns>The new integer vector that has been manipulated.</returns>
    4672    protected override int[] Manipulate(IScope scope, IRandom random, int[] vector) {
    4773      int min = GetVariableValue<IntData>("Minimum", scope, true).Data;
Note: See TracChangeset for help on using the changeset viewer.