StudentTDistribution implements ProbabilityDistribution<Double> { @Override public double getCDF(final Double x) { Validate.notNull(x); return _dist.cdf(x); } StudentTDistribution(final double degFreedom);  StudentTDistribution(final double degFreedom, final RandomEngine engine); @Override double getCDF(final Double x); @Override double getPDF(final Double x); @Override double nextRandom(); @Override double getInverseCDF(final Double p); double getDegreesOfFreedom(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void test() { ProbabilityDistribution<Double> dist = new StudentTDistribution(1, ENGINE); assertCDFWithNull(dist); assertPDFWithNull(dist); assertInverseCDF(X, dist); for (int i = 0; i < 10; i++) { dist = new StudentTDistribution(DOF[i], ENGINE); assertEquals(P[i], dist.getCDF(X[i]), EPS); } }