public static interface MapBinnedData.BinMapper<K extends Comparable<K>>
equals
and hashCode
properly.Modifier and Type | Method and Description |
---|---|
MapBinnedData<K> |
createBinnedData(int nset)
Creates a BinnedData instance based on this mapper.
|
double[] |
getBounds(K key)
Returns the upper and lower bounds of the bin corresponding to
a given key.
|
K |
getKey(double value)
Returns the key to use for a given value.
|
Iterator<K> |
keyIterator(K loKey,
K hiKey)
Returns an iterator which covers all keys between the given
low and high keys inclusive.
|
K getKey(double value)
null
to indicate that the given value
cannot be binned.value
- numerical valuevalue
fallsdouble[] getBounds(K key)
key
- bin key objectkey
Iterator<K> keyIterator(K loKey, K hiKey)
loKey
and hiKey
must be possible keys
for this mapper and arranged in the right order.loKey
- lower bound (inclusive) for key iterationhiKey
- upper bound (inclusive) for key iterationMapBinnedData<K> createBinnedData(int nset)
nset
- the number of subsets that the BinnedData can deal withCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.