Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
None
-
None
-
Operating System: Windows 2000
Platform: PC
-
39432
Description
getSumSquaredErrors returns -ve value. See test below:
public void testSimpleRegression() {
double[] y =
;
double[] x =
;
double[] x2 =
;
SimpleRegression reg = new SimpleRegression();
for (int i = 0; i < x.length; i++)
assertTrue(reg.getSumSquaredErrors() >= 0.0); // OK
reg.clear();
for (int i = 0; i < x.length; i++)
assertTrue(reg.getSumSquaredErrors() >= 0.0); // FAIL
}