Interface Histogram.BinScheme
- All Known Implementing Classes:
- Histogram.ConstantBinScheme,- Histogram.LinearBinScheme
- Enclosing class:
- Histogram
public static interface Histogram.BinScheme
An algorithm for determining the bin in which a value is to be placed as well as calculating the upper end
 of each bin.
- 
Method Summary
- 
Method Details- 
binsint bins()Get the number of bins.- Returns:
- the number of bins
 
- 
toBinint toBin(double value) Determine the 0-based bin number in which the supplied value should be placed.- Parameters:
- value- the value
- Returns:
- the 0-based index of the bin
 
- 
fromBindouble fromBin(int bin) Determine the value at the upper range of the specified bin.- Parameters:
- bin- the 0-based bin number
- Returns:
- the value at the upper end of the bin; or negative infinityif the bin number is negative orpositive infinityif the 0-based bin number is greater than or equal to thenumber of bins.
 
 
-