public static final class ByteNearestNeighboursExact.Factory extends Object implements NearestNeighboursFactory<ByteNearestNeighboursExact,byte[]>
NearestNeighboursFactory
for producing
ByteNearestNeighboursExact
s.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)
NearestNeighboursFactory
NearestNeighbours
object that works over the provided
data.create
in interface NearestNeighboursFactory<ByteNearestNeighboursExact,byte[]>
data
- the dataNearestNeighbours
object