edu.jhu.bme.smile.commons.optimize
Class ProjectNDto1DOptimizableDifferentiable

java.lang.Object
  extended by edu.jhu.bme.smile.commons.optimize.ProjectNDto1DOptimizable
      extended by edu.jhu.bme.smile.commons.optimize.ProjectNDto1DOptimizableDifferentiable
All Implemented Interfaces:
Optimizable1DContinuous, Optimizable1DContinuousDifferentiable

public class ProjectNDto1DOptimizableDifferentiable
extends ProjectNDto1DOptimizable
implements Optimizable1DContinuousDifferentiable

Projects a Differentiable ND function to 1D so that LineSearchNDDifferentiable can optimize in one dimension at a time.

Author:
Hanlin Wan

Constructor Summary
ProjectNDto1DOptimizableDifferentiable(OptimizableNDContinuousDifferentiable func)
          Constructor to create the projected differentiable function.
 
Method Summary
 double get2ndDerivative(double x)
          Gets the second derivative at location x in the current dimension.
 double getDerivative(double x)
          Gets the derivative at location x in the current dimension.
 
Methods inherited from class edu.jhu.bme.smile.commons.optimize.ProjectNDto1DOptimizable
getDomainMax, getDomainMin, getDomainTolerance, getNumberOfDimensions, getValue, setCurrentDimension, setCurrentLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.jhu.bme.smile.commons.optimize.Optimizable1DContinuous
getDomainMax, getDomainMin, getDomainTolerance, getValue
 

Constructor Detail

ProjectNDto1DOptimizableDifferentiable

public ProjectNDto1DOptimizableDifferentiable(OptimizableNDContinuousDifferentiable func)
Constructor to create the projected differentiable function.

Parameters:
func - differentiable function
Method Detail

get2ndDerivative

public double get2ndDerivative(double x)
Gets the second derivative at location x in the current dimension.

Specified by:
get2ndDerivative in interface Optimizable1DContinuousDifferentiable
Parameters:
x - location to evaluate derivative
Returns:
second derivative at x in the current dimension

getDerivative

public double getDerivative(double x)
Gets the derivative at location x in the current dimension.

Specified by:
getDerivative in interface Optimizable1DContinuousDifferentiable
Parameters:
x - location to evaluate derivative
Returns:
derivative at x in the current dimension