code: protected double distance(DBIDRef a, DBIDRef b) {
      ++distComputations;
      return distanceQuery.distance(a, b);
    }
docs: Compute a distance (and count).
  
  @param a Object reference
  @param b Object reference
  @return Distance