@Test public void testVariance() { System.out.println("variance"); FDistribution instance = new FDistribution(10, 20); instance.rand(); assertEquals(0.4320988, instance.variance(), 1E-7); }
@Override public double variance() { return 2.0 * nu2 * nu2 * (nu1 + nu2 - 2) / (nu1 * (nu2 - 2) * (nu2 - 2) * (nu2 - 4)); }
FDistribution extends AbstractDistribution { @Override public double variance() { return 2.0 * nu2 * nu2 * (nu1 + nu2 - 2) / (nu1 * (nu2 - 2) * (nu2 - 2) * (nu2 - 4)); } }
FDistribution extends AbstractDistribution { @Override public double variance() { return 2.0 * nu2 * nu2 * (nu1 + nu2 - 2) / (nu1 * (nu2 - 2) * (nu2 - 2) * (nu2 - 4)); } FDistribution(int nu1, int nu2); }
FDistribution extends AbstractDistribution { @Override public double variance() { return 2.0 * nu2 * nu2 * (nu1 + nu2 - 2) / (nu1 * (nu2 - 2) * (nu2 - 2) * (nu2 - 4)); } FDistribution(int nu1, int nu2); @Override int length(); @Override double mean(); @Override double variance(); @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); }
FDistribution extends AbstractDistribution { @Override public double variance() { return 2.0 * nu2 * nu2 * (nu1 + nu2 - 2) / (nu1 * (nu2 - 2) * (nu2 - 2) * (nu2 - 4)); } FDistribution(int nu1, int nu2); @Override int length(); @Override double mean(); @Override double variance(); @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); final int nu1; final int nu2; }