List<ValidObservation> obs = new ArrayList<ValidObservation>();
for (double[] pair : jdMagData) {
ValidObservation ob = new ValidObservation();
ob.setDateInfo(new DateInfo(pair[0]));
ob.setMagnitude(new Magnitude(pair[1], 0));
obs.add(ob);
}
BinningResult result = DescStats.createSymmetricBinnedObservations(obs,
JDTimeElementEntity.instance, 10);