* evaluated at the random value from the distribution should match the uniform
* random value used to generate it, which is stored in the quantiles[] array.
*/
for (int i = 0; i < 10; i++) {
double value = randomData.nextInversionDeviate(betaDistribution);
assertEquals(betaDistribution.cumulativeProbability(value), quantiles[i], 10E-9);
}
}
public void testNextBeta() throws Exception {
double[] quartiles = TestUtils.getDistributionQuartiles(new BetaDistributionImpl(2,5));