max_dist in search function
traum100 opened this issue · 1 comments
traum100 commented
Thanks for releasing great works.
"ikd_Tree.cpp", 886 line.
if (dist <= max_dist && (q.size() < k_nearest || dist < q.top().dist))
is it right?
or
if (dist <= max_dist*max_dist && (q.size() < k_nearest || dist < q.top().dist))
Ecstasy-EC commented
It should be max_dist * max_dist
in that line. I have fixed the bugs on all the branches.
Many thanks for your careful reading and your notice!