Examples of WeibullDistributionImpl


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

    return q(new UniformDistribution(min, max), p, lowerTail, logP);
  }

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

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

    return d(new WeibullDistributionImpl(shape, scale), x, log);
  }

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

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

    return p(new WeibullDistributionImpl(shape, scale), q, lowerTail, logP);
  }

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

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

     * @return random value sampled from the Weibull(shape, size) distribution
     * @throws MathException if an error occurs generating the random value
     * @since 2.2
     */
    public double nextWeibull(double shape, double scale) throws MathException {
        return nextInversionDeviate(new WeibullDistributionImpl(shape, scale));
    }
View Full Code Here

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

        }
        TestUtils.assertChiSquareAccept(expected, counts, 0.001);
    }
   
    public void testNextWeibull() throws Exception {
        double[] quartiles = TestUtils.getDistributionQuartiles(new WeibullDistributionImpl(1.2, 2.1));
        long[] counts = new long[4];
        randomData.reSeed(1000);
        for (int i = 0; i < 1000; i++) {
            double value = randomData.nextWeibull(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.