QueryProcessor.SF.ScoringFunction.Hungarian
Class WrapperAVG

java.lang.Object
  extended by QueryProcessor.SF.ScoringFunction.Hungarian.WrapperAVG

public class WrapperAVG
extends java.lang.Object

Wrapper class for computing the average distance.


Constructor Summary
WrapperAVG()
           
 
Method Summary
static double distance(Matrix costs)
          Computes the average distance given the matrix of distances between images' regions.
static Matrix matrixComplete(Matrix costs)
          Completes the costs matrix to obtain a square one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperAVG

public WrapperAVG()
Method Detail

matrixComplete

public static Matrix matrixComplete(Matrix costs)
Completes the costs matrix to obtain a square one.

Parameters:
costs - Costs matrix.
Returns:
Squared matrix, obtained by adding rows/columns set to 0.

distance

public static double distance(Matrix costs)
Computes the average distance given the matrix of distances between images' regions.

Parameters:
costs - Distance matrix.
Returns:
The distance between the images.