viper.comparison.distances
Interface Distances.ValueDistance

Enclosing interface:
Distances

public static interface Distances.ValueDistance

An interface for simplifying implementation of a distance metric; instead of implementing all of AttrDistance, you can just pass this to Distances.HelperAttrDistance. There are also wrappers for MeasureDistance and regular Distance function objects.


Method Summary
 java.lang.Number helpGetDistance(java.lang.Object alphaVal, java.lang.Object betaVal, CanonicalFileDescriptor cfd)
          Gets the distance between two instances of the appropriate attribute data type.
 

Method Detail

helpGetDistance

public java.lang.Number helpGetDistance(java.lang.Object alphaVal,
                                        java.lang.Object betaVal,
                                        CanonicalFileDescriptor cfd)
Gets the distance between two instances of the appropriate attribute data type.

Parameters:
alphaVal - the target
betaVal - the candidate
cfd - information about the media file
Returns:
the distance between alpha and beta