97#define ANNversion "1.1.2"
98#define ANNversionCmt ""
99#define ANNcopyright "David M. Mount and Sunil Arya"
100#define ANNlatestRev "Jan 27, 2010"
314#define ANN_POW(v) ((v)*(v))
315#define ANN_ROOT(x) sqrt(x)
316#define ANN_SUM(x,y) ((x) + (y))
317#define ANN_DIFF(x,y) ((y) - (x))
ANNLIB_EXPORT void annClose()
ANNLIB_EXPORT ANNpoint annCopyPt(int dim, ANNpoint source)
const int ANN_N_SPLIT_RULES
ANNLIB_EXPORT void annMaxPtsVisit(int maxPts)
const int ANN_N_SHRINK_RULES
ANNLIB_EXPORT void annDeallocPts(ANNpointArray &pa)
const ANNdist ANN_DIST_INF
ANNLIB_EXPORT ANNpointArray annAllocPts(int n, int dim)
ANNLIB_EXPORT ANNdist annDist(int dim, ANNpoint p, ANNpoint q)
const ANNidx ANN_NULL_IDX
ANNLIB_EXPORT void annDeallocPt(ANNpoint &p)
ANNLIB_EXPORT ANNpoint annAllocPt(int dim, ANNcoord c=0)
const ANNbool ANN_ALLOW_SELF_MATCH
ANNbd_tree(int n, int dd, int bs=1)
ANNbd_tree(std::istream &in)
ANNbd_tree(ANNpointArray pa, int n, int dd, int bs=1, ANNsplitRule split=ANN_KD_SUGGEST, ANNshrinkRule shrink=ANN_BD_SUGGEST)
int annkFRSearch(ANNpoint q, ANNdist sqRad, int k=0, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0)
ANNpointArray thePoints()
void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)
ANNbruteForce(ANNpointArray pa, int n, int dd)
virtual void getStats(ANNkdStats &st)
ANNkd_tree(std::istream &in)
void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)
ANNkd_tree(int n=0, int dd=0, int bs=1)
void annkPriSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)
virtual void Dump(ANNbool with_pts, std::ostream &out)
ANNpointArray thePoints()
int annkFRSearch(ANNpoint q, ANNdist sqRad, int k, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0)
virtual void Print(ANNbool with_pts, std::ostream &out)
ANNkd_tree(ANNpointArray pa, int n, int dd, int bs=1, ANNsplitRule split=ANN_KD_SUGGEST)
void SkeletonTree(int n, int dd, int bs, ANNpointArray pa=NULL, ANNidxArray pi=NULL)
virtual int annkFRSearch(ANNpoint q, ANNdist sqRad, int k=0, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0)=0
virtual ANNpointArray thePoints()=0
virtual void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)=0