Changeset 17928 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Optimization.Operators/3.3/ExponentialDiscreteDoubleValueModifier.cs
- Timestamp:
- 04/06/21 13:13:32 (4 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Optimization.Operators/3.3/ExponentialDiscreteDoubleValueModifier.cs
r17180 r17928 43 43 } 44 44 45 46 protected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 47 return Apply(value, startValue, endValue, index, startIndex, endIndex); 48 } 49 45 50 /// <summary> 46 51 /// Calculates a new value based on exponential decay or growth. … … 54 59 /// <param name="endIndex">The end index.</param> 55 60 /// <returns>The new value.</returns> 56 p rotected override double Modify(double value, double startValue, double endValue, int index, int startIndex, int endIndex) {61 public static double Apply(double value, double startValue, double endValue, int index, int startIndex, int endIndex) { 57 62 if (endValue <= 0 || startValue <= 0) throw new ArgumentException("startValue and endValue must be greater than 0."); 58 63 double b = Math.Pow(endValue / startValue, 1.0 / (endIndex - startIndex));
Note: See TracChangeset
for help on using the changeset viewer.