public void testRandomCorrelation() {
PearsonCorrelationMapping p = new PearsonCorrelationMapping();
for (int i = 0; i < num_samples; i++) {
p.addOccurrence(i, (this.rand.nextDouble() - 0.5) * i);
}
assertTrue(Math.abs(p.calculate()) < 0.1);
}
/**
* testPositiveCorrelation
*/