function
Class VariableDomainScalarFunction

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.VariableDomainScalarFunction
All Implemented Interfaces:
Computable, ScalarFunction, VariableBounds, VariableInputDimension
Direct Known Subclasses:
BasicApproxModel, BasicBoundConstrainedDiviner, BasicTwoFidelityModel, Rosenbrock

public abstract class VariableDomainScalarFunction
extends BasicScalarFunction
implements VariableInputDimension, VariableBounds

Abstract class for scalar functions with variable input dimensionality.

Author:
dgorur

Field Summary
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
VariableDomainScalarFunction()
          Constructs a BasicScalarFunction in the default number of input dimensions.
VariableDomainScalarFunction(int inputDimension)
          Constructs a BasicScalarFunction in the given number of input dimensions.
 
Method Summary
 Hypercube getBounds()
          Returns a Hypercube specifying the domain of this Computable.
 int getInputDimension()
          Returns the number of dimensions accepted by this Computable.
 void init()
          Initialization method.
 void setBounds(Hypercube bounds)
          Sets the bounds for this ScalarFunction.
 void setInputDimension(int inputDimension)
          Sets the number of input dimensions.
 
Methods inherited from class function.BasicScalarFunction
checkDimensions, compute, compute, compute, compute, compute, compute, getOutputDimension, isWithinBounds, makeBounds, quickCompute, quickCompute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableDomainScalarFunction

public VariableDomainScalarFunction()
Constructs a BasicScalarFunction in the default number of input dimensions.


VariableDomainScalarFunction

public VariableDomainScalarFunction(int inputDimension)
Constructs a BasicScalarFunction in the given number of input dimensions.

Parameters:
inputDimension -
Method Detail

getBounds

public Hypercube getBounds()
Description copied from interface: Computable
Returns a Hypercube specifying the domain of this Computable.

Specified by:
getBounds in interface Computable
Overrides:
getBounds in class BasicScalarFunction
Returns:
the domain of this ScalarFunction.

getInputDimension

public int getInputDimension()
Description copied from interface: Computable
Returns the number of dimensions accepted by this Computable.

Specified by:
getInputDimension in interface Computable
Overrides:
getInputDimension in class BasicScalarFunction
Returns:
the number of dimensions.

init

public void init()
Description copied from class: BasicScalarFunction
Initialization method.

Specified by:
init in interface ScalarFunction
Overrides:
init in class BasicScalarFunction

setInputDimension

public void setInputDimension(int inputDimension)
Sets the number of input dimensions.

Specified by:
setInputDimension in interface VariableInputDimension
Parameters:
inputDimension - the given number of input dimensions.

setBounds

public void setBounds(Hypercube bounds)
Description copied from interface: VariableBounds
Sets the bounds for this ScalarFunction.

Specified by:
setBounds in interface VariableBounds
Parameters:
bounds - the given bounds.