@Test public void testMean() { System.out.println("mean"); TDistribution instance = new TDistribution(20); instance.rand(); assertEquals(0.0, instance.mean(), 1E-7); }
@Override public double mean() { if (nu == 1) { throw new UnsupportedOperationException("Mean is undefined for T distribution with nu = 1"); } return 0.0; }
TDistribution extends AbstractDistribution { @Override public double mean() { if (nu == 1) { throw new UnsupportedOperationException("Mean is undefined for T distribution with nu = 1"); } return 0.0; } }
TDistribution extends AbstractDistribution { @Override public double mean() { if (nu == 1) { throw new UnsupportedOperationException("Mean is undefined for T distribution with nu = 1"); } return 0.0; } TDistribution(int nu); }
TDistribution extends AbstractDistribution { @Override public double mean() { if (nu == 1) { throw new UnsupportedOperationException("Mean is undefined for T distribution with nu = 1"); } return 0.0; } TDistribution(int nu); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double rand(); @Override double p(double x); @Override double logp(double x); @Override double cdf(double x); @Override double quantile(double p); double cdf2tiled(double x); double quantile2tiled(double p); }
TDistribution extends AbstractDistribution { @Override public double mean() { if (nu == 1) { throw new UnsupportedOperationException("Mean is undefined for T distribution with nu = 1"); } return 0.0; } TDistribution(int nu); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double rand(); @Override double p(double x); @Override double logp(double x); @Override double cdf(double x); @Override double quantile(double p); double cdf2tiled(double x); double quantile2tiled(double p); final int nu; }