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