public static final class ByteNearestNeighboursKDTree.Factory extends Object implements NearestNeighboursFactory<ByteNearestNeighboursKDTree,byte[]>
NearestNeighboursFactory for producing
ByteNearestNeighboursKDTrees.| Constructor and Description |
|---|
Factory()
Construct the factory the default number of trees and checks.
|
Factory(int ntrees,
int nchecks)
Construct the factory the given number of trees and checks.
|
| Modifier and Type | Method and Description |
|---|---|
ByteNearestNeighboursKDTree |
create(byte[][] data)
Create a
NearestNeighbours object that works over the provided
data. |
public Factory()
public Factory(int ntrees, int nchecks)
ntrees - the number of treesnchecks - the number of checks during searchpublic ByteNearestNeighboursKDTree create(byte[][] data)
NearestNeighboursFactoryNearestNeighbours object that works over the provided
data.create in interface NearestNeighboursFactory<ByteNearestNeighboursKDTree,byte[]>data - the dataNearestNeighbours object