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