* testHalf
*/
public void testHalf() {
RatioMapping p = new RatioMapping();
for (int i = 0; i < num_samples; i++) {
p.addOccurrence(-1, (this.rand.nextDouble()) * i);
}
for (int i = 0; i < num_samples; i++) {
p.addOccurrence(i, i);
}
assertEquals(0.5, roundToDecimals(p.calculate(), 1));