Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/30/09 10:38:42 (15 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristicLab.TestFunctions namespace (#331)

File:
1 edited

Legend:

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

    r1183 r1188  
    2424using System.Text;
    2525
    26 namespace HeuristicLab.TestFunctions {   
     26namespace HeuristicLab.TestFunctions {
     27  /// <summary>
     28  /// Beale Function<br/>
     29  /// Domain:  [-4.5 , 4.5]^2<br/>
     30  /// Optimum: 0.0 at (3.0, 0.5)
     31  /// </summary>
    2732  public class BealeEvaluator : TestFunctionEvaluatorBase {
     33    /// <inheritdoc select="summary"/>
    2834    public override string Description {
    2935      get { return
     
    3541    }
    3642
     43    /// <summary>
     44    /// Evaluates the test function for a specific <paramref name="point"/>.
     45    /// </summary>
     46    /// <param name="point">N-dimensional point for which the test function should be evaluated.</param>
     47    /// <returns>The result value of the Beale function at the given point.</returns>
    3748    public static double Apply(double[] point) {
    3849      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);
    3950    }
    4051
     52    /// <summary>
     53    /// Evaluates the test function for a specific <paramref name="point"/>.
     54    /// </summary>
     55    /// <remarks>Calls <see cref="Apply"/>.</remarks>
     56    /// <param name="point">N-dimensional point for which the test function should be evaluated.</param>
     57    /// <returns>The result value of the Beale function at the given point.</returns>
    4158    protected override double EvaluateFunction(double[] point) {
    4259      return Apply(point);
Note: See TracChangeset for help on using the changeset viewer.