viper.comparison.distances
Interface Distances.QuickValueDistance

Enclosing interface:
Distances

public static interface Distances.QuickValueDistance

Sometimes, it is convenient to save on computations for values that are compared over-and-over; this distance functor allows cacheing operations when performing multiple comparisons between the same attributes.


Method Summary
 java.lang.Number helpGetDistance(Measurable.Difference D)
          This computes the distances using the given, possibly already used, comparison object.
 

Method Detail

helpGetDistance

public java.lang.Number helpGetDistance(Measurable.Difference D)
This computes the distances using the given, possibly already used, comparison object.

Parameters:
D - the comparison object
Returns:
the new distance