queso-0.53.0
|
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cstring>
#include <climits>
#include <cfloat>
Go to the source code of this file.
Classes | |
class | ANNpointSet |
class | ANNbruteForce |
class | ANNkd_tree |
class | ANNbd_tree |
Macros | |
#define | DLL_API |
#define | ANNversion "1.1.2" |
#define | ANNversionCmt "" |
#define | ANNcopyright "David M. Mount and Sunil Arya" |
#define | ANNlatestRev "Jan 27, 2010" |
#define | ANN_POW(v) fabs(v) |
#define | ANN_ROOT(x) (x) |
#define | ANN_SUM(x, y) ((x) > (y) ? (x) : (y)) |
#define | ANN_DIFF(x, y) (y) |
Typedefs | |
typedef double | ANNcoord |
typedef double | ANNdist |
typedef int | ANNidx |
typedef ANNcoord * | ANNpoint |
typedef ANNpoint * | ANNpointArray |
typedef ANNdist * | ANNdistArray |
typedef ANNidx * | ANNidxArray |
typedef ANNkd_node * | ANNkd_ptr |
Enumerations | |
enum | ANNbool { ANNfalse = 0, ANNtrue = 1 } |
enum | ANNsplitRule { ANN_KD_STD = 0, ANN_KD_MIDPT = 1, ANN_KD_FAIR = 2, ANN_KD_SL_MIDPT = 3, ANN_KD_SL_FAIR = 4, ANN_KD_SUGGEST = 5 } |
enum | ANNshrinkRule { ANN_BD_NONE = 0, ANN_BD_SIMPLE = 1, ANN_BD_CENTROID = 2, ANN_BD_SUGGEST = 3 } |
Functions | |
DLL_API ANNdist | annDist (int dim, ANNpoint p, ANNpoint q) |
DLL_API ANNpoint | annAllocPt (int dim, ANNcoord c=0) |
DLL_API ANNpointArray | annAllocPts (int n, int dim) |
DLL_API void | annDeallocPt (ANNpoint &p) |
DLL_API void | annDeallocPts (ANNpointArray &pa) |
DLL_API ANNpoint | annCopyPt (int dim, ANNpoint source) |
DLL_API void | annMaxPtsVisit (int maxPts) |
DLL_API void | annClose () |
Variables | |
const double | ANN_DBL_MAX = DBL_MAX |
const ANNidx | ANN_NULL_IDX = -1 |
const ANNdist | ANN_DIST_INF = ANN_DBL_MAX |
const int | ANNcoordPrec = 15 |
const ANNbool | ANN_ALLOW_SELF_MATCH = ANNtrue |
const int | ANN_N_SPLIT_RULES = 6 |
const int | ANN_N_SHRINK_RULES = 4 |
#define ANN_DIFF | ( | x, | |
y | |||
) | (y) |
Definition at line 363 of file ANN.h.
Referenced by ANNkd_split::ann_FR_search(), ANNkd_split::ann_pri_search(), and ANNkd_split::ann_search().
#define ANN_POW | ( | v | ) | fabs(v) |
Definition at line 360 of file ANN.h.
Referenced by ANNkd_leaf::ann_FR_search(), ANNkd_split::ann_FR_search(), ANNkd_leaf::ann_pri_search(), ANNkd_split::ann_pri_search(), ANNkd_leaf::ann_search(), ANNkd_split::ann_search(), annBoxDistance(), annDist(), ANNkd_tree::annkFRSearch(), ANNkd_tree::annkPriSearch(), ANNkd_tree::annkSearch(), ANNorthHalfSpace::dist(), getTrueNN(), and main().
#define ANN_ROOT | ( | x | ) | (x) |
Definition at line 361 of file ANN.h.
Referenced by doValidation(), and main().
#define ANN_SUM | ( | x, | |
y | |||
) | ((x) > (y) ? (x) : (y)) |
Definition at line 362 of file ANN.h.
Referenced by ANNbd_shrink::ann_FR_search(), ANNkd_leaf::ann_FR_search(), ANNkd_split::ann_FR_search(), ANNbd_shrink::ann_pri_search(), ANNkd_leaf::ann_pri_search(), ANNkd_split::ann_pri_search(), ANNbd_shrink::ann_search(), ANNkd_leaf::ann_search(), ANNkd_split::ann_search(), annBoxDistance(), and annDist().
#define ANNcopyright "David M. Mount and Sunil Arya" |
#define ANNversion "1.1.2" |
Definition at line 121 of file ANN.h.
Referenced by ANNkd_tree::Dump(), main(), and ANNkd_tree::Print().
typedef ANNdist* ANNdistArray |
typedef ANNidx* ANNidxArray |
typedef ANNkd_node* ANNkd_ptr |
typedef ANNpoint* ANNpointArray |
enum ANNbool |
enum ANNshrinkRule |
enum ANNsplitRule |
Definition at line 110 of file ANN.cpp.
References dim.
Referenced by ANNorthRect::ANNorthRect(), annReadDump(), and main().
DLL_API ANNpointArray annAllocPts | ( | int | n, |
int | dim | ||
) |
Definition at line 117 of file ANN.cpp.
References dim.
Referenced by annClusEllipsoids(), annClusGaussPts(), annClusOrthFlats(), annReadDump(), generatePts(), main(), readANN(), and readPts().
Definition at line 140 of file ANN.cpp.
References dim.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree::ANNkd_tree(), and ANNorthRect::ANNorthRect().
Definition at line 127 of file ANN.cpp.
Referenced by ANNkd_tree::~ANNkd_tree(), and ANNorthRect::~ANNorthRect().
DLL_API void annDeallocPts | ( | ANNpointArray & | pa | ) |
Definition at line 133 of file ANN.cpp.
Referenced by annClusEllipsoids(), annClusGaussPts(), annClusOrthFlats(), generatePts(), main(), and readPts().
Definition at line 46 of file ANN.cpp.
References ANN_COORD, ANN_FLOP, ANN_POW, ANN_PTS, ANN_SUM, and dim.
Referenced by ANNbruteForce::annkFRSearch(), and ANNbruteForce::annkSearch().
Definition at line 197 of file ANN.cpp.
References ANNmaxPtsVisited, and maxPts.
Referenced by main().
Definition at line 235 of file ANN.h.
Referenced by ANNkd_leaf::ann_FR_search(), ANNkd_leaf::ann_pri_search(), ANNkd_leaf::ann_search(), ANNbruteForce::annkFRSearch(), and ANNbruteForce::annkSearch().
const double ANN_DBL_MAX = DBL_MAX |
Definition at line 118 of file ANN.h.
Referenced by doValidation(), and ANNsampStat::reset().
const ANNdist ANN_DIST_INF = ANN_DBL_MAX |
const ANNidx ANN_NULL_IDX = -1 |
Definition at line 176 of file ANN.h.
Referenced by doValidation(), and main().
const int ANNcoordPrec = 15 |
Definition at line 222 of file ANN.h.
Referenced by ANNkd_tree::Dump().