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