ob.setDateInfo(new DateInfo(pair[0]));
ob.setMagnitude(new Magnitude(pair[1], 0));
obs.add(ob);
}
BinningResult result = DescStats.createSymmetricBinnedObservations(obs,
JDTimeElementEntity.instance, 10);
double fValue = result.getFValue();
assertEquals("2.87", String.format("%2.2f", fValue));
double pValue = result.getPValue();
assertEquals("0.000002", String.format("%1.6f", pValue));
int k = result.getMagnitudeBins().size();
int dfW = result.getWithinGroupDF();
assertEquals(obs.size()-k, dfW);
int dfB = result.getBetweenGroupDF();
assertEquals(k-1, dfB);
}