model
Class BasicApproxModel

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.VariableDomainScalarFunction
          extended by model.BasicApproxModel
All Implemented Interfaces:
DataListener, Computable, ScalarFunction, VariableBounds, VariableInputDimension, ApproxModel, DataFit
Direct Known Subclasses:
GPRegression, PenaltyFunctionModel

public abstract class BasicApproxModel
extends VariableDomainScalarFunction
implements VariableBounds, ApproxModel

Basic implementation of the methods in ApproxModel. Currently not used.

Author:
dgorur

Field Summary
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
BasicApproxModel()
           
 
Method Summary
 int getOutputNumber()
          In the case when this DataFit operates on a multi-output DataBlocks, denotes the index of the output vector that it should use.
 ScalarFunction getUncertaintyEstimator()
          Returns the uncertaintyEstimator.
 void init()
          Initialization method.
protected abstract  ScalarFunction makeUncertaintyEstimator()
           
 void setOutputNumber(int outputNumber)
          Sets the output index for this DataFit.
 void setUncertaintyEstimator(ScalarFunction uncertaintyEstimator)
          Sets the uncertaintyEstimator.
 
Methods inherited from class function.VariableDomainScalarFunction
getBounds, getInputDimension, setBounds, setInputDimension
 
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
 
Methods inherited from interface model.ApproxModel
getMaxUncertainty
 
Methods inherited from interface model.DataFit
calibrate, calibrateOptional
 
Methods inherited from interface data.DataListener
clear, dataAdded, dataAdded, dataRemoved, dataRemoved
 
Methods inherited from interface function.ScalarFunction
compute, compute, compute, compute, quickCompute, quickCompute
 
Methods inherited from interface function.Computable
compute, compute, getBounds, getInputDimension, getOutputDimension, isWithinBounds
 
Methods inherited from interface function.VariableInputDimension
setInputDimension
 

Constructor Detail

BasicApproxModel

public BasicApproxModel()
Method Detail

getOutputNumber

public int getOutputNumber()
Description copied from interface: DataFit
In the case when this DataFit operates on a multi-output DataBlocks, denotes the index of the output vector that it should use.

Specified by:
getOutputNumber in interface DataFit
Returns:
the output number of this DataFit.

setOutputNumber

public void setOutputNumber(int outputNumber)
Description copied from interface: DataFit
Sets the output index for this DataFit.

Specified by:
setOutputNumber in interface DataFit
Parameters:
outputNumber - the given output index.

getUncertaintyEstimator

public ScalarFunction getUncertaintyEstimator()
Returns the uncertaintyEstimator.

Specified by:
getUncertaintyEstimator in interface ApproxModel
Returns:
the uncertaintyEstimator.

setUncertaintyEstimator

public void setUncertaintyEstimator(ScalarFunction uncertaintyEstimator)
Sets the uncertaintyEstimator.

Parameters:
uncertaintyEstimator - the given uncertaintyEstimator.

init

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

Specified by:
init in interface ScalarFunction
Specified by:
init in interface DataFit
Overrides:
init in class VariableDomainScalarFunction

makeUncertaintyEstimator

protected abstract ScalarFunction makeUncertaintyEstimator()