WeibullDistribution extends AbstractRealDistribution { public double getShape() { return shape; } WeibullDistribution(double alpha, double beta);  WeibullDistribution(double alpha, double beta,
                               double inverseCumAccuracy);  WeibullDistribution(RandomGenerator rng, double alpha, double beta);  WeibullDistribution(RandomGenerator rng,
                               double alpha,
                               double beta,
                               double inverseCumAccuracy); double getShape(); double getScale(); double density(double x); @Override double logDensity(double x); double cumulativeProbability(double x); @Override double inverseCumulativeProbability(double p); double getNumericalMean(); double getNumericalVariance(); double getSupportLowerBound(); double getSupportUpperBound(); boolean isSupportLowerBoundInclusive(); boolean isSupportUpperBoundInclusive(); boolean isSupportConnected(); static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY; }
@Test public void testAlpha() { WeibullDistribution dist = new WeibullDistribution(1, 2); Assert.assertEquals(1, dist.getShape(), 0); try { new WeibullDistribution(0, 2); Assert.fail("NotStrictlyPositiveException expected"); } catch (NotStrictlyPositiveException e) { } }