public static void testDistribution(HashMethod hm, int hashesPerRound, int m, int k, int rounds,
List<List<byte[]>> hashData, StringBuilder chi, StringBuilder pvalue) {
DescriptiveStatistics pValues = new DescriptiveStatistics();
DescriptiveStatistics xs = new DescriptiveStatistics();
HashFunction hf = hm.getHashFunction();
int hashRounds = hashesPerRound / k;
for (int i = 0; i < rounds; i++) {
List<byte[]> data = hashData.get(i);
long[] observed = new long[m];
for (int j = 0; j < hashRounds; j++) {
int[] hashes = hf.hash(data.get(j), m, k);
for (int h : hashes) {
observed[h]++;
}
}
//MemoryBFTest.plotHistogram(observed, hm.toString());