viper.comparison.distances
Interface Distances.SmartValueDistance
- Enclosing interface:
- Distances
- public static interface Distances.SmartValueDistance
An extended distance function object that
can deal with both don't-care values and
blackout values.
Method Summary |
java.lang.Number |
helpGetDistance(java.lang.Object alphaVal,
java.lang.Object betaVal,
java.lang.Object blackoutVal,
java.lang.Object ignoreVal,
CanonicalFileDescriptor cfd)
Gets the distance between two values, with
some constraints. |
helpGetDistance
public java.lang.Number helpGetDistance(java.lang.Object alphaVal,
java.lang.Object betaVal,
java.lang.Object blackoutVal,
java.lang.Object ignoreVal,
CanonicalFileDescriptor cfd)
throws IgnoredValueException
- Gets the distance between two values, with
some constraints.
- Parameters:
alphaVal
- the targetbetaVal
- the candidateblackoutVal
- values here are badignoreVal
- values here don't mattercfd
- information about the media
- Returns:
- the distance
- Throws:
IgnoredValueException
- if nothing was evaluated
due to the size of the ignored region