ConstantRealDistribution extends AbstractRealDistribution { @Override public double inverseCumulativeProbability(final double p) throws OutOfRangeException { if (p < 0.0 || p > 1.0) { throw new OutOfRangeException(p, 0, 1); } return value; } ConstantRealDistribution(double value); double density(double x); double cumulativeProbability(double x); @Override double inverseCumulativeProbability(final double p); double getNumericalMean(); double getNumericalVariance(); double getSupportLowerBound(); double getSupportUpperBound(); boolean isSupportLowerBoundInclusive(); boolean isSupportUpperBoundInclusive(); boolean isSupportConnected(); @Override double sample(); @Override void reseedRandomGenerator(long seed);  }
@Override @Test public void testInverseCumulativeProbabilities() { RealDistribution dist = getDistribution(); for (double x : getCumulativeTestValues()) { Assert.assertEquals(1,dist.inverseCumulativeProbability(x), 0); } }