Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 18:28:48 (14 years ago)
Author:
abeham
Message:

#922

  • Refactored HeuristicLab.Encodings.RealVectorEncoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/StrategyParameters/StdDevStrategyVectorManipulator.cs

    r4545 r4672  
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2929using HeuristicLab.Random;
     30using HeuristicLab.Common;
    3031
    3132namespace HeuristicLab.Encodings.RealVectorEncoding {
     
    5455      get { return (IValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; }
    5556    }
     57
     58    [StorableConstructor]
     59    protected StdDevStrategyVectorManipulator(bool deserializing) : base(deserializing) { }
     60    protected StdDevStrategyVectorManipulator(StdDevStrategyVectorManipulator original, Cloner cloner) : base(original, cloner) { }
    5661    /// <summary>
    5762    /// Initializes a new instance of <see cref="StrategyVectorManipulator"/> with four
     
    6671      Parameters.Add(new ValueLookupParameter<DoubleValue>("LearningRate", "The learning rate (tau)."));
    6772      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);
    6877    }
    6978
Note: See TracChangeset for help on using the changeset viewer.