QueryProcessor.SF.ScoringFunction.HillClimbing
Class WrapperIRM

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

public class WrapperIRM
extends java.lang.Object

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


Constructor Summary
WrapperIRM()
           
 
Method Summary
static double distance(Image i1, Image i2, Matrix distances)
          Computes the IRM 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

WrapperIRM

public WrapperIRM()
Method Detail

distance

public static double distance(Image i1,
                              Image i2,
                              Matrix distances)
                       throws java.lang.Exception
Computes the IRM 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.