Changeset 4722 for trunk/sources/HeuristicLab.Optimization.Operators/3.3/LinearDiscreteDoubleValueModifier.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 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.Optimization.Operators/3.3/LinearDiscreteDoubleValueModifier.cs
r4068 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 30 31 [StorableClass] 31 32 public class LinearDiscreteDoubleValueModifier : DiscreteDoubleValueModifier { 33 [StorableConstructor] 34 protected LinearDiscreteDoubleValueModifier(bool deserializing) : base(deserializing) { } 35 protected LinearDiscreteDoubleValueModifier(LinearDiscreteDoubleValueModifier original, Cloner cloner) : base(original, cloner) { } 36 public LinearDiscreteDoubleValueModifier() : base() { } 37 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new LinearDiscreteDoubleValueModifier(this, cloner); 40 } 41 32 42 protected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 33 43 double k = (endValue - startValue) / (endIndex - startIndex);
Note: See TracChangeset
for help on using the changeset viewer.