Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (14 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/Crossovers/AverageCrossover.cs

    r3017 r3048  
    4545    /// <param name="parents">The list of parents.</param>
    4646    /// <returns>The child vector (average) of the parents.</returns>
    47     public static DoubleArrayData Apply(IRandom random, ItemArray<DoubleArrayData> parents) {
     47    public static DoubleArray Apply(IRandom random, ItemArray<DoubleArray> parents) {
    4848      int length = parents[0].Length, parentsCount = parents.Length;
    4949      if (parents.Length < 2) throw new ArgumentException("AverageCrossover: The number of parents is less than 2.", "parents");
    50       DoubleArrayData result = new DoubleArrayData(length);
     50      DoubleArray result = new DoubleArray(length);
    5151      try {
    5252        double avg;
     
    6565
    6666    /// <summary>
    67     /// Forwards the call to <see cref="Apply(IRandom, ItemArray<DoubleArrayData>)"/>.
     67    /// Forwards the call to <see cref="Apply(IRandom, ItemArray<DoubleArray>)"/>.
    6868    /// </summary>
    6969    /// <param name="random">The random number generator.</param>
    7070    /// <param name="parents">The list of parents.</param>
    7171    /// <returns>The child vector (average) of the parents.</returns>
    72     protected override DoubleArrayData Cross(IRandom random, ItemArray<DoubleArrayData> parents) {
     72    protected override DoubleArray Cross(IRandom random, ItemArray<DoubleArray> parents) {
    7373      return Apply(random, parents);
    7474    }
Note: See TracChangeset for help on using the changeset viewer.