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
360 #define ANN_POW(v) fabs(v)
361 #define ANN_ROOT(x) (x)
362 #define ANN_SUM(x,y) ((x) > (y) ? (x) : (y))
363 #define ANN_DIFF(x,y) (y)
495 virtual void annkSearch(
503 virtual int annkFRSearch(
512 virtual int theDim() = 0;
513 virtual int nPoints() = 0;
780 virtual void getStats(
DLL_API void annDeallocPt(ANNpoint &p)
const int ANN_N_SPLIT_RULES
ANNbd_tree(int n, int dd, int bs=1)
ANNpointArray thePoints()
virtual int annkFRSearch(ANNpoint q, ANNdist sqRad, int k=0, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0)=0
const ANNidx ANN_NULL_IDX
const int ANN_N_SHRINK_RULES
virtual void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)=0
DLL_API void annDeallocPts(ANNpointArray &pa)
DLL_API ANNpoint annAllocPt(int dim, ANNcoord c=0)
DLL_API ANNdist annDist(int dim, ANNpoint p, ANNpoint q)
DLL_API ANNpoint annCopyPt(int dim, ANNpoint source)
DLL_API void annMaxPtsVisit(int maxPts)
ANNpointArray thePoints()
DLL_API ANNpointArray annAllocPts(int n, int dim)
const ANNbool ANN_ALLOW_SELF_MATCH
const ANNdist ANN_DIST_INF