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

George Staikos staikos at kde.org
Thu Jun 12 09:22:33 CEST 2003


CVS commit by staikos: 

it helps to use the new variable


  M +1 -1      linefit.c   1.8


--- kdeextragear-2/kst/plugins/linefit/linefit.c  #1.7:1.8
@@ -87,5 +87,5 @@ int linefit(const double *const inArrays
                         idx2--;
                 }
-                newX = inArrays[X][idx] + (inArrays[X][idx+1] - inArrays[X][idx])*skew;
+                newX = inArrays[X][idx] + (inArrays[X][idx2] - inArrays[X][idx])*skew;
                 ci = inArrays[Y][i] - a - b*newX;
                 chi2 += ci*ci;




More information about the Kst mailing list