- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCreator.cs
r4068 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; … … 47 48 } 48 49 50 [StorableConstructor] 51 protected StdDevStrategyVectorCreator(bool deserializing) : base(deserializing) { } 52 protected StdDevStrategyVectorCreator(StdDevStrategyVectorCreator original, Cloner cloner) : base(original, cloner) { } 49 53 public StdDevStrategyVectorCreator() 50 54 : base() { … … 55 59 } 56 60 61 public override IDeepCloneable Clone(Cloner cloner) { 62 return new StdDevStrategyVectorCreator(this, cloner); 63 } 64 57 65 public override IOperation Apply() { 58 66 StrategyParameterParameter.ActualValue = UniformRandomRealVectorCreator.Apply(RandomParameter.ActualValue, LengthParameter.ActualValue.Value, BoundsParameter.ActualValue); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorCrossover.cs
r4068 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Operators; … … 43 44 } 44 45 46 [StorableConstructor] 47 protected StdDevStrategyVectorCrossover(bool deserializing) : base(deserializing) { } 48 protected StdDevStrategyVectorCrossover(StdDevStrategyVectorCrossover original, Cloner cloner) : base(original, cloner) { } 45 49 public StdDevStrategyVectorCrossover() 46 50 : base() { … … 51 55 } 52 56 57 public override IDeepCloneable Clone(Cloner cloner) { 58 return new StdDevStrategyVectorCrossover(this, cloner); 59 } 60 53 61 public override IOperation Apply() { 54 62 StrategyParameterParameter.ActualValue = AverageCrossover.Apply(RandomParameter.ActualValue, ParentsParameter.ActualValue); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorManipulator.cs
r4545 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 54 55 get { return (IValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; } 55 56 } 57 58 [StorableConstructor] 59 protected StdDevStrategyVectorManipulator(bool deserializing) : base(deserializing) { } 60 protected StdDevStrategyVectorManipulator(StdDevStrategyVectorManipulator original, Cloner cloner) : base(original, cloner) { } 56 61 /// <summary> 57 62 /// Initializes a new instance of <see cref="StrategyVectorManipulator"/> with four … … 66 71 Parameters.Add(new ValueLookupParameter<DoubleValue>("LearningRate", "The learning rate (tau).")); 67 72 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "A 2 column matrix specifying the lower and upper bound for each dimension. If there are less rows than dimension the bounds vector is cycled.", new DoubleMatrix(new double[,] { { 0, 5 } }))); 73 } 74 75 public override IDeepCloneable Clone(Cloner cloner) { 76 return new StdDevStrategyVectorManipulator(this, cloner); 68 77 } 69 78
Note: See TracChangeset
for help on using the changeset viewer.