O
- The object typepublic abstract static class AbstractMaterializeKNNPreprocessor.Factory<O> extends Object implements IndexFactory<O,KNNIndex<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 |
---|
AbstractMaterializeKNNPreprocessor.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
Key: -materialize.k
public static final OptionID DISTANCE_FUNCTION_ID
Default value: EuclideanDistanceFunction
Key: materialize.distance
protected int k
K_ID
.protected DistanceFunction<? super O> distanceFunction
public AbstractMaterializeKNNPreprocessor.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,KNNIndex<O>>
relation
- the relation to indexpublic DistanceFunction<? super O> getDistanceFunction()
public TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<O,KNNIndex<O>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.