[Kst] kdeextragear-2/kst/plugins/fits
Andrew Walker
arwalker at sumusltd.com
Mon Jul 19 21:18:13 CEST 2004
CVS commit by arwalker:
Correctly set the number of parameters.
M +1 -1 linear_unweighted/kstfit_linear_unweighted.cpp 1.5
M +1 -1 linear_weighted/kstfit_linear_weighted.cpp 1.4
--- kdeextragear-2/kst/plugins/fits/linear_weighted/kstfit_linear_weighted.cpp #1.3:1.4
@@ -33,5 +33,5 @@ int kstfit_linear_weighted(const double
double yErr;
- if( precursor( inArrayLens, outArrays, outArrayLens, &iLength, false, true, 1 ) ) {
+ if( precursor( inArrayLens, outArrays, outArrayLens, &iLength, false, true, 2 ) ) {
if( !gsl_fit_wlinear( inArrays[XVALUES], 1, inArrays[WEIGHTS], 1, inArrays[YVALUES], 1, iLength, &c0, &c1, &cov00, &cov01, &cov11, &dSumSq ) ) {
--- kdeextragear-2/kst/plugins/fits/linear_unweighted/kstfit_linear_unweighted.cpp #1.4:1.5
@@ -33,5 +33,5 @@ int kstfit_linear_unweighted(const doubl
double yErr;
- if( precursor( inArrayLens, outArrays, outArrayLens, &iLength, false, true, 1 ) ) {
+ if( precursor( inArrayLens, outArrays, outArrayLens, &iLength, false, true, 2 ) ) {
if( !gsl_fit_linear( inArrays[XVALUES], 1, inArrays[YVALUES], 1, iLength, &c0, &c1, &cov00, &cov01, &cov11, &dSumSq ) ) {
More information about the Kst
mailing list