function
Class Hartman6LoFi

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.Hartman6
          extended by function.Hartman6LoFi
All Implemented Interfaces:
Computable, ScalarFunction

public class Hartman6LoFi
extends Hartman6

A fake "lo-fi" version of Hartman6 with a radially symmetric sinusoidal "error".

Author:
dgorur

Field Summary
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
Hartman6LoFi()
           
 
Method Summary
protected  double computeError(double[] x)
           
 double getErrAmplitude()
          Returns the magnitude of the error sinusoid.
 double quickCompute(double[] x)
          Compute method without dimension checking.
 void setErrAmplitude(double amp)
          Sets the magnitude of the error sinusoid.
 
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

Hartman6LoFi

public Hartman6LoFi()
Method Detail

getErrAmplitude

public double getErrAmplitude()
Returns the magnitude of the error sinusoid.

Returns:
the magnitude of the error sinusoid.

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
Overrides:
quickCompute in class Hartman6
Parameters:
x - the given input.
Returns:
the output corresponding to the given input.

setErrAmplitude

public void setErrAmplitude(double amp)
Sets the magnitude of the error sinusoid.

Parameters:
amp - the magnitude of the error sinusoid.

computeError

protected double computeError(double[] x)
Parameters:
x -
Returns: