net.sourceforge.jannealer.test
Class InverseObjectiveFunction

java.lang.Object
  |
  +--net.sourceforge.jannealer.test.InverseObjectiveFunction
All Implemented Interfaces:
ObjectiveFunction

public final class InverseObjectiveFunction
extends java.lang.Object
implements ObjectiveFunction

Normally this would just be an anonymous class, but we're using it from two classes.


Method Summary
 double distance(double[] arg)
           
 int getNdim()
          Returns the number of dimensions for the objective function implemented
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNdim

public int getNdim()
Description copied from interface: ObjectiveFunction
Returns the number of dimensions for the objective function implemented

Specified by:
getNdim in interface ObjectiveFunction
Returns:
The Ndim value

distance

public double distance(double[] arg)
Specified by:
distance in interface ObjectiveFunction
Parameters:
arg - arguments to distance function
Returns:
Calculates distance. The tolerance/spread refers to the return value from this function.