Changeset 17730 for trunk/HeuristicLab.Optimization.Operators/3.3/GeneralizedExponentialDiscreteDoubleValueModifier.cs
- Timestamp:
- 08/27/20 12:06:16 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Optimization.Operators/3.3/GeneralizedExponentialDiscreteDoubleValueModifier.cs
r17729 r17730 58 58 } 59 59 60 protected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 61 return Apply(value, startValue, endValue, index, startIndex, endIndex, Base); 62 } 63 60 64 /// <summary> 61 65 /// Calculates a new value based on exponential decay or growth. … … 69 73 /// <param name="endIndex">The final index.</param> 70 74 /// <returns>The new value.</returns> 71 protected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 72 return Calculate(value, startValue, endValue, index, startIndex, endIndex, Base); 73 } 74 75 public static double Calculate(double value, double startValue, double endValue, int index, int startIndex, int endIndex, double @base) { 75 public static double Apply(double value, double startValue, double endValue, int index, int startIndex, int endIndex, double @base) { 76 76 if (@base <= 0) 77 77 throw new ArgumentException("Base must be > 0.");
Note: See TracChangeset
for help on using the changeset viewer.