assertTrue(String.format("Expected %s was %s", Arrays.toString(expected),
Arrays.toString(actual)), Arrays.equals(expected, actual));
}
public void testLogarithmicScaling() throws Exception {
Histogram histogram = new Histogram(1, 1, 3, new Logarithmic());
for (int i=0; i<100; i++) {
histogram.value(1);
}
for (int i=0; i<10; i++) {
histogram.value(2);