@Test public void testWithNoBinsDefined() { assertEquals(Histogram.NO_BIN, hist.getBinForValue(0.0)); }
public int getBinForValue(T value) { ensureBinsSorted(); return findBin(value); }
Histogram { public int getBinForValue(T value) { ensureBinsSorted(); return findBin(value); } }
Histogram { public int getBinForValue(T value) { ensureBinsSorted(); return findBin(value); } Histogram(); }
Histogram { public int getBinForValue(T value) { ensureBinsSorted(); return findBin(value); } Histogram(); void addBin(Range<T> range); int addValue(T value); void addValues(List<T> values); int getBinForValue(T value); List<Integer> getBinForValues(List<T> values); int size(); List<Integer> getCounts(); }
Histogram { public int getBinForValue(T value) { ensureBinsSorted(); return findBin(value); } Histogram(); void addBin(Range<T> range); int addValue(T value); void addValues(List<T> values); int getBinForValue(T value); List<Integer> getBinForValues(List<T> values); int size(); List<Integer> getCounts(); static final int NO_BIN; }