* Test SummaryStatistics - implementations that do not store the data
* and use single pass algorithms to compute statistics
*/
@Test
public void testSummaryStatistics() throws Exception {
SummaryStatistics u = new SummaryStatistics();
loadStats("data/PiDigits.txt", u);
Assert.assertEquals("PiDigits: std", std, u.getStandardDeviation(), 1E-13);
Assert.assertEquals("PiDigits: mean", mean, u.getMean(), 1E-13);
loadStats("data/Mavro.txt", u);
Assert.assertEquals("Mavro: std", std, u.getStandardDeviation(), 1E-14);
Assert.assertEquals("Mavro: mean", mean, u.getMean(), 1E-14);
loadStats("data/Michelso.txt", u);
Assert.assertEquals("Michelso: std", std, u.getStandardDeviation(), 1E-13);
Assert.assertEquals("Michelso: mean", mean, u.getMean(), 1E-13);
loadStats("data/NumAcc1.txt", u);
Assert.assertEquals("NumAcc1: std", std, u.getStandardDeviation(), 1E-14);
Assert.assertEquals("NumAcc1: mean", mean, u.getMean(), 1E-14);
loadStats("data/NumAcc2.txt", u);
Assert.assertEquals("NumAcc2: std", std, u.getStandardDeviation(), 1E-14);
Assert.assertEquals("NumAcc2: mean", mean, u.getMean(), 1E-14);
}