Changeset 26766 for trunk/extsrc/gpcsw/gpcsrc/fits/burntool/burnutils.c
- Timestamp:
- Feb 3, 2010, 1:00:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/extsrc/gpcsw/gpcsrc/fits/burntool/burnutils.c
r25070 r26766 290 290 return(0); 291 291 } 292 293 /****************************************************************/ 294 /* Return of RMS relative to Fit y = ax + b */ 295 STATIC int linearrms(int npt, double *x, double *y, double a, double b, 296 double *rms) 297 { 298 *rms = 0.0; 299 while(--npt >= 0) *rms += (y[npt]-a*x[npt]-b)*(y[npt]-a*x[npt]-b); 300 if(*rms > 0) *rms = sqrt(*rms); 301 return(0); 302 }
Note:
See TracChangeset
for help on using the changeset viewer.
