Free cookie consent management tool by TermsFeed Policy Generator

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

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

File:
1 edited

Legend:

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

    r77 r1184  
    2727
    2828namespace HeuristicLab.RealVector {
     29  /// <summary>
     30  /// Generates a new random real vector with each element uniformly distributed in a specified range.
     31  /// </summary>
    2932  public class UniformRandomRealVectorGenerator : OperatorBase {
     33    /// <inheritdoc select="summary"/>
    3034    public override string Description {
    3135      get { return "Operator generating a new random real vector with each element uniformly distributed in a specified range."; }
    3236    }
    3337
     38    /// <summary>
     39    /// Initializes a new instance of <see cref="UniformRandomRealVectorGenerator"/> with five variable infos
     40    /// (<c>Random</c>, <c>Length</c>, <c>Minimum</c>, <c>Maximum</c> and <c>RealVector</c>).
     41    /// </summary>
    3442    public UniformRandomRealVectorGenerator() {
    3543      AddVariableInfo(new VariableInfo("Random", "Pseudo random number generator", typeof(IRandom), VariableKind.In));
     
    4048    }
    4149
     50    /// <summary>
     51    /// Generates a new random real 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 real 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 real vector.</returns>
    4258    public static double[] Apply(IRandom random, int length, double min, double max) {
    4359      double[] result = new double[length];
     
    4763    }
    4864
     65    /// <summary>
     66    /// Generates a new random real 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 real 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.