|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O> de.lmu.ifi.dbs.elki.database.query.rknn.PreprocessorRKNNQuery<O,D>
public class PreprocessorRKNNQuery<O,D extends Distance<D>>
Instance for a particular database, invoking the preprocessor.
Field Summary | |
---|---|
private MaterializeKNNAndRKNNPreprocessor<O,D> |
preprocessor
The last preprocessor result |
private boolean |
warned
Warn only once. |
Fields inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery |
---|
relation |
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery |
---|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE |
Constructor Summary | |
---|---|
PreprocessorRKNNQuery(Relation<O> database,
MaterializeKNNAndRKNNPreprocessor.Factory<O,D> preprocessor)
Constructor. |
|
PreprocessorRKNNQuery(Relation<O> database,
MaterializeKNNAndRKNNPreprocessor<O,D> preprocessor)
Constructor. |
Method Summary | |
---|---|
D |
getDistanceFactory()
Get the distance data type of the function. |
AbstractMaterializeKNNPreprocessor<O,D> |
getPreprocessor()
Get the preprocessor instance. |
List<List<DistanceResultPair<D>>> |
getRKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method for reverse k nearest neighbors for ids. |
List<DistanceResultPair<D>> |
getRKNNForDBID(DBID id,
int k)
Get the reverse k nearest neighbors for a particular id. |
List<DistanceResultPair<D>> |
getRKNNForObject(O obj,
int k)
Get the reverse k nearest neighbors for a particular object. |
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery |
---|
getRelation |
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.database.query.rknn.RKNNQuery |
---|
getRelation |
Field Detail |
---|
private final MaterializeKNNAndRKNNPreprocessor<O,D extends Distance<D>> preprocessor
private boolean warned
Constructor Detail |
---|
public PreprocessorRKNNQuery(Relation<O> database, MaterializeKNNAndRKNNPreprocessor<O,D> preprocessor)
database
- Database to querypreprocessor
- Preprocessor instance to usepublic PreprocessorRKNNQuery(Relation<O> database, MaterializeKNNAndRKNNPreprocessor.Factory<O,D> preprocessor)
database
- Database to querypreprocessor
- Preprocessor to useMethod Detail |
---|
public List<DistanceResultPair<D>> getRKNNForDBID(DBID id, int k)
RKNNQuery
getRKNNForDBID
in interface RKNNQuery<O,D extends Distance<D>>
id
- query object IDk
- number of neighbors requested
public List<DistanceResultPair<D>> getRKNNForObject(O obj, int k)
RKNNQuery
getRKNNForObject
in interface RKNNQuery<O,D extends Distance<D>>
obj
- query object instancek
- number of neighbors requested
public List<List<DistanceResultPair<D>>> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery
getRKNNForBulkDBIDs
in interface RKNNQuery<O,D extends Distance<D>>
ids
- query object IDsk
- number of neighbors requested
public AbstractMaterializeKNNPreprocessor<O,D> getPreprocessor()
public D getDistanceFactory()
RKNNQuery
getDistanceFactory
in interface RKNNQuery<O,D extends Distance<D>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |