Examples of CauchyDistributionImpl


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

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

    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

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

    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

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

     * @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

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

        }
        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
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.