QueryProcessor.SF.ScoringFunction.HillClimbing
Class WrapperAVGGreedy

java.lang.Object
  extended by QueryProcessor.SF.ScoringFunction.HillClimbing.WrapperAVGGreedy

public class WrapperAVGGreedy
extends java.lang.Object

Wrapper class for computing the average scoring function using the hill climbing algorithm.


Constructor Summary
WrapperAVGGreedy()
           
 
Method Summary
static double distance(Image i1, Image i2, Matrix distances)
          Computes the greedy average distance between two images given the matrix of distances between images' regions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperAVGGreedy

public WrapperAVGGreedy()
Method Detail

distance

public static double distance(Image i1,
                              Image i2,
                              Matrix distances)
                       throws java.lang.Exception
Computes the greedy average distance between two images given the matrix of distances between images' regions.

Parameters:
i1 - First image.
i2 - Second image.
distances - Matrix containing distance values between images' regions.
Returns:
The distance between the images.
Throws:
java.lang.Exception - If the specified distance matrix is invalid.