Package elki.outlier.distance.parallel
Class KNNWeightProcessor
- java.lang.Object
-
- elki.parallel.processor.AbstractDoubleProcessor
-
- elki.outlier.distance.parallel.KNNWeightProcessor
-
- All Implemented Interfaces:
Processor
public class KNNWeightProcessor extends AbstractDoubleProcessor
Compute the kNN weight score, used byParallelKNNWeightOutlier
. 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 private static class
KNNWeightProcessor.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 KNNWeightProcessor(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.KNNWeightProcessor.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 KNNWeightProcessor.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
-
-