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/UniformRandomIntVectorGenerator.cs

    r1057 r1157  
    2727
    2828namespace HeuristicLab.IntVector {
     29  /// <summary>
     30  /// Generates a new random integer vector with each element uniformly distributed in a specified range.
     31  /// </summary>
    2932  public class UniformRandomIntVectorGenerator : OperatorBase {
     33    /// <inheritdoc select="summary"/>
    3034    public override string Description {
    3135      get { return "Operator generating a new random integer vector with each element uniformly distributed in a specified range."; }
    3236    }
    3337
     38    /// <summary>
     39    /// Initializes a new instance of <see cref="UniformRandomIntVectorGenerator"/> with five variable infos
     40    /// (<c>Random</c>, <c>Length</c>, <c>Minimum</c>, <c>Maximum</c> and <c>IntVector</c>).
     41    /// </summary>
    3442    public UniformRandomIntVectorGenerator() {
    3543      AddVariableInfo(new VariableInfo("Random", "Pseudo random number generator", typeof(IRandom), VariableKind.In));
     
    4048    }
    4149
     50    /// <summary>
     51    /// Generates a new random integer vector with the given <paramref name="length"/>.
     52    /// </summary>
     53    /// <param name="random">The random number generator.</param>
     54    /// <param name="length">The length of the int vector.</param>
     55    /// <param name="min">The minimum value of the sampling range for each vector element (inclusive).</param>
     56    /// <param name="max">The maximum value of the sampling range for each vector element (exclusive).</param>
     57    /// <returns>The newly created integer vector.</returns>
    4258    public static int[] Apply(IRandom random, int length, int min, int max) {
    4359      int[] result = new int[length];
     
    4763    }
    4864
     65    /// <summary>
     66    /// Generates a new random integer vector and injects it in the given <paramref name="scope"/>.
     67    /// </summary>
     68    /// <param name="scope">The scope where to get the values from and where to inject the newly
     69    /// created integer vector.</param>
     70    /// <returns><c>null</c>.</returns>
    4971    public override IOperation Apply(IScope scope) {
    5072      IRandom random = GetVariableValue<IRandom>("Random", scope, true);
Note: See TracChangeset for help on using the changeset viewer.