Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/10 10:46:59 (14 years ago)
Author:
svonolfe
Message:

Updated the RealVector project to use the new solution encodings (#909)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs

    r3053 r3060  
    4141      get { return (LookupParameter<IRandom>)Parameters["Random"]; }
    4242    }
    43     public ILookupParameter<ItemArray<DoubleArray>> ParentsParameter {
    44       get { return (SubScopesLookupParameter<DoubleArray>)Parameters["Parents"]; }
     43    public ILookupParameter<ItemArray<RealVector>> ParentsParameter {
     44      get { return (SubScopesLookupParameter<RealVector>)Parameters["Parents"]; }
    4545    }
    46     public ILookupParameter<DoubleArray> ChildParameter {
    47       get { return (ILookupParameter<DoubleArray>)Parameters["Child"]; }
     46    public ILookupParameter<RealVector> ChildParameter {
     47      get { return (ILookupParameter<RealVector>)Parameters["Child"]; }
    4848    }
    4949
     
    5151      : base() {
    5252      Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic crossover operators."));
    53       Parameters.Add(new SubScopesLookupParameter<DoubleArray>("Parents", "The parent vectors which should be crossed."));
    54       Parameters.Add(new LookupParameter<DoubleArray>("Child", "The child vector resulting from the crossover."));
     53      Parameters.Add(new SubScopesLookupParameter<RealVector>("Parents", "The parent vectors which should be crossed."));
     54      Parameters.Add(new LookupParameter<RealVector>("Child", "The child vector resulting from the crossover."));
    5555    }
    5656
     
    6060    }
    6161
    62     protected abstract DoubleArray Cross(IRandom random, ItemArray<DoubleArray> parents);
     62    protected abstract RealVector Cross(IRandom random, ItemArray<RealVector> parents);
    6363  }
    6464}
Note: See TracChangeset for help on using the changeset viewer.