Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (15 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/Creators/UniformRandomRealVectorCreator.cs

    r3017 r3048  
    5151    /// <param name="max">The maximum value of the sampling range for each vector element (exclusive).</param>
    5252    /// <returns>The newly created real vector.</returns>
    53     public static DoubleArrayData Apply(IRandom random, int length, double min, double max) {
     53    public static DoubleArray Apply(IRandom random, int length, double min, double max) {
    5454      if (length <= 0) throw new ArgumentException("UniformRandomRealVectorCreator: Length is smaller or equal to 0.", "length");
    5555      if (min > max) throw new ArgumentException("UniformRandomRealVectorCreator: Minimum is greater than Maximum.", "min");
    56       DoubleArrayData result = new DoubleArrayData(length);
     56      DoubleArray result = new DoubleArray(length);
    5757      for (int i = 0; i < length; i++)
    5858        result[i] = min + random.NextDouble() * (max - min);
     
    6868    /// <param name="maximum">The maximum value of the sampling range for each vector element (exclusive).</param>
    6969    /// <returns>The newly created real vector.</returns>
    70     protected override DoubleArrayData Create(IRandom random, IntData length, DoubleData minimum, DoubleData maximum) {
     70    protected override DoubleArray Create(IRandom random, IntValue length, DoubleValue minimum, DoubleValue maximum) {
    7171      return Apply(random, length.Value, minimum.Value, maximum.Value);
    7272    }
Note: See TracChangeset for help on using the changeset viewer.