Robotics Library
0.7.0
|
Linear nearest neighbor search. More...
#include <LinearNearestNeighbors.h>
Classes | |
struct | NeighborCompare |
Public Types | |
typedef ContainerT::const_iterator | const_iterator |
typedef const MetricT::Value & | const_reference |
typedef ContainerT::difference_type | difference_type |
typedef ContainerT::iterator | iterator |
typedef MetricT::Value & | reference |
typedef ContainerT::size_type | size_type |
typedef MetricT::Value | value_type |
typedef ContainerT | Container |
typedef MetricT::Distance | Distance |
typedef MetricT | Metric |
typedef MetricT::Value | Value |
typedef ::std::pair< Distance, Value > | Neighbor |
Public Member Functions | |
LinearNearestNeighbors (const Metric &metric) | |
LinearNearestNeighbors (Metric &&metric=Metric()) | |
template<typename InputIterator > | |
LinearNearestNeighbors (InputIterator first, InputIterator last, const Metric &metric) | |
template<typename InputIterator > | |
LinearNearestNeighbors (InputIterator first, InputIterator last, Metric &&metric=Metric()) | |
~LinearNearestNeighbors () | |
Value & | at (const ::std::size_t &i) |
const Value & | at (const ::std::size_t &i) const |
Value & | back () |
const Value & | back () const |
iterator | begin () |
const_iterator | begin () const |
::std::size_t | capacity () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
void | clear () |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
void | erase (const_iterator pos) |
Value & | front () |
const Value & | front () const |
template<typename InputIterator > | |
void | insert (InputIterator first, InputIterator last) |
::std::size_t | max_size () const |
::std::vector< Neighbor > | nearest (const Value &query, const ::std::size_t &k, const bool &sorted=true) const |
Value & | operator[] (const ::std::size_t &i) |
const Value & | operator[] (const ::std::size_t &i) const |
void | push (const Value &value) |
::std::vector< Neighbor > | radius (const Value &query, const Distance &radius, const bool &sorted=true) const |
void | reserve (const ::std::size_t &capacity) |
::std::size_t | size () const |
void | swap (LinearNearestNeighbors &other) |
Private Member Functions | |
::std::vector< Neighbor > | search (const Value &query, const ::std::size_t *k, const Distance *radius, const bool &sorted) const |
Private Attributes | |
Container | container |
Metric | metric |
Friends | |
void | swap (LinearNearestNeighbors &lhs, LinearNearestNeighbors &rhs) |
Linear nearest neighbor search.
typedef ContainerT::const_iterator rl::math::LinearNearestNeighbors< MetricT, ContainerT >::const_iterator |
typedef const MetricT::Value& rl::math::LinearNearestNeighbors< MetricT, ContainerT >::const_reference |
typedef ContainerT rl::math::LinearNearestNeighbors< MetricT, ContainerT >::Container |
typedef ContainerT::difference_type rl::math::LinearNearestNeighbors< MetricT, ContainerT >::difference_type |
typedef MetricT::Distance rl::math::LinearNearestNeighbors< MetricT, ContainerT >::Distance |
typedef ContainerT::iterator rl::math::LinearNearestNeighbors< MetricT, ContainerT >::iterator |
typedef MetricT rl::math::LinearNearestNeighbors< MetricT, ContainerT >::Metric |
typedef ::std::pair<Distance, Value> rl::math::LinearNearestNeighbors< MetricT, ContainerT >::Neighbor |
typedef MetricT::Value& rl::math::LinearNearestNeighbors< MetricT, ContainerT >::reference |
typedef ContainerT::size_type rl::math::LinearNearestNeighbors< MetricT, ContainerT >::size_type |
typedef MetricT::Value rl::math::LinearNearestNeighbors< MetricT, ContainerT >::Value |
typedef MetricT::Value rl::math::LinearNearestNeighbors< MetricT, ContainerT >::value_type |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
friend |
|
private |
|
private |