QueryProcessor.SF.ScoringFunction
Class ScoringFunctionMIN

java.lang.Object
  extended by QueryProcessor.SF.ScoringFunction.ScoringFunction
      extended by QueryProcessor.SF.ScoringFunction.ScoringFunctionMIN

public class ScoringFunctionMIN
extends ScoringFunction

Class for computing the MIN scoring function.


Constructor Summary
ScoringFunctionMIN()
           
 
Method Summary
 double distance(Image i1, Image i2, Matrix distances)
          Computes the distance between two images given the matrix of distances between images' regions.
 double threshold(Image query, double[] thresholds)
          Computes the threshold value for a query image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoringFunctionMIN

public ScoringFunctionMIN()
Method Detail

distance

public double distance(Image i1,
                       Image i2,
                       Matrix distances)
Computes the distance between two images given the matrix of distances between images' regions.

Specified by:
distance in class ScoringFunction
Parameters:
i1 - First image.
i2 - Second image.
distances - Matrix containing distance values between images' regions.
Returns:
The distance between the two given images.

threshold

public double threshold(Image query,
                        double[] thresholds)
Computes the threshold value for a query image.

Specified by:
threshold in class ScoringFunction
Parameters:
query - The query image.
thresholds - Array of values corresponding to threshold values for individual region sorted accesses.
Returns:
The threshold value.