viper.comparison.distances
Interface AttrDistance
- All Superinterfaces:
- Distance
- All Known Implementing Classes:
- Distances.HelperAttrDistance
- public interface AttrDistance
- extends Distance
Like Filterable, Distances are a way of associating
distance with data.
|
Method Summary |
java.lang.Number |
getDistance(Attribute alpha,
FrameSpan alphaSpan,
Attribute beta,
FrameSpan betaSpan,
Attribute blackout,
FrameSpan blackoutSpan,
Attribute ignore,
FrameSpan ignoreSpan,
int frame,
CanonicalFileDescriptor cfd)
Compute the distance, with blackout and ignore.
|
java.lang.Number |
getDistance(Attribute alpha,
FrameSpan alphaSpan,
Attribute beta,
FrameSpan betaSpan,
int frame,
CanonicalFileDescriptor cfd)
Compute the distance. |
getDistance
public java.lang.Number getDistance(Attribute alpha,
FrameSpan alphaSpan,
Attribute beta,
FrameSpan betaSpan,
int frame,
CanonicalFileDescriptor cfd)
- Compute the distance.
- Parameters:
alpha - the alpha attributealphaSpan - the alpha attribute's spanbeta - the beta attributebetaSpan - the beta attribute's spanframe - the frame to get the distance incfd - the source media
- Returns:
- the distance
getDistance
public java.lang.Number getDistance(Attribute alpha,
FrameSpan alphaSpan,
Attribute beta,
FrameSpan betaSpan,
Attribute blackout,
FrameSpan blackoutSpan,
Attribute ignore,
FrameSpan ignoreSpan,
int frame,
CanonicalFileDescriptor cfd)
throws IgnoredValueException
- Compute the distance, with blackout and ignore.
Note that blackout and ignore may be set to
null
if there is nothing to black out or ignore.
- Parameters:
alpha - the alpha attributealphaSpan - the alpha attribute's spanbeta - the beta attributebetaSpan - the beta attribute's spanblackout - the blackout regionblackoutSpan - the blackout region's spanignore - the region to ignoreignoreSpan - the ignored region's spanframe - the frame to get the distance incfd - the source media
- Returns:
- the distance, given the constraints
- Throws:
IgnoredValueException - when the ignored region is such that
it prevents evaluation of the distance.