|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O,D>
O
- The object typeD
- The distance typepublic abstract static class AbstractMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
The parameterizable factory.
Nested Class Summary | |
---|---|
static class |
AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>
Parameterization class. |
Field Summary | |
---|---|
static OptionID |
DISTANCE_FUNCTION_ID
Parameter to indicate the distance function to be used to ascertain the nearest neighbors. |
protected DistanceFunction<? super O,D> |
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 Summary | |
---|---|
AbstractMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction)
Index factory. |
Method Summary | |
---|---|
D |
getDistanceFactory()
Get the distance factory. |
DistanceFunction<? super O,D> |
getDistanceFunction()
Get the distance function. |
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. |
abstract AbstractMaterializeKNNPreprocessor<O,D> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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,D extends Distance<D>> distanceFunction
Constructor Detail |
---|
public AbstractMaterializeKNNPreprocessor.Factory(int k, DistanceFunction<? super O,D> distanceFunction)
k
- k parameterdistanceFunction
- distance functionMethod Detail |
---|
public abstract AbstractMaterializeKNNPreprocessor<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,KNNIndex<O>>
relation
- the relation to indexpublic DistanceFunction<? super O,D> getDistanceFunction()
public D getDistanceFactory()
public TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<O,KNNIndex<O>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |