O
- The object typepublic abstract static class AbstractMaterializeKNNPreprocessor.Factory<O> extends java.lang.Object implements IndexFactory<O>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
DISTANCE_FUNCTION_ID
Parameter to indicate the distance function to be used to ascertain the
nearest neighbors.
|
protected DistanceFunction<? super O> |
distanceFunction
Hold the distance function to be used.
|
protected int |
k
Holds the value of
K_ID . |
static OptionID |
K_ID
Parameter to specify the number of nearest neighbors of an object to be
materialized. must be an integer greater than 1.
|
Constructor and Description |
---|
Factory(int k,
DistanceFunction<? super O> distanceFunction)
Index factory.
|
Modifier and Type | Method and Description |
---|---|
DistanceFunction<? super O> |
getDistanceFunction()
Get the distance function.
|
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
abstract AbstractMaterializeKNNPreprocessor<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
public static final OptionID K_ID
public static final OptionID DISTANCE_FUNCTION_ID
protected int k
K_ID
.protected DistanceFunction<? super O> distanceFunction
public Factory(int k, DistanceFunction<? super O> distanceFunction)
k
- k parameterdistanceFunction
- distance functionpublic abstract AbstractMaterializeKNNPreprocessor<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O>
relation
- the relation to indexpublic DistanceFunction<? super O> getDistanceFunction()
public TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<O>
Copyright © 2019 ELKI Development Team. License information.