Package uk.ac.starlink.ttools.plot
Interface BinnedData.Bin
- Enclosing interface:
BinnedData
public static interface BinnedData.Bin
Represents a single bin.
Instances of this class are dispensed by
BinnedData.getBinIterator(boolean)
.-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the highest value which will fall into this bin.double
Returns the lowest value which will fall into this bin.double
getWeightedCount
(int iset) Returns the weighted sum of data in this bin for a given subset.
-
Method Details
-
getLowBound
double getLowBound()Returns the lowest value which will fall into this bin.- Returns:
- lower bound of bin
-
getHighBound
double getHighBound()Returns the highest value which will fall into this bin.- Returns:
- upper bound of bin
-
getWeightedCount
double getWeightedCount(int iset) Returns the weighted sum of data in this bin for a given subset. If weights have all been unity, this is equivalent to the number of items in the bin.- Parameters:
iset
- subset index- Returns:
- weighted occupancy count for
iset
in this bin
-