public interface BinList
Zero or more data values may be submitted to each bin, and a floating point result value may later be obtained from each bin, which forms a digest of the values submitted to that bin. The nature of this digest is determined by a Combiner object.
Instances of this class are in general not thread-safe.
Modifier and Type | Interface and Description |
---|---|
static interface |
BinList.Result
Accessor for the results of accumulating values in a bit list.
|
Modifier and Type | Method and Description |
---|---|
Combiner.Container |
getBinContainer(long index)
Returns a container representing the current contents of a given bin.
|
Combiner |
getCombiner()
Returns the combination method used for bins.
|
BinList.Result |
getResult()
Returns an object containing the result values accumulated into
the bins so far.
|
long |
getSize()
Returns the maximum number of bins.
|
void |
submitToBin(long index,
double datum)
Adds a given numeric value to the bin at the given index.
|
long getSize()
Combiner getCombiner()
void submitToBin(long index, double datum)
index
- bin indexdatum
- finite value to submit to the binBinList.Result getResult()
It is up to implementations to decide how to implement this method.
In some cases the return value may be an adapter that extracts results
as required from the data structure used for value accumulation,
but in others it may return a new data structure which copies
the accumulated values to a more compact form up front.
Therefore this may or may not be an expensive method, and the return
value may or may not be affected by subsequent
submitToBin(long, double)
calls.
Combiner.Container getBinContainer(long index)
This method is here to support conversion between different BinList implementations.
index
- bin indexCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.