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 byBinnedData.getBinIterator(boolean)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getHighBound()
Returns the highest value which will fall into this bin.double
getLowBound()
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 Detail
-
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
-
-