queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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, n_lf, n_shr, n_spl, n_tl, and sum_ar.

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
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(), 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 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_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 merge(), reset(), and treeStats().

int ANNkdStats::n_spl

Definition at line 52 of file ANNperf.h.

Referenced by merge(), reset(), and treeStats().

int ANNkdStats::n_tl

Definition at line 51 of file ANNperf.h.

Referenced by merge(), reset(), and treeStats().

float ANNkdStats::sum_ar

Definition at line 55 of file ANNperf.h.

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


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

Generated on Tue Jun 5 2018 19:48:57 for queso-0.57.1 by  doxygen 1.8.5