@Test public void testEntropy() { System.out.println("entropy"); BinomialDistribution instance = new BinomialDistribution(100, 0.3); instance.rand(); assertEquals( 2.9412, instance.entropy(), 1E-4); }
@Override public double entropy() { return entropy; }
BinomialDistribution extends DiscreteDistribution { @Override public double entropy() { return entropy; } }
BinomialDistribution extends DiscreteDistribution { @Override public double entropy() { return entropy; } BinomialDistribution(int n, double p); }
BinomialDistribution extends DiscreteDistribution { @Override public double entropy() { return entropy; } BinomialDistribution(int n, double p); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double p(int k); @Override double logp(int k); @Override double cdf(double k); @Override double quantile(double p); @Override double rand(); }
BinomialDistribution extends DiscreteDistribution { @Override public double entropy() { return entropy; } BinomialDistribution(int n, double p); @Override int length(); @Override double mean(); @Override double variance(); @Override double sd(); @Override double entropy(); @Override String toString(); @Override double p(int k); @Override double logp(int k); @Override double cdf(double k); @Override double quantile(double p); @Override double rand(); final double p; final int n; }