[Kst] kdeextragear-2/kst/plugins/linefit

George Staikos staikos at kde.org
Fri May 23 20:38:10 CEST 2003


CVS commit by staikos: 

typo => wrong results


  M +2 -2      linefit.c   1.3


--- kdeextragear-2/kst/plugins/linefit/linefit.c  #1.2:1.3
@@ -52,6 +52,6 @@ int linefit(const double *const inArrays
         outArrays[X][0] = inArrays[X][0];
         outArrays[X][1] = inArrays[X][inArrayLens[X]-1];
-        outArrays[Y][0] = b+a*outArrays[X][0];
-        outArrays[Y][1] = b+a*outArrays[X][1];
+        outArrays[Y][0] = a+b*outArrays[X][0];
+        outArrays[Y][1] = a+b*outArrays[X][1];
 
         return 0;




More information about the Kst mailing list