59 void reset(
int d=0,
int n=0,
int bs=0)
61 dim =
d; n_pts = n; bkt_size = bs;
62 n_lf = n_tl = n_spl = n_shr = depth = 0;
63 sum_ar = avg_ar = 0.0;
103 n++; sum += x; sum2 += x*x;
104 if (x < minVal) minVal = x;
105 if (x > maxVal) maxVal = x;
110 double mean() {
return sum/n; }
113 double stdDev() {
return sqrt((sum2 - (sum*sum)/n)/(n-1));}
115 double min() {
return minVal; }
116 double max() {
return maxVal; }
124 #define ANN_FLOP(n) {ann_Nfloat_ops += (n);} 125 #define ANN_LEAF(n) {ann_Nvisit_lfs += (n);} 126 #define ANN_SPL(n) {ann_Nvisit_spl += (n);} 127 #define ANN_SHR(n) {ann_Nvisit_shr += (n);} 128 #define ANN_PTS(n) {ann_Nvisit_pts += (n);} 129 #define ANN_COORD(n) {ann_Ncoord_hts += (n);}
DLL_API void annUpdateStats()
void reset(int d=0, int n=0, int bs=0)
DLL_API void annPrintStats(ANNbool validate)
ANNsampStat ann_float_ops
ANNsampStat ann_coord_hts
ANNsampStat ann_visit_spl
ANNsampStat ann_visit_nds
ANNsampStat ann_visit_pts
ANNsampStat ann_visit_shr
DLL_API ANNsampStat ann_rank_err
ANNsampStat ann_visit_lfs
DLL_API void annResetStats(int data_size)
void operator+=(double x)
void merge(const ANNkdStats &st)
DLL_API ANNsampStat ann_average_err
DLL_API void annResetCounts()