113 for (
int i = 0; i <
k; i++) {
143 if (box_dist * ANNkdMaxErr < ANNkdPointMK->max_key())
158 if (box_dist * ANNkdMaxErr < ANNkdPointMK->max_key())
181 min_dist = ANNkdPointMK->
max_key();
183 for (
int i = 0; i <
n_pts; i++) {
193 t = *(qq++) - *(pp++);
203 ANNkdPointMK->
insert(dist, bkt[i]);
204 min_dist = ANNkdPointMK->
max_key();
virtual void ann_search(ANNdist)
virtual void ann_search(ANNdist)=0
void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)
const ANNbool ANN_ALLOW_SELF_MATCH
void annError(const char *msg, ANNerr level)
virtual void ann_search(ANNdist)
void insert(PQKkey kv, PQKinfo inf)
PQKinfo ith_smallest_info(int i)
ANNdist annBoxDistance(const ANNpoint q, const ANNpoint lo, const ANNpoint hi, int dim)
PQKkey ith_smallest_key(int i)