function
Class Shekel5

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.Shekel5
All Implemented Interfaces:
Computable, ScalarFunction
Direct Known Subclasses:
Shekel7

public class Shekel5
extends BasicScalarFunction

Shekel functions, as defined by Dixon and Szego. This is the Shekel5, in four dimensions, with five local minima. The Shekel 7 and 10, with as 7 and 10 local minima, are defined in Shekel7 and Shekel10.

Author:
dgorur

Field Summary
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
Shekel5()
           
 
Method Summary
 double quickCompute(double[] x)
          Compute method without dimension checking.
 
Methods inherited from class function.BasicScalarFunction
checkDimensions, compute, compute, compute, compute, compute, compute, getBounds, getInputDimension, getOutputDimension, init, isWithinBounds, makeBounds, quickCompute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shekel5

public Shekel5()
Method Detail

quickCompute

public double quickCompute(double[] x)
Description copied from class: BasicScalarFunction
Compute method without dimension checking. All subclasses must implement this method: it is the core method that defines the function.

Specified by:
quickCompute in interface ScalarFunction
Specified by:
quickCompute in class BasicScalarFunction
Parameters:
x - the given input.
Returns:
the output corresponding to the given input.