T
- Type of object being compared.public static final class ObjectNearestNeighboursExact.Factory<T> extends Object implements NearestNeighboursFactory<ObjectNearestNeighboursExact<T>,T>
NearestNeighboursFactory
for producing
ObjectNearestNeighboursExact
s.Constructor and Description |
---|
Factory(DistanceComparator<? super T> distance)
Construct the factory with the given distance function for the
produced ObjectNearestNeighbours instances.
|
Modifier and Type | Method and Description |
---|---|
ObjectNearestNeighboursExact<T> |
create(T[] data)
Create a
NearestNeighbours object that works over the provided
data. |
public Factory(DistanceComparator<? super T> distance)
distance
- the distance functionpublic ObjectNearestNeighboursExact<T> create(T[] data)
NearestNeighboursFactory
NearestNeighbours
object that works over the provided
data.create
in interface NearestNeighboursFactory<ObjectNearestNeighboursExact<T>,T>
data
- the dataNearestNeighbours
object