Template Class NearestNeighborsSqrtApprox
Defined in File NearestNeighborsSqrtApprox.h
Inheritance Relationships
Base Type
public ompl::NearestNeighborsLinear< _T >
(Template Class NearestNeighborsLinear)
Class Documentation
-
template<typename _T>
class NearestNeighborsSqrtApprox : public ompl::NearestNeighborsLinear<_T> A nearest neighbors datastructure that uses linear search. The linear search is done over sqrt(n) elements only. (Every sqrt(n) elements are skipped).
Search for nearest neighbor is O(sqrt(n)).
Search for k-nearest neighbors is O(n log(k)).
Search for neighbors within a range is O(n log(n)).
Adding an element to the datastructure is O(1).
Removing an element from the datastructure O(n).
Public Functions
-
NearestNeighborsSqrtApprox() = default
-
~NearestNeighborsSqrtApprox() override = default
-
inline virtual void clear() override
Clear the datastructure.
Protected Functions
-
inline void updateCheckCount()
The maximum number of checks to perform when searching for a nearest neighbor.