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.IntVector/3.3/Crossovers/DiscreteCrossover.cs

    r3032 r3048  
    4545    /// <param name="parent2">The second parent for the crossover operation.</param>
    4646    /// <returns>The newly created integer vector, resulting from the crossover operation.</returns>
    47     public static IntArrayData Apply(IRandom random, IntArrayData parent1, IntArrayData parent2) {
     47    public static IntArray Apply(IRandom random, IntArray parent1, IntArray parent2) {
    4848      if(parent1.Length != parent2.Length)
    4949        throw new ArgumentException("DiscreteCrossover: The parents are of different length.");
     
    5858          result[i] = parent2[i];
    5959      }
    60       return new IntArrayData(result);
     60      return new IntArray(result);
    6161    }
    6262
     
    6868    /// <param name="parents">An array containing the two integer vectors that should be crossed.</param>
    6969    /// <returns>The newly created integer vector, resulting from the crossover operation.</returns>
    70     protected override IntArrayData Cross(IRandom random, ItemArray<IntArrayData> parents) {
     70    protected override IntArray Cross(IRandom random, ItemArray<IntArray> parents) {
    7171      if (parents.Length != 2) throw new ArgumentException("ERROR in DiscreteCrossover: The number of parents is not equal to 2");
    7272      return Apply(random, parents[0], parents[1]);
Note: See TracChangeset for help on using the changeset viewer.