ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Go to the documentation of this file.
49 class DistanceMeasure;
71 kdtree_node *build_tree(
size_t depth,
size_t a,
size_t b);
75 std::priority_queue<nn4heap, std::vector<nn4heap>,
compare_nn4heap> *neighborheap;
76 std::vector<size_t> range_result;
bool operator()(const nn4heap &n, const nn4heap &m)
std::vector< double > DoubleVector
virtual ~KdNodePredicate()
void range_nearest_neighbors(const CoordPoint &point, double r, KdNodeVector *result)
std::vector< KdNode > KdNodeVector
KdTree(const KdNodeVector *nodes, int distance_type=2)
virtual bool operator()(const KdNode &kn) const
std::vector< double > CoordPoint
void k_nearest_neighbors(const CoordPoint &point, size_t k, KdNodeVector *result, std::vector< double > *distances, KdNodePredicate *pred=NULL)
KdNode(const CoordPoint &p, void *d=NULL)
void set_distance(int distance_type, const DoubleVector *weights=NULL)
nn4heap(size_t i, double d)