Permalink
Browse files

Fixed missing distance in kNN results for PhTreeF

  • Loading branch information...
tzaeschke committed Sep 17, 2017
1 parent e32517e commit e23cb45f48c7b5afdb62248904a18fe20e2b03d1
Showing with 10 additions and 1 deletion.
  1. +6 −0 CHANGELOG
  2. +3 −0 README.md
  3. +1 −1 src/main/java/ch/ethz/globis/phtree/PhTreeF.java
View
@@ -1,3 +1,9 @@
2017-09-17
==========
- (TZ) Fixed bug PhTreeF kNN: distance was not returned.
2017-01-08
==========
- (TZ) Fixed bug in CritBit (used by old PH-Tree), see
View
@@ -26,6 +26,9 @@ Maven:
A C++ version of the PH-Tree (with slightly different design) is available [here](https://github.com/mcxme/phtree).
**_Other spatial indexes can be found in the [TinSpin spatial index collection](https://github.com/tzaeschke/tinspin-indexes)._**
# News
### 2017-03-05
@@ -355,7 +355,7 @@ protected PhKnnQueryF(PhKnnQuery<T> iter, int dims, PreProcessorPointF pre) {
public PhEntryDistF<T> nextEntryReuse() {
PhEntryDist<T> e = q.nextEntryReuse();
pre.post(e.getKey(), buffer.getKey());
buffer.setValue( e.getValue() );
buffer.set( e.getValue(), e.dist() );
return buffer;
}

0 comments on commit e23cb45

Please sign in to comment.