59 void reset(
int d=0,
int n=0,
int bs=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 ANNsampStat ann_rank_err
void operator+=(double x)
ANNsampStat ann_visit_nds
DLL_API void annResetStats(int data_size)
DLL_API void annUpdateStats()
DLL_API ANNsampStat ann_average_err
ANNsampStat ann_visit_shr
DLL_API void annPrintStats(ANNbool validate)
void reset(int d=0, int n=0, int bs=0)
ANNsampStat ann_visit_pts
ANNsampStat ann_visit_spl
ANNsampStat ann_coord_hts
ANNsampStat ann_visit_lfs
void merge(const ANNkdStats &st)
DLL_API void annResetCounts()
ANNsampStat ann_float_ops