Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/28/09 10:20:40 (15 years ago)
Author:
vdorfer
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.RealVector/SelfAdaptiveNormalAllPositionsManipulator.cs

    r1180 r1184  
    2828
    2929namespace HeuristicLab.RealVector {
     30  /// <summary>
     31  /// Manipulates each dimension in the real vector with the mutation strength given
     32  /// in the strategy parameter vector.
     33  /// </summary>
    3034  public class SelfAdaptiveNormalAllPositionsManipulator : RealVectorManipulatorBase {
     35    /// <inheritdoc select="summary"/>
    3136    public override string Description {
    3237      get { return @"Manipulates each dimension in the real vector with the mutation strength given in the strategy parameter vector"; }
    3338    }
    3439
     40    /// <summary>
     41    /// Initializes a new instance of <see cref="SelfAdaptiveNormalAllPositionsManipulator"/> with one
     42    /// variable info (<c>StrategyVector</c>).
     43    /// </summary>
    3544    public SelfAdaptiveNormalAllPositionsManipulator()
    3645      : base() {
     
    3847    }
    3948
     49    /// <summary>
     50    /// Performs a self adaptive normally distributed all position manipulation on the given
     51    /// <paramref name="vector"/>.
     52    /// </summary>
     53    /// <exception cref="InvalidOperationException">Thrown when the strategy vector is not
     54    /// as long as the vector to get manipulated.</exception>
     55    /// <param name="strategyParameters">The strategy vector determining the strength of the mutation.</param>
     56    /// <param name="random">A random number generator.</param>
     57    /// <param name="vector">The real vector to manipulate.</param>
     58    /// <returns>The manipulated real vector.</returns>
    4059    public static double[] Apply(double[] strategyParameters, IRandom random, double[] vector) {
    4160      NormalDistributedRandom N = new NormalDistributedRandom(random, 0.0, 1.0);
     
    4665    }
    4766
     67    /// <summary>
     68    /// Performs a self adaptive normally distributed all position manipulation on the given
     69    /// <paramref name="vector"/>.
     70    /// </summary>
     71    /// <remarks>Calls <see cref="Apply"/>.</remarks>
     72    /// <param name="scope">The current scope.</param>
     73    /// <param name="random">A random number generator.</param>
     74    /// <param name="vector">The real vector to manipulate.</param>
     75    /// <returns>The manipulated real vector.</returns>
    4876    protected override double[] Manipulate(IScope scope, IRandom random, double[] vector) {
    4977      double[] strategyVector = scope.GetVariableValue<DoubleArrayData>("StrategyVector", true).Data;
Note: See TracChangeset for help on using the changeset viewer.