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