WeightedPloidyHistogram { @NotNull public double[] histogram(@NotNull final Collection<? extends WeightedPloidy> ploidies) { return histogram(ploidies, WeightedPloidy::ploidy, WeightedPloidy::weight); } WeightedPloidyHistogram(final double maxPloidy, final double binWidth);   WeightedPloidyHistogram(final double maxPloidy, final double binWidth, final double offset); @NotNull double[] histogram(@NotNull final Collection<? extends WeightedPloidy> ploidies);  }
@Test public void testMaxBucket() { final double max = 5; final WeightedPloidyHistogram victim = new WeightedPloidyHistogram(max, 0.01); victim.histogram(Lists.newArrayList(create(max, 20, 40))); }