|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.AbstractIndex<O>
de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex<O,List<DistanceResultPair<D>>>
de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor<O,D>
O - Object typeD - Distance typepublic abstract class AbstractMaterializeKNNPreprocessor<O,D extends Distance<D>>

Abstract base class for KNN Preprocessors.
| Nested Class Summary | |
|---|---|
static class |
AbstractMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
The parameterizable factory. |
| Field Summary | |
|---|---|
protected DistanceFunction<? super O,D> |
distanceFunction
The distance function to be used. |
protected DistanceQuery<O,D> |
distanceQuery
The distance query we used. |
protected int |
k
The query k value. |
protected EventListenerList |
listenerList
Holds the listener. |
| Fields inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex |
|---|
storage |
| Fields inherited from class de.lmu.ifi.dbs.elki.index.AbstractIndex |
|---|
relation |
| Constructor Summary | |
|---|---|
AbstractMaterializeKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
int k)
Constructor. |
|
| Method Summary | ||
|---|---|---|
D |
getDistanceFactory()
Get the distance factory. |
|
DistanceQuery<O,D> |
getDistanceQuery()
The distance query we used. |
|
int |
getK()
Get the value of 'k' supported by this preprocessor. |
|
|
getKNNQuery(DistanceQuery<O,S> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query and k. |
|
protected abstract void |
preprocess()
Perform the preprocessing step. |
|
| Methods inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex |
|---|
getLogger |
| Methods inherited from class de.lmu.ifi.dbs.elki.index.AbstractIndex |
|---|
delete, deleteAll, getLongName, getPageFileStatistics, getShortName, insert, insertAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.Index |
|---|
delete, deleteAll, getPageFileStatistics, insert, insertAll |
| Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result |
|---|
getLongName, getShortName |
| Field Detail |
|---|
protected final int k
protected final DistanceFunction<? super O,D extends Distance<D>> distanceFunction
protected final DistanceQuery<O,D extends Distance<D>> distanceQuery
protected final EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractMaterializeKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
int k)
relation - RelationdistanceFunction - Distance functionk - k| Method Detail |
|---|
public D getDistanceFactory()
public DistanceQuery<O,D> getDistanceQuery()
public int getK()
protected abstract void preprocess()
public <S extends Distance<S>> KNNQuery<O,S> getKNNQuery(DistanceQuery<O,S> distanceQuery,
Object... hints)
KNNIndex
getKNNQuery in interface KNNIndex<O>S - Distance typedistanceQuery - Distance queryhints - Hints for the optimizer
null
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||