Changeset 3060 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs
- Timestamp:
- 03/16/10 10:46:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs
r3053 r3060 41 41 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 42 42 } 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"]; } 45 45 } 46 public ILookupParameter< DoubleArray> ChildParameter {47 get { return (ILookupParameter< DoubleArray>)Parameters["Child"]; }46 public ILookupParameter<RealVector> ChildParameter { 47 get { return (ILookupParameter<RealVector>)Parameters["Child"]; } 48 48 } 49 49 … … 51 51 : base() { 52 52 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.")); 55 55 } 56 56 … … 60 60 } 61 61 62 protected abstract DoubleArray Cross(IRandom random, ItemArray<DoubleArray> parents);62 protected abstract RealVector Cross(IRandom random, ItemArray<RealVector> parents); 63 63 } 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.