Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/27/20 12:59:27 (4 years ago)
Author:
dpiringe
Message:

#3081: merged r17729:r17730 into stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Optimization.Operators/3.3/ExponentialDiscreteDoubleValueModifier.cs

    r17181 r17732  
    4343    }
    4444
     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
    4550    /// <summary>
    4651    /// Calculates a new value based on exponential decay or growth.
     
    5459    /// <param name="endIndex">The end index.</param>
    5560    /// <returns>The new value.</returns>
    56     protected 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) {
    5762      if (endValue <= 0 || startValue <= 0) throw new ArgumentException("startValue and endValue must be greater than 0.");
    5863      double b = Math.Pow(endValue / startValue, 1.0 / (endIndex - startIndex));
Note: See TracChangeset for help on using the changeset viewer.