queso-0.57.1
|
#include <ANN.h>
Public Member Functions | |
ANNkd_tree (int n=0, int dd=0, int bs=1) | |
ANNkd_tree (ANNpointArray pa, int n, int dd, int bs=1, ANNsplitRule split=ANN_KD_SUGGEST) | |
ANNkd_tree (std::istream &in) | |
~ANNkd_tree () | |
void | annkSearch (ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0) |
void | annkPriSearch (ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0) |
int | annkFRSearch (ANNpoint q, ANNdist sqRad, int k, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0) |
int | theDim () |
int | nPoints () |
ANNpointArray | thePoints () |
virtual void | Print (ANNbool with_pts, std::ostream &out) |
virtual void | Dump (ANNbool with_pts, std::ostream &out) |
virtual void | getStats (ANNkdStats &st) |
Public Member Functions inherited from ANNpointSet | |
virtual | ~ANNpointSet () |
Protected Member Functions | |
void | SkeletonTree (int n, int dd, int bs, ANNpointArray pa=NULL, ANNidxArray pi=NULL) |
Protected Attributes | |
int | dim |
int | n_pts |
int | bkt_size |
ANNpointArray | pts |
ANNidxArray | pidx |
ANNkd_ptr | root |
ANNpoint | bnd_box_lo |
ANNpoint | bnd_box_hi |
ANNkd_tree::ANNkd_tree | ( | int | n = 0 , |
int | dd = 0 , |
||
int | bs = 1 |
||
) |
Definition at line 273 of file kd_tree.cpp.
References SkeletonTree().
ANNkd_tree::ANNkd_tree | ( | ANNpointArray | pa, |
int | n, | ||
int | dd, | ||
int | bs = 1 , |
||
ANNsplitRule | split = ANN_KD_SUGGEST |
||
) |
Definition at line 368 of file kd_tree.cpp.
References ANN_KD_FAIR, ANN_KD_MIDPT, ANN_KD_SL_FAIR, ANN_KD_SL_MIDPT, ANN_KD_STD, ANN_KD_SUGGEST, ANNabort, annCopyPt(), annEnclRect(), annError(), bnd_box_hi, bnd_box_lo, fair_split(), ANNorthRect::hi, kd_split(), ANNorthRect::lo, midpt_split(), pidx, pts, rkd_tree(), root, SkeletonTree(), sl_fair_split(), and sl_midpt_split().
ANNkd_tree::ANNkd_tree | ( | std::istream & | in | ) |
ANNkd_tree::~ANNkd_tree | ( | ) |
Definition at line 209 of file kd_tree.cpp.
References annDeallocPt(), bnd_box_hi, bnd_box_lo, pidx, and root.
|
virtual |
Implements ANNpointSet.
Definition at line 58 of file kd_fix_rad_search.cpp.
References annBoxDistance(), ANNkdFRDim, ANNkdFRMaxErr, ANNkdFRPointMK, ANNkdFRPts, ANNkdFRPtsInRange, ANNkdFRPtsVisited, ANNkdFRQ, ANNkdFRSqRad, bnd_box_hi, bnd_box_lo, dim, pts, and root.
Referenced by QUESO::computeMI_ANN(), and main().
void ANNkd_tree::annkPriSearch | ( | ANNpoint | q, |
int | k, | ||
ANNidxArray | nn_idx, | ||
ANNdistArray | dd, | ||
double | eps = 0.0 |
||
) |
Definition at line 87 of file kd_pr_search.cpp.
References annBoxDistance(), ANNmaxPtsVisited, ANNprBoxPQ, ANNprDim, ANNprMaxErr, ANNprPointMK, ANNprPts, ANNprQ, ANNptsVisited, bnd_box_hi, bnd_box_lo, dim, n_pts, pts, and root.
Referenced by main().
|
virtual |
Implements ANNpointSet.
Definition at line 89 of file kd_search.cpp.
References ANNabort, annBoxDistance(), annError(), ANNkdDim, ANNkdMaxErr, ANNkdPointMK, ANNkdPts, ANNkdQ, ANNptsVisited, bnd_box_hi, bnd_box_lo, dim, n_pts, pts, and root.
Referenced by QUESO::distANN_XY(), and main().
|
virtual |
Definition at line 102 of file kd_dump.cpp.
References ANNcoordPrec, annPrintPt(), and dim.
Referenced by main().
|
virtual |
Definition at line 191 of file kd_tree.cpp.
References ANNkdStats::avg_ar, bkt_size, bnd_box_hi, bnd_box_lo, ANNkdStats::n_lf, ANNkdStats::reset(), root, and ANNkdStats::sum_ar.
Referenced by treeStats().
|
inlinevirtual |
|
virtual |
Definition at line 104 of file kd_tree.cpp.
References annPrintPt(), dim, n_pts, pts, and root.
Referenced by main().
|
protected |
Definition at line 244 of file kd_tree.cpp.
References bkt_size, bnd_box_hi, bnd_box_lo, IDX_TRIVIAL, KD_TRIVIAL, pidx, pts, and root.
Referenced by ANNkd_tree().
|
inlinevirtual |
|
inlinevirtual |
|
protected |
Definition at line 709 of file ANN.h.
Referenced by getStats(), and SkeletonTree().
|
protected |
Definition at line 714 of file ANN.h.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree(), annkFRSearch(), annkPriSearch(), annkSearch(), getStats(), SkeletonTree(), and ~ANNkd_tree().
|
protected |
Definition at line 713 of file ANN.h.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree(), annkFRSearch(), annkPriSearch(), annkSearch(), getStats(), SkeletonTree(), and ~ANNkd_tree().
|
protected |
Definition at line 707 of file ANN.h.
Referenced by annkFRSearch(), annkPriSearch(), annkSearch(), and Print().
|
protected |
Definition at line 708 of file ANN.h.
Referenced by annkPriSearch(), annkSearch(), and Print().
|
protected |
Definition at line 711 of file ANN.h.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree(), SkeletonTree(), and ~ANNkd_tree().
|
protected |
Definition at line 710 of file ANN.h.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree(), annkFRSearch(), annkPriSearch(), annkSearch(), Print(), and SkeletonTree().
|
protected |
Definition at line 712 of file ANN.h.
Referenced by ANNbd_tree::ANNbd_tree(), ANNkd_tree(), annkFRSearch(), annkPriSearch(), annkSearch(), getStats(), Print(), SkeletonTree(), and ~ANNkd_tree().