Skip to content

Commit

Permalink
BallTree WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaeschke committed Aug 11, 2024
1 parent d6cf965 commit 4da0dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void findNextElement() {
if (distL <= maxNodeDist) {
queueN.push(new NodeDistT(distL, leftChild));
}
BTNode rightChild = node.getLeftChild();
BTNode rightChild = node.getRightChild();
double distR = distFn.dist(center, rightChild.getCenter()) - rightChild.getRadius();
if (distR <= maxNodeDist) {
queueN.push(new NodeDistT(distR, rightChild));
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/tinspin/index/test/PointMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void smokeTest(List<Entry> data) {
}

if (candidate != IDX.COVER && candidate != IDX.KDTREE && candidate != IDX.QUAD_PLAIN
&& candidate != IDX.QUAD_HC && candidate != IDX.QUAD_HC2) {
&& candidate != IDX.QUAD_HC && candidate != IDX.QUAD_HC2 && candidate != IDX.BALL) {
int nExtent = 0;
PointIterator<Entry> extent = tree.iterator();
while (extent.hasNext()) {
Expand Down

0 comments on commit 4da0dff

Please sign in to comment.