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