Package org.apache.commons.math.distribution

Examples of org.apache.commons.math.distribution.BetaDistributionImpl.cumulativeProbability()


         *  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));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.