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