Modifier and Type | Class and Description |
---|---|
static class |
KNNProcessor.Instance<O>
Instance for precomputing the kNN.
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
k
K parameter
|
(package private) KNNQuery<O> |
knnq
KNN query object
|
(package private) SharedObject<KNNList> |
out
Output channel to write to
|
Constructor and Description |
---|
KNNProcessor(int k,
KNNQuery<O> knnq)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup(Processor.Instance inst)
Invoke cleanup.
|
void |
connectKNNOutput(SharedObject<KNNList> output)
Connect the output channel.
|
KNNProcessor.Instance<O> |
instantiate(Executor executor)
Create an instance.
|
int k
SharedObject<KNNList> out
public void connectKNNOutput(SharedObject<KNNList> output)
output
- Output channelpublic KNNProcessor.Instance<O> instantiate(Executor executor)
Processor
instantiate
in interface Processor
executor
- Job executorpublic void cleanup(Processor.Instance inst)
Processor
Copyright © 2019 ELKI Development Team. License information.