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.
 

Method Detail

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 target
betaVal - the candidate
blackoutVal - values here are bad
ignoreVal - values here don't matter
cfd - information about the media
Returns:
the distance
Throws:
IgnoredValueException - if nothing was evaluated due to the size of the ignored region