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