#include <FlannCache.h>
Definition at line 20 of file FlannCache.h.
Public Types | |
typedef DynamicKDTreeAdaptor< Distance, IndexType > | self_t |
typedef Distance::template traits< double, self_t >::distance_t | metric_t |
typedef nanoflann::KDTreeSingleIndexDynamicAdaptor< metric_t, self_t,-1, IndexType > | index_t |
Public Member Functions | |
DynamicKDTreeAdaptor (const int dim, const int leaf_max_size=10) | |
Constructor: takes a const ref to the vector of vectors object with the data points. More... | |
void | UpdateIndex (const int leaf_max_size=10) |
virtual | ~DynamicKDTreeAdaptor () |
void | add (Eigen::VectorXd const &newPt) |
std::pair< std::vector< IndexType >, std::vector< double > > | query (Eigen::VectorXd const &query_point, const size_t num_closest, const int nChecks_IGNORED=10) const |
const self_t & | derived () const |
self_t & | derived () |
size_t | kdtree_get_point_count () const |
double | kdtree_get_pt (const size_t idx, int dim) const |
template<class BBOX > | |
bool | kdtree_get_bbox (BBOX &) const |
Public Attributes | |
std::shared_ptr< index_t > | index |
std::deque< Eigen::VectorXd > | m_data |
The kd-tree index for the user to call its methods as usual with any other FLANN index. More... | |
Friends | |
class | FlannCache |
typedef nanoflann::KDTreeSingleIndexDynamicAdaptor< metric_t,self_t,-1,IndexType> muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::index_t |
Definition at line 26 of file FlannCache.h.
typedef Distance::template traits<double,self_t>::distance_t muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::metric_t |
Definition at line 25 of file FlannCache.h.
typedef DynamicKDTreeAdaptor<Distance,IndexType> muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::self_t |
Definition at line 24 of file FlannCache.h.
|
inline |
Constructor: takes a const ref to the vector of vectors object with the data points.
Definition at line 32 of file FlannCache.h.
References muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::index.
|
inlinevirtual |
Definition at line 42 of file FlannCache.h.
|
inline |
Definition at line 44 of file FlannCache.h.
References muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::index, and muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::m_data.
|
inline |
Definition at line 72 of file FlannCache.h.
|
inline |
Definition at line 68 of file FlannCache.h.
|
inline |
Definition at line 93 of file FlannCache.h.
|
inline |
Definition at line 77 of file FlannCache.h.
References muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::m_data.
|
inline |
Definition at line 82 of file FlannCache.h.
References muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::m_data.
|
inline |
Query for the num_closest closest points to a given point (entered as query_point[0:dim-1]). Note that this is a short-cut method for index->findNeighbors(). The user can also call index->... methods as desired.
Definition at line 54 of file FlannCache.h.
References muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::index.
|
inline |
Definition at line 36 of file FlannCache.h.
References muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::index, and muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::m_data.
|
friend |
Definition at line 22 of file FlannCache.h.
std::shared_ptr<index_t> muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::index |
Definition at line 28 of file FlannCache.h.
Referenced by muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::add(), muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::DynamicKDTreeAdaptor(), muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::query(), and muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::UpdateIndex().
std::deque<Eigen::VectorXd> muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::m_data |
The kd-tree index for the user to call its methods as usual with any other FLANN index.
Definition at line 29 of file FlannCache.h.
Referenced by muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::add(), muq::Approximation::SmolyakEstimator< EstimateType >::CacheSize(), muq::Approximation::SmolyakEstimator< EstimateType >::GetFromCache(), muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::kdtree_get_point_count(), muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::kdtree_get_pt(), and muq::Modeling::DynamicKDTreeAdaptor< Distance, IndexType >::UpdateIndex().