25 #include "kd_pr_search.h"
123 np->ann_pri_search(box_dist);
126 for (
int i = 0; i < k; i++) {
139 void ANNkd_split::ann_pri_search(
ANNdist box_dist)
150 new_dist = (
ANNdist) ANN_SUM(box_dist,
151 ANN_DIFF(ANN_POW(box_diff), ANN_POW(cut_diff)));
156 child[
ANN_LO]->ann_pri_search(box_dist);
163 new_dist = (
ANNdist) ANN_SUM(box_dist,
164 ANN_DIFF(ANN_POW(box_diff), ANN_POW(cut_diff)));
169 child[
ANN_HI]->ann_pri_search(box_dist);
181 void ANNkd_leaf::ann_pri_search(
ANNdist box_dist)
192 for (
int i = 0; i < n_pts; i++) {
202 t = *(qq++) - *(pp++);
204 if( (dist = ANN_SUM(dist, ANN_POW(t))) > min_dist) {
void annkPriSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)
McOptionsValues::McOptionsValues(#ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS const SsOptionsValues *alternativePSsOptionsValues, const SsOptionsValues *alternativeQSsOptionsValues#endif if)(m_alternativeQSsOptionsValues=*alternativeQSsOptionsValues)
ANNdist annBoxDistance(const ANNpoint q, const ANNpoint lo, const ANNpoint hi, int dim)
const ANNbool ANN_ALLOW_SELF_MATCH