Examples of FDistributionImpl


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

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

  @DataParallel @Internal
  public static double df(@Recycle double x, @Recycle double df1, @Recycle double df2, boolean log) {
    return d(new FDistributionImpl(df1, df2), x, log);
  }
View Full Code Here

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

    return F.dnf(x, df1, df2, ncp, log);
  }

  @DataParallel @Internal
  public static double pf(@Recycle double q, @Recycle double df1, @Recycle double df2, boolean lowerTail, boolean logP) {
    return p(new FDistributionImpl(df1, df2), q, lowerTail, logP);
  }
View Full Code Here

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

    return F.pnf(q, df1, df2, ncp, lowerTail, logP);
  }

  @DataParallel @Internal
  public static double qf(@Recycle double p, @Recycle double df1, @Recycle double df2, boolean lowerTail, boolean logP) {
    return q(new FDistributionImpl(df1, df2), p, lowerTail, logP);
  }
View Full Code Here

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

     * is the commons-math implementation of the F distribution.</p>
     */
    public double anovaPValue(Collection<double[]> categoryData)
        throws IllegalArgumentException, MathException {
        AnovaStats a = anovaStats(categoryData);
        FDistribution fdist = new FDistributionImpl(a.dfbg, a.dfwg);
        return 1.0 - fdist.cumulativeProbability(a.F);
    }
View Full Code Here

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

     * @return random value sampled from the F(numeratorDf, denominatorDf) distribution
     * @throws MathException if an error occurs generating the random value
     * @since 2.2
     */
    public double nextF(double numeratorDf, double denominatorDf) throws MathException {
        return nextInversionDeviate(new FDistributionImpl(numeratorDf, denominatorDf));
    }
View Full Code Here

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

        }
        TestUtils.assertChiSquareAccept(expected, counts, 0.001);
    }
   
    public void testNextF() throws Exception {
        double[] quartiles = TestUtils.getDistributionQuartiles(new FDistributionImpl(12, 5));
        long[] counts = new long[4];
        randomData.reSeed(1000);
        for (int i = 0; i < 1000; i++) {
            double value = randomData.nextF(12, 5);
            TestUtils.updateCounts(value, counts, quartiles);
View Full Code Here

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

     * is the commons-math implementation of the F distribution.</p>
     */
    public double anovaPValue(Collection<double[]> categoryData)
        throws IllegalArgumentException, MathException {
        AnovaStats a = anovaStats(categoryData);
        FDistribution fdist = new FDistributionImpl(a.dfbg, a.dfwg);
        return 1.0 - fdist.cumulativeProbability(a.F);
    }
View Full Code Here

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

     * is the commons-math implementation of the F distribution.</p>
     */
    public double anovaPValue(Collection<double[]> categoryData)
        throws IllegalArgumentException, MathException {
        AnovaStats a = anovaStats(categoryData);
        FDistribution fdist = new FDistributionImpl(a.dfbg, a.dfwg);
        return 1.0 - fdist.cumulativeProbability(a.F);
    }
View Full Code Here

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

     * is the commons-math implementation of the F distribution.</p>
     */
    public double anovaPValue(Collection categoryData)
        throws IllegalArgumentException, MathException {
        AnovaStats a = anovaStats(categoryData);
        FDistribution fdist = new FDistributionImpl(a.dfbg, a.dfwg);
        return 1.0 - fdist.cumulativeProbability(a.F);
    }
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.