Package elki.parallel.processor
Class KNNProcessor.Instance
- java.lang.Object
-
- elki.parallel.processor.KNNProcessor.Instance
-
- All Implemented Interfaces:
Processor.Instance
- Enclosing class:
- KNNProcessor
public static class KNNProcessor.Instance extends java.lang.Object implements Processor.Instance
Instance for precomputing the kNN.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
k
k Parameter(package private) KNNSearcher<DBIDRef>
knnq
kNN query(package private) SharedObject.Instance<KNNList>
out
Output data store
-
Constructor Summary
Constructors Modifier Constructor Description protected
Instance(int k, KNNSearcher<DBIDRef> knnq, SharedObject.Instance<KNNList> out)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
map(DBIDRef id)
Process ("map") a single object
-
-
-
Field Detail
-
k
int k
k Parameter
-
knnq
KNNSearcher<DBIDRef> knnq
kNN query
-
out
SharedObject.Instance<KNNList> out
Output data store
-
-
Constructor Detail
-
Instance
protected Instance(int k, KNNSearcher<DBIDRef> knnq, SharedObject.Instance<KNNList> out)
Constructor.- Parameters:
k
- K parameterknnq
- KNN queryout
- Output channel to write to
-
-
Method Detail
-
map
public void map(DBIDRef id)
Description copied from interface:Processor.Instance
Process ("map") a single object- Specified by:
map
in interfaceProcessor.Instance
- Parameters:
id
- Object to map.
-
-