Free cookie consent management tool by TermsFeed Policy Generator

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

#3081

  • renamed method Calculate -> Apply
  • copied/added comments of the method Modify -> Apply
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Optimization.Operators/3.3/GeneralizedExponentialDiscreteDoubleValueModifier.cs

    r17729 r17730  
    5858    }
    5959
     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
    6064    /// <summary>
    6165    /// Calculates a new value based on exponential decay or growth.
     
    6973    /// <param name="endIndex">The final index.</param>
    7074    /// <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) {
    7676      if (@base <= 0)
    7777        throw new ArgumentException("Base must be > 0.");
Note: See TracChangeset for help on using the changeset viewer.