queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
ANNx.h File Reference

Go to the source code of this file.

Classes

class  ANNorthRect
 
class  ANNorthHalfSpace
 

Typedefs

typedef ANNorthHalfSpaceANNorthHSArray
 

Enumerations

enum  { ANN_LO =0, ANN_HI =1 }
 
enum  { ANN_IN =0, ANN_OUT =1 }
 
enum  ANNerr { ANNwarn = 0, ANNabort = 1 }
 

Functions

void annError (const char *msg, ANNerr level)
 
void annPrintPt (ANNpoint pt, int dim, std::ostream &out)
 
void annAssignRect (int dim, ANNorthRect &dest, const ANNorthRect &source)
 

Variables

int ANNmaxPtsVisited
 
int ANNptsVisited
 

Typedef Documentation

Definition at line 167 of file ANNx.h.

Enumeration Type Documentation

anonymous enum
Enumerator
ANN_LO 
ANN_HI 

Definition at line 45 of file ANNx.h.

45 {ANN_LO=0, ANN_HI=1}; // splitting indices
Definition: ANNx.h:45
Definition: ANNx.h:45
anonymous enum
Enumerator
ANN_IN 
ANN_OUT 

Definition at line 46 of file ANNx.h.

46 {ANN_IN=0, ANN_OUT=1}; // shrinking indices
Definition: ANNx.h:46
Definition: ANNx.h:46
enum ANNerr
Enumerator
ANNwarn 
ANNabort 

Definition at line 48 of file ANNx.h.

48 {ANNwarn = 0, ANNabort = 1};
Definition: ANNx.h:48
Definition: ANNx.h:48

Function Documentation

void annAssignRect ( int  dim,
ANNorthRect dest,
const ANNorthRect source 
)

Definition at line 148 of file ANN.cpp.

References dim, ANNorthRect::hi, and ANNorthRect::lo.

Referenced by annBnds2Box(), and tryCentroidShrink().

149 {
150  for (int i = 0; i < dim; i++) {
151  dest.lo[i] = source.lo[i];
152  dest.hi[i] = source.hi[i];
153  }
154 }
ANNpoint hi
Definition: ANNx.h:94
ANNpoint lo
Definition: ANNx.h:93
int dim
Definition: ann_test.cpp:472
void annError ( const char *  msg,
ANNerr  level 
)

Definition at line 169 of file ANN.cpp.

References ANNabort.

Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree::ANNkd_tree(), ANNbruteForce::annkSearch(), ANNkd_tree::annkSearch(), annReadDump(), annReadTree(), and selectDecomp().

170 {
171  if (level == ANNabort) {
172  cerr << "ANN: ERROR------->" << msg << "<-------------ERROR\n";
173  exit(1);
174  }
175  else {
176  cerr << "ANN: WARNING----->" << msg << "<-------------WARNING\n";
177  }
178 }
Definition: ANNx.h:48
void annPrintPt ( ANNpoint  pt,
int  dim,
std::ostream &  out 
)

Definition at line 70 of file ANN.cpp.

References dim.

Referenced by ANNkd_tree::Dump(), and ANNkd_tree::Print().

74 {
75  for (int j = 0; j < dim; j++) {
76  out << pt[j];
77  if (j < dim-1) out << " ";
78  }
79 }
int dim
Definition: ann_test.cpp:472

Variable Documentation

int ANNmaxPtsVisited

Definition at line 190 of file ANN.cpp.

Referenced by ANNkd_tree::annkPriSearch(), and annMaxPtsVisit().

int ANNptsVisited

Definition at line 191 of file ANN.cpp.

Referenced by ANNkd_tree::annkPriSearch(), and ANNkd_tree::annkSearch().


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