@Override
    public double entropy() {
        return entropy;
    }
@Test
    public void testEntropy() {
        System.out.println("entropy");
        BinomialDistribution instance = new BinomialDistribution(100, 0.3);
        instance.rand();
        assertEquals( 2.9412, instance.entropy(), 1E-4);
    }