Robotics Library  0.7.0
Public Member Functions | Private Attributes | List of all members
rl::plan::LinearNearestNeighbors Class Reference

#include <LinearNearestNeighbors.h>

Inheritance diagram for rl::plan::LinearNearestNeighbors:
Inheritance graph
[legend]

Public Member Functions

 LinearNearestNeighbors (Model *model)
 
virtual ~LinearNearestNeighbors ()
 
void clear ()
 
bool empty () const
 
::std::vector< NearestNeighbors::Neighbornearest (const NearestNeighbors::Value &query, const ::std::size_t &k, const bool &sorted=true) const
 
void push (const NearestNeighbors::Value &value)
 
::std::size_t size () const
 
- Public Member Functions inherited from rl::plan::NearestNeighbors
 NearestNeighbors (const bool &transformed)
 
virtual ~NearestNeighbors ()
 
bool isTransformedDistance () const
 

Private Attributes

::rl::math::LinearNearestNeighbors< Metriccontainer
 

Additional Inherited Members

- Public Types inherited from rl::plan::NearestNeighbors
typedef Metric::Distance Distance
 
typedef Metric::Value Value
 
typedef ::std::pair< Distance, ValueNeighbor
 

Constructor & Destructor Documentation

◆ LinearNearestNeighbors()

rl::plan::LinearNearestNeighbors::LinearNearestNeighbors ( Model model)

◆ ~LinearNearestNeighbors()

rl::plan::LinearNearestNeighbors::~LinearNearestNeighbors ( )
virtual

Member Function Documentation

◆ clear()

void rl::plan::LinearNearestNeighbors::clear ( )
virtual

◆ empty()

bool rl::plan::LinearNearestNeighbors::empty ( ) const
virtual

◆ nearest()

std::vector< NearestNeighbors::Neighbor > rl::plan::LinearNearestNeighbors::nearest ( const NearestNeighbors::Value query,
const ::std::size_t &  k,
const bool &  sorted = true 
) const
virtual

◆ push()

void rl::plan::LinearNearestNeighbors::push ( const NearestNeighbors::Value value)
virtual

◆ size()

std::size_t rl::plan::LinearNearestNeighbors::size ( ) const
virtual

Member Data Documentation

◆ container

::rl::math::LinearNearestNeighbors<Metric> rl::plan::LinearNearestNeighbors::container
private

The documentation for this class was generated from the following files: