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