Switched around incorrect order of sqRad and k in the call to fixed radius search
authorDmitriy Morozov <dmitriy@mrzv.org>
Thu, 18 Jun 2009 13:20:26 -0700
changeset 5 4aed2049d9cc
parent 4 d88e548a9aeb
child 6 e34a29c36f13
Switched around incorrect order of sqRad and k in the call to fixed radius search
ann-kd-tree.cpp
--- a/ann-kd-tree.cpp	Thu Jun 18 13:03:18 2009 -0700
+++ b/ann-kd-tree.cpp	Thu Jun 18 13:20:26 2009 -0700
@@ -60,7 +60,7 @@
     ANNidxArray     nn_idx  = new ANNidx[k];
     ANNdistArray    dists   = new ANNdist[k];
 
-    int kball = kdtree.annkFRSearch(annq, k, sqRad, nn_idx, dists, eps);
+    int kball = kdtree.annkFRSearch(annq, sqRad, k, nn_idx, dists, eps);
 
     bp::list indices, distances;
     for (unsigned i = 0; i < k; ++i)