de.unihalle.informatik.MiToBo.fields
Class VectorField2DPotentialFinder.PotentialFinderOptFunction

java.lang.Object
  extended by de.jstacs.algorithms.optimization.DifferentiableFunction
      extended by de.unihalle.informatik.MiToBo.fields.VectorField2DPotentialFinder.PotentialFinderOptFunction
All Implemented Interfaces:
de.jstacs.algorithms.optimization.Function
Enclosing class:
VectorField2DPotentialFinder

protected class VectorField2DPotentialFinder.PotentialFinderOptFunction
extends de.jstacs.algorithms.optimization.DifferentiableFunction

Optimization function for gradient-based potential reconstruction.

The class is derived from classed to be found in the Jstacs package to be found here: http://www.jstacs.de.

Author:
moeller

Field Summary
private  boolean ignoreBorder
          Flag to indicate how the border should be handled.
 
Constructor Summary
VectorField2DPotentialFinder.PotentialFinderOptFunction(boolean ignBorder)
          Default constructor.
 
Method Summary
 double evaluateFunction(double[] xval)
           
 double[] evaluateGradientOfFunction(double[] xval)
           
 int getDimensionOfScope()
           
 
Methods inherited from class de.jstacs.algorithms.optimization.DifferentiableFunction
findOneDimensionalMin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreBorder

private boolean ignoreBorder
Flag to indicate how the border should be handled.

Constructor Detail

VectorField2DPotentialFinder.PotentialFinderOptFunction

public VectorField2DPotentialFinder.PotentialFinderOptFunction(boolean ignBorder)
Default constructor.

Parameters:
ignBorder - If true, border pixels are ignored.
Method Detail

evaluateFunction

public double evaluateFunction(double[] xval)

evaluateGradientOfFunction

public double[] evaluateGradientOfFunction(double[] xval)
Specified by:
evaluateGradientOfFunction in class de.jstacs.algorithms.optimization.DifferentiableFunction

getDimensionOfScope

public int getDimensionOfScope()