distance method

double distance(
  1. ItemBoundable item1,
  2. ItemBoundable item2
)
override

Computes the distance between two items.

@param item1 @param item2 @return the distance between the items

@throws IllegalArgumentException if the metric is not applicable to the arguments

Implementation

double distance(ItemBoundable item1, ItemBoundable item2) {
  FacetSequence fs1 = item1.getItem() as FacetSequence;
  FacetSequence fs2 = item2.getItem() as FacetSequence;
  return fs1.distance(fs2);
}