PoissonDistribution extends AbstractIntegerDistribution { public double getMean() { return mean; } PoissonDistribution(double p);  PoissonDistribution(double p, double epsilon, int maxIterations);  PoissonDistribution(RandomGenerator rng,
                               double p,
                               double epsilon,
                               int maxIterations);  PoissonDistribution(double p, double epsilon);  PoissonDistribution(double p, int maxIterations); double getMean(); double probability(int x); @Override double logProbability(int x); double cumulativeProbability(int x); double normalApproximateProbability(int x); double getNumericalMean(); double getNumericalVariance(); int getSupportLowerBound(); int getSupportUpperBound(); boolean isSupportConnected(); @Override int sample(); static final int DEFAULT_MAX_ITERATIONS; static final double DEFAULT_EPSILON; }
@Test public void testMean() { PoissonDistribution dist = new PoissonDistribution(10.0); Assert.assertEquals(10.0, dist.getMean(), 0.0); }