Changeset 1183


Ignore:
Timestamp:
01/28/09 10:03:56 (13 years ago)
Author:
vdorfer
Message:

Fixed spelling mistake of Apply method in BealeEvaluator and changed Apply method of BoothEvaluator from private to public static (#477)

Location:
trunk/sources/HeuristicLab.TestFunctions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.TestFunctions/BealeEvaluator.cs

    r291 r1183  
    2424using System.Text;
    2525
    26 namespace HeuristicLab.TestFunctions {
     26namespace HeuristicLab.TestFunctions {   
    2727  public class BealeEvaluator : TestFunctionEvaluatorBase {
    2828    public override string Description {
     
    3535    }
    3636
    37     public static double Applay(double[] point) {
     37    public static double Apply(double[] point) {
    3838      return Math.Pow(1.5 - point[0] * (1 - point[1]), 2) + Math.Pow(2.25 - point[0] * (1 - (point[1] * point[1])), 2) + Math.Pow((2.625 - point[0] * (1 - (point[1] * point[1] * point[1]))), 2);
    3939    }
    4040
    4141    protected override double EvaluateFunction(double[] point) {
    42       return Applay(point);
     42      return Apply(point);
    4343    }
    4444  }
  • trunk/sources/HeuristicLab.TestFunctions/BoothEvaluator.cs

    r291 r1183  
    2727  public class BoothEvaluator : TestFunctionEvaluatorBase {
    2828    public override string Description {
    29       get { return
    30 @"Booth Function
     29      get {
     30        return
     31          @"Booth Function
    3132
    3233Domain:  [-10.0 , 10.0]^2
    3334Optimum: 0.0 at (1.0, 3.0)";
    34           }
     35      }
    3536    }
    3637
    37     private double Apply(double[] point) {
     38    public static double Apply(double[] point) {
    3839      return Math.Pow(point[0] + 2 * point[1] - 7, 2) + Math.Pow(2 * point[0] + point[1] - 5, 2);
    3940    }
Note: See TracChangeset for help on using the changeset viewer.