Add temp debug output

This commit is contained in:
Sebb 2015-01-12 18:20:01 +00:00
parent 0c1e6fb256
commit b8e9475505
1 changed files with 4 additions and 0 deletions

View File

@ -551,9 +551,13 @@ public final class SimpleRegressionTest {
@Test
public void testPerfect2() {
SimpleRegression regression = new SimpleRegression();
System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
regression.addData(0, 0);
System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
regression.addData(1, 1);
System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
regression.addData(2, 2);
System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
Assert.assertEquals(0.0, regression.getSlopeStdErr(), 0.0);
Assert.assertEquals(0.0, regression.getSignificance(), Double.MIN_VALUE);
Assert.assertEquals(1, regression.getRSquare(), Double.MIN_VALUE);