public void testOneSampleTTest() throws Exception {
double[] oneSidedP =
{2d, 0d, 6d, 6d, 3d, 3d, 2d, 3d, -6d, 6d, 6d, 6d, 3d, 0d, 1d, 1d, 0d, 2d, 3d, 3d };
SummaryStatistics oneSidedPStats = new SummaryStatistics();
for (int i = 0; i < oneSidedP.length; i++) {
oneSidedPStats.addValue(oneSidedP[i]);
}
// Target comparison values computed using R version 1.8.1 (Linux version)
assertEquals("one sample t stat", 3.86485535541,
TestUtils.t(0d, oneSidedP), 10E-10);
assertEquals("one sample t stat", 3.86485535541,