Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <KdTree.h>
Public Types | |
using | Traits = KdTreeTraits< T > |
Public Member Functions | |
KdTree (const std::vector< T > &data, std::size_t leaf_size=100) | |
std::vector< T > | findPointsWithinRadius (const T &coord, double radius) const |
std::size_t | countPointsWithinRadius (const T &coord, double radius) const |
Private Attributes | |
std::size_t | m_dimensionality |
std::shared_ptr< Node > | m_root |
using KdTree::KdTree< T, DistanceMethod >::Traits = KdTreeTraits<T> |
|
explicit |
std::size_t KdTree::KdTree< T, DistanceMethod >::countPointsWithinRadius | ( | const T & | coord, |
double | radius | ||
) | const |
Count how many points are within the given radius from the coordonate coord
coord | |
radius |
std::vector< T > KdTree::KdTree< T, DistanceMethod >::findPointsWithinRadius | ( | const T & | coord, |
double | radius | ||
) | const |
Return the points that are within the given radius from the coordinate coord
coord | |
radius |
|
private |
|
private |