156157158159160161162
return sqrDist; } @Override public DoubleDistance centerDistance(SpatialComparable mbr1, SpatialComparable mbr2) { return new DoubleDistance(doubleCenterDistance(mbr1, mbr2)); }
161162163164165166167
return new DoubleDistance(doubleCenterDistance(mbr1, mbr2)); } @Override public DoubleDistance minDist(SpatialComparable mbr1, SpatialComparable mbr2) { return new DoubleDistance(doubleMinDist(mbr1, mbr2)); }
51525354555657
return TypeUtil.NUMBER_VECTOR_FIELD; } @Override public final DoubleDistance distance(NumberVector<?, ?> o1, NumberVector<?, ?> o2) { return new DoubleDistance(doubleDistance(o1, o2)); }
157158159160161162163
return sumDist; } @Override public DoubleDistance minDist(SpatialComparable mbr1, SpatialComparable mbr2) { return new DoubleDistance(doubleMinDist(mbr1, mbr2)); }
162163164165166167168
return new DoubleDistance(doubleMinDist(mbr1, mbr2)); } @Override public DoubleDistance centerDistance(SpatialComparable mbr1, SpatialComparable mbr2) { return new DoubleDistance(doubleCenterDistance(mbr1, mbr2)); }
108109110111112113114
return max; } @Override public DoubleDistance minDist(SpatialComparable mbr1, SpatialComparable mbr2) { return new DoubleDistance(doubleMinDist(mbr1, mbr2)); }
113114115116117118119
71727374757677
} // Symmetry if(c > 0) { return distance(o2, o1); } return new DoubleDistance(pseudoRandom(seed, Util.mixHashCodes(o1.hashCode(), o2.hashCode(), (int) seed))); }
63646566676869
this.dimensions = dimensions; } @Override public DoubleDistance distance(V o1, V o2) { return new DoubleDistance(doubleDistance(o1, o2)); }
121122123124125126127
return Math.abs(manhattan); } @Override public DoubleDistance distance(NumberVector<?, ?> o1, NumberVector<?, ?> o2) { return new DoubleDistance(doubleDistance(o1, o2)); }