Package org.apache.commons.math.distribution

Examples of org.apache.commons.math.distribution.CauchyDistributionImpl


    return Binom.qnbinom_mu(p, size, mu, lower_tail, log_p);
  }

  @DataParallel @Internal
  public static double dcauchy(@Recycle double x, @Recycle double location, @Recycle double scale, boolean log) {
    return d(new CauchyDistributionImpl(location, scale), x, log);
  }
View Full Code Here


    return d(new CauchyDistributionImpl(location, scale), x, log);
  }

  @DataParallel @Internal
  public static double pcauchy(@Recycle double q, @Recycle double location, @Recycle double scale, boolean lowerTail, boolean logP) {
    return p(new CauchyDistributionImpl(location, scale), q, lowerTail, logP);
  }
View Full Code Here

    return p(new CauchyDistributionImpl(location, scale), q, lowerTail, logP);
  }

  @DataParallel @Internal
  public static double qcauchy(@Recycle double p, @Recycle double location, @Recycle double scale, boolean lowerTail, boolean logP) {
    return q(new CauchyDistributionImpl(location, scale), p, lowerTail, logP);
  }
View Full Code Here

     * @return random value sampled from the Cauchy(median, scale) distribution
     * @throws MathException if an error occurs generating the random value
     * @since 2.2
     */
    public double nextCauchy(double median, double scale) throws MathException {
        return nextInversionDeviate(new CauchyDistributionImpl(median, scale));
    }
View Full Code Here

        }
        TestUtils.assertChiSquareAccept(expected, counts, 0.001);
    }
   
    public void testNextCauchy() throws Exception {
        double[] quartiles = TestUtils.getDistributionQuartiles(new CauchyDistributionImpl(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);
View Full Code Here

TOP

Related Classes of org.apache.commons.math.distribution.CauchyDistributionImpl

Copyright © 2018 www.massapicom. 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.