@Test
public void testHistogram(){
GenericHistogram hist = new GenericHistogram(2,true);
int[] d1 = {1,1,1,1,1};
int[] d2 = {1,1,1,1};
hist.updateHistogram(d1);
hist.updateHistogram(d2);
double[] histData = hist.getHist();
assertTrue(histData[0] == 1.1);
assertTrue(histData[1] == 0.9);