for (int i = 0; i < num_samples; i++) {
p.addOccurrence(Integer.MAX_VALUE, Integer.MAX_VALUE);
}
assertEquals(1.0d, roundToDecimals(p.calculate(), 1));
p.clear();
for (int i = 0; i < num_samples; i++) {
p.addOccurrence(Integer.MIN_VALUE, Integer.MIN_VALUE);
}
assertEquals(1.0d, roundToDecimals(p.calculate(), 1));
}