Package elki.parallel.processor
Class KDistanceProcessor
- java.lang.Object
-
- elki.parallel.processor.AbstractDoubleProcessor
-
- elki.parallel.processor.KDistanceProcessor
-
- All Implemented Interfaces:
Processor
public class KDistanceProcessor extends AbstractDoubleProcessor
Compute the kNN distance for each object. Needs the k nearest neighbors as input, for example fromKNNProcessor
.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KDistanceProcessor.Instance
Instance for precomputing the kNN.
-
Field Summary
Fields Modifier and Type Field Description (package private) SharedObject<? extends KNNList>
input
KNN query object(package private) int
k
K parameter-
Fields inherited from class elki.parallel.processor.AbstractDoubleProcessor
output
-
-
Constructor Summary
Constructors Constructor Description KDistanceProcessor(int k)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectKNNInput(SharedObject<? extends KNNList> input)
Connect the input channel.KDistanceProcessor.Instance
instantiate(Executor executor)
Create an instance.-
Methods inherited from class elki.parallel.processor.AbstractDoubleProcessor
cleanup, connectOutput
-
-
-
-
Field Detail
-
k
int k
K parameter
-
input
SharedObject<? extends KNNList> input
KNN query object
-
-
Method Detail
-
connectKNNInput
public void connectKNNInput(SharedObject<? extends KNNList> input)
Connect the input channel.- Parameters:
input
- Input channel
-
instantiate
public KDistanceProcessor.Instance instantiate(Executor executor)
Description copied from interface:Processor
Create an instance. May be called multiple times, for example for multiple threads.- Specified by:
instantiate
in interfaceProcessor
- Specified by:
instantiate
in classAbstractDoubleProcessor
- Parameters:
executor
- Job executor- Returns:
- Instance
-
-