public static final class IntNearestNeighboursExact.Factory extends Object implements NearestNeighboursFactory<IntNearestNeighboursExact,int[]>
NearestNeighboursFactory for producing
IntNearestNeighboursExacts.| Constructor and Description |
|---|
IntNearestNeighboursExact.Factory()
Construct the factory using Euclidean distance for the
produced IntNearestNeighbours instances.
|
IntNearestNeighboursExact.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 IntNearestNeighboursExact.Factory()
public IntNearestNeighboursExact.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