diviner
Class PIDiviner

java.lang.Object
  extended by function.BasicScalarFunction
      extended by function.VariableDomainScalarFunction
          extended by diviner.BasicBoundConstrainedDiviner
              extended by diviner.ImprovementDiviner
                  extended by diviner.PIDiviner
All Implemented Interfaces:
BoundConstrainedDiviner, Computable, ScalarFunction, VariableBounds, VariableInputDimension

public class PIDiviner
extends ImprovementDiviner

Implements a diviner based on probability of improvement. This implementation treats its ApproxModel as if it were a Gaussian Process regression.

Author:
dgorur

Field Summary
 
Fields inherited from class diviner.ImprovementDiviner
improvement, postMean, postStdDev, scaledImprovement
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
PIDiviner()
           
 
Method Summary
 double getTargetImprovement()
          Returns the target improvement.
 double quickCompute(double[] x)
          Compute method without dimension checking.
 void setTargetImprovement(double targetImprovement)
          Sets the target improvement.
 void setTargetObjective(double obj)
          Sets the value of the target objective desired.
 
Methods inherited from class diviner.ImprovementDiviner
evaluatePosterior, getTargetObjective
 
Methods inherited from class diviner.BasicBoundConstrainedDiviner
getObjectiveModel, init, setObjectiveModel
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface function.VariableBounds
setBounds
 
Methods inherited from interface function.ScalarFunction
compute, compute, compute, compute, quickCompute
 
Methods inherited from interface function.Computable
compute, compute, getBounds, getInputDimension, getOutputDimension, isWithinBounds
 

Constructor Detail

PIDiviner

public PIDiviner()
Method Detail

getTargetImprovement

public double getTargetImprovement()
Returns the target improvement.

Returns:
the target improvement.

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

setTargetImprovement

public void setTargetImprovement(double targetImprovement)
Sets the target improvement.

Parameters:
targetImprovement - the given target improvement.

setTargetObjective

public void setTargetObjective(double obj)
Description copied from class: ImprovementDiviner
Sets the value of the target objective desired.

Overrides:
setTargetObjective in class ImprovementDiviner
Parameters:
obj - desired value of objective.