NormalDistribution extends AbstractRealDistribution { public double getMean() { return mean; } NormalDistribution();  NormalDistribution(double mean, double sd);  NormalDistribution(double mean, double sd, double inverseCumAccuracy);  NormalDistribution(RandomGenerator rng, double mean, double sd);  NormalDistribution(RandomGenerator rng,
                              double mean,
                              double sd,
                              double inverseCumAccuracy); double getMean(); double getStandardDeviation(); double density(double x); @Override double logDensity(double x); double cumulativeProbability(double x); @Override double inverseCumulativeProbability(final double p); @Override@Deprecated double cumulativeProbability(double x0, double x1); @Override double probability(double x0,
                              double x1); double getNumericalMean(); double getNumericalVariance(); double getSupportLowerBound(); double getSupportUpperBound(); boolean isSupportLowerBoundInclusive(); boolean isSupportUpperBoundInclusive(); boolean isSupportConnected(); @Override double sample(); static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY; }
@Test public void testGetMean() { NormalDistribution distribution = (NormalDistribution) getDistribution(); Assert.assertEquals(2.1, distribution.getMean(), 0); }