|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_PLAN_NEARESTNEIGHBORS_H
28 #define RL_PLAN_NEARESTNEIGHBORS_H
60 virtual ::std::vector<Neighbor>
nearest(
const Value& query, const ::std::size_t& k,
const bool& sorted =
true)
const = 0;
64 virtual ::std::size_t
size()
const = 0;
74 #endif // RL_PLAN_NEARESTNEIGHBORS_H
virtual ::std::size_t size() const =0
Metric::Value Value
Definition: NearestNeighbors.h:46
virtual ~NearestNeighbors()
Definition: NearestNeighbors.cpp:38
::std::pair< Distance, Value > Neighbor
Definition: NearestNeighbors.h:48
virtual void push(const Value &value)=0
NearestNeighbors(const bool &transformed)
Definition: NearestNeighbors.cpp:33
Definition: NearestNeighbors.h:42
bool transformed
Definition: NearestNeighbors.h:69
virtual bool empty() const =0
Metric::Distance Distance
Definition: NearestNeighbors.h:44
virtual ::std::vector< Neighbor > nearest(const Value &query, const ::std::size_t &k, const bool &sorted=true) const =0
::rl::math::Real Distance
Definition: Metric.h:42
bool isTransformedDistance() const
Definition: NearestNeighbors.cpp:43
Robotics Library.
Definition: AnalogInput.cpp:30