function
Class TestFunction1D

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

public class TestFunction1D
extends BasicScalarFunction

A simple 1-D test function for making plots etc.

Author:
dgorur

Field Summary
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
TestFunction1D()
           
 
Method Summary
 double quickCompute(double[] xIn)
          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

TestFunction1D

public TestFunction1D()
Method Detail

quickCompute

public double quickCompute(double[] xIn)
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:
xIn - the given input.
Returns:
the output corresponding to the given input.