public static final class LongNearestNeighboursExact.Factory extends Object implements NearestNeighboursFactory<LongNearestNeighboursExact,long[]>
NearestNeighboursFactory for producing
LongNearestNeighboursExacts.| Constructor and Description |
|---|
Factory()
Construct the factory using Euclidean distance for the
produced LongNearestNeighbours instances.
|
Factory(LongFVComparator distance)
Construct the factory with the given distance function
for the produced LongNearestNeighbours instances.
|
| Modifier and Type | Method and Description |
|---|---|
LongNearestNeighboursExact |
create(long[][] data)
Create a
NearestNeighbours object that works over the provided
data. |
public Factory()
public Factory(LongFVComparator distance)
distance - the distance functionpublic LongNearestNeighboursExact create(long[][] data)
NearestNeighboursFactoryNearestNeighbours object that works over the provided
data.create in interface NearestNeighboursFactory<LongNearestNeighboursExact,long[]>data - the dataNearestNeighbours object