ExponentialDistribution extends AbstractRealDistribution { public double getMean() { return mean; } ExponentialDistribution(double mean);  ExponentialDistribution(double mean, double inverseCumAccuracy);  ExponentialDistribution(RandomGenerator rng, double mean);  ExponentialDistribution(RandomGenerator rng,
                                   double mean,
                                   double inverseCumAccuracy); double getMean(); double density(double x); @Override double logDensity(double x); double cumulativeProbability(double x); @Override double inverseCumulativeProbability(double p); @Override double sample(); double getNumericalMean(); double getNumericalVariance(); double getSupportLowerBound(); double getSupportUpperBound(); boolean isSupportLowerBoundInclusive(); boolean isSupportUpperBoundInclusive(); boolean isSupportConnected(); static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY; }
@Test public void testMeanAccessors() { ExponentialDistribution distribution = (ExponentialDistribution) getDistribution(); Assert.assertEquals(5d, distribution.getMean(), Double.MIN_VALUE); }