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

    r3032 r3048  
    4545    /// <param name="parent2">The second parent for crossover.</param>
    4646    /// <returns>The newly created integer vector, resulting from the single point crossover.</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
     
    6969    /// <param name="parents">An array containing the two integer vectors that should be crossed.</param>
    7070    /// <returns>The newly created integer vector, resulting from the single point crossover.</returns>
    71     protected override IntArrayData Cross(IRandom random, ItemArray<IntArrayData> parents) {
     71    protected override IntArray Cross(IRandom random, ItemArray<IntArray> parents) {
    7272      if (parents.Length != 2) throw new ArgumentException("ERROR in SinglePointCrossover: The number of parents is not equal to 2");
    7373      return Apply(random, parents[0], parents[1]);
Note: See TracChangeset for help on using the changeset viewer.