Package elki.index.preprocessed.knn
Class NNDescent.Factory<O>
- java.lang.Object
-
- elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O>
-
- elki.index.preprocessed.knn.NNDescent.Factory<O>
-
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
IndexFactory<O>
public static class NNDescent.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O>
Index factory.- Author:
- Evelyn Kirner
-
-
Field Summary
Fields Modifier and Type Field Description private double
delta
early termination parameterprivate int
iterations
maximum number of iterationsprivate boolean
noInitialNeighbors
set initial neighbors?private double
rho
sample rateprivate RandomFactory
rnd
Random generator-
Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
distance, DISTANCE_FUNCTION_ID, k, K_ID
-
-
Constructor Summary
Constructors Constructor Description Factory(int k, Distance<? super O> distance, RandomFactory rnd, double delta, double rho, boolean noInitialNeighbors, int iterations)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NNDescent<O>
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).-
Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
getDistance, getInputTypeRestriction
-
-
-
-
Field Detail
-
rnd
private final RandomFactory rnd
Random generator
-
delta
private final double delta
early termination parameter
-
rho
private final double rho
sample rate
-
noInitialNeighbors
private final boolean noInitialNeighbors
set initial neighbors?
-
iterations
private final int iterations
maximum number of iterations
-
-
Constructor Detail
-
Factory
public Factory(int k, Distance<? super O> distance, RandomFactory rnd, double delta, double rho, boolean noInitialNeighbors, int iterations)
Constructor.- Parameters:
k
- Kdistance
- distance functionrnd
- Random generatordelta
- Delta thresholdrho
- Rho thresholdnoInitialNeighbors
- Do not use initial neighborsiterations
- Maximum number of iterations
-
-
Method Detail
-
instantiate
public NNDescent<O> instantiate(Relation<O> relation)
Description copied from interface:IndexFactory
Sets the database in the distance function of this index (if existing).- Specified by:
instantiate
in interfaceIndexFactory<O>
- Specified by:
instantiate
in classAbstractMaterializeKNNPreprocessor.Factory<O>
- Parameters:
relation
- the relation to index
-
-