queso-0.53.0
Public Member Functions | Public Attributes | List of all members
ANNkdStats Class Reference

#include <ANNperf.h>

Public Member Functions

void reset (int d=0, int n=0, int bs=0)
 
 ANNkdStats ()
 
void merge (const ANNkdStats &st)
 

Public Attributes

int dim
 
int n_pts
 
int bkt_size
 
int n_lf
 
int n_tl
 
int n_spl
 
int n_shr
 
int depth
 
float sum_ar
 
float avg_ar
 

Detailed Description

Definition at line 45 of file ANNperf.h.

Constructor & Destructor Documentation

ANNkdStats::ANNkdStats ( )
inline

Definition at line 66 of file ANNperf.h.

References reset().

67  { reset(); }
void reset(int d=0, int n=0, int bs=0)
Definition: ANNperf.h:59

Member Function Documentation

void ANNkdStats::merge ( const ANNkdStats st)

Definition at line 133 of file kd_tree.cpp.

References depth, MAX, n_lf, n_shr, n_spl, n_tl, and sum_ar.

Referenced by ANNbd_shrink::getStats(), and ANNkd_split::getStats().

134 {
135  n_lf += st.n_lf; n_tl += st.n_tl;
136  n_spl += st.n_spl; n_shr += st.n_shr;
137  depth = MAX(depth, st.depth);
138  sum_ar += st.sum_ar;
139 }
float sum_ar
Definition: ANNperf.h:55
int depth
Definition: ANNperf.h:54
int n_tl
Definition: ANNperf.h:51
int n_spl
Definition: ANNperf.h:52
int n_shr
Definition: ANNperf.h:53
int n_lf
Definition: ANNperf.h:50
#define MAX(a, b)
Definition: kd_tree.cpp:131
void ANNkdStats::reset ( int  d = 0,
int  n = 0,
int  bs = 0 
)
inline

Definition at line 59 of file ANNperf.h.

References avg_ar, bkt_size, depth, dim, n_lf, n_pts, n_shr, n_spl, n_tl, and sum_ar.

Referenced by ANNkdStats(), ANNbd_shrink::getStats(), ANNkd_leaf::getStats(), ANNkd_split::getStats(), and ANNkd_tree::getStats().

60  {
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;
64  }
int n_pts
Definition: ANNperf.h:48
float sum_ar
Definition: ANNperf.h:55
int depth
Definition: ANNperf.h:54
int n_tl
Definition: ANNperf.h:51
int dim
Definition: ANNperf.h:47
int n_spl
Definition: ANNperf.h:52
int n_shr
Definition: ANNperf.h:53
int bkt_size
Definition: ANNperf.h:49
float avg_ar
Definition: ANNperf.h:56
int n_lf
Definition: ANNperf.h:50

Member Data Documentation

float ANNkdStats::avg_ar

Definition at line 56 of file ANNperf.h.

Referenced by ANNkd_tree::getStats(), reset(), and treeStats().

int ANNkdStats::bkt_size

Definition at line 49 of file ANNperf.h.

Referenced by reset(), and treeStats().

int ANNkdStats::depth

Definition at line 54 of file ANNperf.h.

Referenced by ANNbd_shrink::getStats(), ANNkd_split::getStats(), merge(), reset(), and treeStats().

int ANNkdStats::dim

Definition at line 47 of file ANNperf.h.

Referenced by reset(), and treeStats().

int ANNkdStats::n_lf

Definition at line 50 of file ANNperf.h.

Referenced by ANNkd_leaf::getStats(), ANNkd_tree::getStats(), merge(), reset(), and treeStats().

int ANNkdStats::n_pts

Definition at line 48 of file ANNperf.h.

Referenced by reset(), and treeStats().

int ANNkdStats::n_shr

Definition at line 53 of file ANNperf.h.

Referenced by ANNbd_shrink::getStats(), merge(), reset(), and treeStats().

int ANNkdStats::n_spl

Definition at line 52 of file ANNperf.h.

Referenced by ANNkd_split::getStats(), merge(), reset(), and treeStats().

int ANNkdStats::n_tl

Definition at line 51 of file ANNperf.h.

Referenced by ANNkd_leaf::getStats(), merge(), reset(), and treeStats().

float ANNkdStats::sum_ar

Definition at line 55 of file ANNperf.h.

Referenced by ANNkd_leaf::getStats(), ANNkd_tree::getStats(), merge(), and reset().


The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:33 for queso-0.53.0 by  doxygen 1.8.5