Package elki.parallel.processor
Class AbstractDoubleProcessor
- java.lang.Object
-
- elki.parallel.processor.AbstractDoubleProcessor
-
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
KDistanceProcessor
,KNNWeightProcessor
,LOFProcessor
,LRDProcessor
,SimplifiedLRDProcessor
public abstract class AbstractDoubleProcessor extends java.lang.Object implements Processor
Abstract base class for processors that output double values.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractDoubleProcessor.Instance
Instance.
-
Field Summary
Fields Modifier and Type Field Description protected SharedDouble
output
Output variable
-
Constructor Summary
Constructors Constructor Description AbstractDoubleProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cleanup(Processor.Instance inst)
Invoke cleanup.void
connectOutput(SharedDouble output)
Connect the output variable.abstract Processor.Instance
instantiate(Executor exectutor)
Create an instance.
-
-
-
Field Detail
-
output
protected SharedDouble output
Output variable
-
-
Method Detail
-
connectOutput
public void connectOutput(SharedDouble output)
Connect the output variable.- Parameters:
output
- Output variable
-
instantiate
public abstract Processor.Instance instantiate(Executor exectutor)
Description copied from interface:Processor
Create an instance. May be called multiple times, for example for multiple threads.- Specified by:
instantiate
in interfaceProcessor
- Parameters:
exectutor
- Job executor- Returns:
- Instance
-
cleanup
public void cleanup(Processor.Instance inst)
Description copied from interface:Processor
Invoke cleanup.
-
-