63 #if( defined( _WIN32 ) || defined( WIN32 ) ) 78 #define DLL_API __declspec( dllexport ) 80 #define DLL_API __declspec( dllimport ) 113 #ifdef ANN_NO_LIMITS_H // limits.h unavailable 119 const double ANN_DBL_MAX = DBL_MAX;
122 #define ANNversion "1.0" // ANN version and information 123 #define ANNversionCmt "" 124 #define ANNcopyright "David M. Mount and Sunil Arya" 125 #define ANNlatestRev "Mar 1, 2005" 220 #ifdef DBL_DIG // number of sig. bits in ANNcoord 223 const int ANNcoordPrec = 15;
339 #define ANN_POW(v) ((v)*(v)) 340 #define ANN_ROOT(x) sqrt(x) 341 #define ANN_SUM(x,y) ((x) + (y)) 342 #define ANN_DIFF(x,y) ((y) - (x)) 498 virtual void annkSearch(
506 virtual int annkFRSearch(
515 virtual int theDim() = 0;
516 virtual int nPoints() = 0;
783 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)