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
 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


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.