77 #define DLL_API __declspec(dllexport) 79 #define DLL_API __declspec(dllimport) 112 #ifdef ANN_NO_LIMITS_H // limits.h unavailable 121 #define ANNversion "1.1.2" // ANN version and information 122 #define ANNversionCmt "" 123 #define ANNcopyright "David M. Mount and Sunil Arya" 124 #define ANNlatestRev "Jan 27, 2010" 219 #ifdef DBL_DIG // number of sig. bits in ANNcoord 336 #define ANN_POW(v) ((v)*(v)) 337 #define ANN_ROOT(x) sqrt(x) 338 #define ANN_SUM(x,y) ((x) + (y)) 339 #define ANN_DIFF(x,y) ((y) - (x)) 495 virtual void annkSearch(
503 virtual int annkFRSearch(
512 virtual int theDim() = 0;
513 virtual int nPoints() = 0;
780 virtual void getStats(
virtual void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)=0
const ANNidx ANN_NULL_IDX
const ANNbool ANN_ALLOW_SELF_MATCH
const ANNdist ANN_DIST_INF
ANNpointArray thePoints()
const int ANN_N_SHRINK_RULES
DLL_API ANNpointArray annAllocPts(int n, int dim)
ANNpointArray thePoints()
DLL_API void annDeallocPts(ANNpointArray &pa)
DLL_API ANNpoint annCopyPt(int dim, ANNpoint source)
ANNbd_tree(int n, int dd, int bs=1)
DLL_API ANNpoint annAllocPt(int dim, ANNcoord c=0)
DLL_API void annDeallocPt(ANNpoint &p)
const int ANN_N_SPLIT_RULES
virtual int annkFRSearch(ANNpoint q, ANNdist sqRad, int k=0, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0)=0
DLL_API void annMaxPtsVisit(int maxPts)
DLL_API ANNdist annDist(int dim, ANNpoint p, ANNpoint q)