@Test public void testVariance() { System.out.println("variance"); LogisticDistribution instance = new LogisticDistribution(2.0, 1.0); instance.rand(); assertEquals(Math.PI*Math.PI/3, instance.variance(), 1E-7); }
@Override public double variance() { return PI2_3 * scale * scale; }
LogisticDistribution extends AbstractDistribution { @Override public double variance() { return PI2_3 * scale * scale; } }
LogisticDistribution extends AbstractDistribution { @Override public double variance() { return PI2_3 * scale * scale; } LogisticDistribution(double mu, double scale); }
LogisticDistribution extends AbstractDistribution { @Override public double variance() { return PI2_3 * scale * scale; } LogisticDistribution(double mu, double scale); @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); }
LogisticDistribution extends AbstractDistribution { @Override public double variance() { return PI2_3 * scale * scale; } LogisticDistribution(double mu, double scale); @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); final double mu; final double scale; }