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. |
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 targetbetaVal - the candidatecfd - information about the media file
- Returns:
- the distance between alpha and beta