Package elki.parallel.processor
Class DoubleMinMaxProcessor
- java.lang.Object
-
- elki.parallel.processor.DoubleMinMaxProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classDoubleMinMaxProcessor.InstanceInstance for a particular sub-channel / part of the data set.
-
Field Summary
Fields Modifier and Type Field Description (package private) SharedDoubleinputInput channel(package private) DoubleMinMaxminmaxThe central data store.
-
Constructor Summary
Constructors Constructor Description DoubleMinMaxProcessor()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup(Processor.Instance inst)Invoke cleanup.voidconnectInput(SharedDouble input)Connect an input channel.DoubleMinMaxgetMinMax()Get the minmax object.DoubleMinMaxProcessor.Instanceinstantiate(Executor executor)Create an instance.protected voidmerge(DoubleMinMax minmax)Merge the result of an instance.
-
-
-
Field Detail
-
minmax
DoubleMinMax minmax
The central data store.
-
input
SharedDouble input
Input channel
-
-
Method Detail
-
connectInput
public void connectInput(SharedDouble input)
Connect an input channel.- Parameters:
input- Input channel
-
instantiate
public DoubleMinMaxProcessor.Instance instantiate(Executor executor)
Description copied from interface:ProcessorCreate an instance. May be called multiple times, for example for multiple threads.- Specified by:
instantiatein interfaceProcessor- Parameters:
executor- Job executor- Returns:
- Instance
-
cleanup
public void cleanup(Processor.Instance inst)
Description copied from interface:ProcessorInvoke cleanup.
-
merge
protected void merge(DoubleMinMax minmax)
Merge the result of an instance.- Parameters:
minmax- Minmax value
-
getMinMax
public DoubleMinMax getMinMax()
Get the minmax object.- Returns:
- Minmax object
-
-