@Test
public void testDensity(){

    int nf=12;
    Gamma dist = new Gamma(nf/2,2);
    Chi2 chi=new Chi2(nf);
    for (double d=0; d<100; d+=.05){
        assertEquals(dist.getDensity(d),chi.getDensity(d), 1e-6);
    }
}