function
Class RosenbrockLoFi

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.VariableDomainScalarFunction
          extended by function.Rosenbrock
              extended by function.RosenbrockLoFi
All Implemented Interfaces:
Computable, ScalarFunction, VariableBounds, VariableInputDimension

public class RosenbrockLoFi
extends Rosenbrock

Implements the Rosenbrock function minus one quadratic term.

Author:
dgorur

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

Constructor Detail

RosenbrockLoFi

public RosenbrockLoFi()
Default constructor.


RosenbrockLoFi

public RosenbrockLoFi(int inputDimension)
Parameters:
inputDimension -
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
Overrides:
quickCompute in class Rosenbrock
Parameters:
x - the given input.
Returns:
the output corresponding to the given input.