QueryProcessor.SF.ScoringFunction
Class ScoringFunctionAVG

java.lang.Object
  extended by QueryProcessor.SF.ScoringFunction.ScoringFunction
      extended by QueryProcessor.SF.ScoringFunction.ScoringFunctionAVG
Direct Known Subclasses:
ScoringFunctionAVGGreedy

public class ScoringFunctionAVG
extends ScoringFunction

Class for computing the average scoring function using the optimal assignment algorithm.


Constructor Summary
ScoringFunctionAVG()
           
 
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

ScoringFunctionAVG

public ScoringFunctionAVG()
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.