Package org.ddogleg.nn.wrap
Class WrapExhaustiveNeighbor<P>
java.lang.Object
org.ddogleg.nn.wrap.WrapExhaustiveNeighbor<P>
- All Implemented Interfaces:
NearestNeighbor<P>
Wrapper around
ExhaustiveNeighbor
for NearestNeighbor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ddogleg.nn.NearestNeighbor
NearestNeighbor.Search<P>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new search for this data structure.void
Specifies the set of points which are to be searched.
-
Constructor Details
-
WrapExhaustiveNeighbor
-
-
Method Details
-
setPoints
Description copied from interface:NearestNeighbor
Specifies the set of points which are to be searched.- Specified by:
setPoints
in interfaceNearestNeighbor<P>
- Parameters:
points
- Set of points.trackIndicies
- If true it will keep track of the index. Making it easy to associate data.
-
createSearch
Description copied from interface:NearestNeighbor
Creates a new search for this data structure. This is intended to enabled concurrent searches. AfterNearestNeighbor.setPoints(java.util.List<P>, boolean)
has been called and returned, each searched can be called independently in separate threads. Do not callNearestNeighbor.setPoints(java.util.List<P>, boolean)
which a search is being performed.- Specified by:
createSearch
in interfaceNearestNeighbor<P>
- Returns:
- A new search object for this instance.
-