|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface MapBinnedData.BinMapper
Defines the mapping of numerical values to map keys.
The keys must implement equals
and hashCode
properly.
Method Summary | |
---|---|
double[] |
getBounds(Object key)
Returns the upper and lower bounds of the bin corresponding to a given key. |
Comparable |
getKey(double value)
Returns the key to use for a given value. |
Iterator |
keyIterator(Object loKey,
Object hiKey)
Returns an iterator which covers all keys between the given low and high keys inclusive. |
Method Detail |
---|
Comparable getKey(double value)
null
to indicate that the given value
cannot be binned.
value
- numerical value
value
fallsdouble[] getBounds(Object key)
key
- bin key object
key
Iterator keyIterator(Object loKey, Object 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 iteration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |