@Override
    public double variance() {
        return variance;
    }
@Test
    public void testVariance() {
        System.out.println("variance");
        KernelDensity instance = new KernelDensity(x);
        double expResult = 9.404966;
        double result = instance.variance();
        assertEquals(expResult, result, 1E-6);
    }