@Override
    public double entropy() {
        return entropy;
    }
@Test
    public void testEntropy() {
        System.out.println("entropy");
        BetaDistribution instance = new BetaDistribution(2, 5);
        instance.rand();
        assertEquals(-0.4845307, instance.entropy(), 1E-7);
    }