TestUtils.assertChiSquareAccept(expected, counts, 0.001);
}
@Test
public void testNextCauchy() throws Exception {
double[] quartiles = TestUtils.getDistributionQuartiles(new CauchyDistribution(1.2, 2.1));
long[] counts = new long[4];
randomData.reSeed(1000);
for (int i = 0; i < 1000; i++) {
double value = randomData.nextCauchy(1.2, 2.1);
TestUtils.updateCounts(value, counts, quartiles);