Changeset 4679 for branches/CloningRefactoring/HeuristicLab.Optimization.Operators/3.3/SquareRootDiscreteDoubleValueModifier.cs
- Timestamp:
- 10/29/10 19:31:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Optimization.Operators/3.3/SquareRootDiscreteDoubleValueModifier.cs
r4068 r4679 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 31 32 [StorableClass] 32 33 public class SquareRootDiscreteDoubleValueModifier : DiscreteDoubleValueModifier { 34 [StorableConstructor] 35 protected SquareRootDiscreteDoubleValueModifier(bool deserializing) : base(deserializing) { } 36 protected SquareRootDiscreteDoubleValueModifier(SquareRootDiscreteDoubleValueModifier original, Cloner cloner) : base(original, cloner) { } 37 public SquareRootDiscreteDoubleValueModifier() : base() { } 38 39 public override IDeepCloneable Clone(Cloner cloner) { 40 return new SquareRootDiscreteDoubleValueModifier(this, cloner); 41 } 42 33 43 protected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 34 44 double a = (endValue - startValue) / Math.Sqrt(endIndex - startIndex);
Note: See TracChangeset
for help on using the changeset viewer.