O
- Object typepublic static class NNDescent.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O>
Modifier and Type | Class and Description |
---|---|
static class |
NNDescent.Factory.Parameterizer<O>
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private double |
delta
early termination parameter
|
private int |
iterations
maximum number of iterations
|
private boolean |
noInitialNeighbors
set initial neighbors?
|
private double |
rho
sample rate
|
private RandomFactory |
rnd
Random generator
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
Factory(int k,
DistanceFunction<? super O> distanceFunction,
RandomFactory rnd,
double delta,
double rho,
boolean noInitialNeighbors,
int iterations)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
NNDescent<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFunction, getInputTypeRestriction
private final RandomFactory rnd
private final double delta
private final double rho
private final boolean noInitialNeighbors
private final int iterations
public Factory(int k, DistanceFunction<? super O> distanceFunction, RandomFactory rnd, double delta, double rho, boolean noInitialNeighbors, int iterations)
k
- KdistanceFunction
- distance functionrnd
- Random generatordelta
- Delta thresholdrho
- Rho thresholdnoInitialNeighbors
- Do not use initial neighborsiterations
- Maximum number of iterationspublic NNDescent<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O>
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O>
relation
- the relation to indexCopyright © 2019 ELKI Development Team. License information.