Changeset 27840 for branches/simtest_nebulous_branches/extsrc/gpcsw/gpcsrc/fits/burntool/burnutils.c
- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
extsrc/gpcsw/gpcsrc/fits/burntool/burnutils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/extsrc/gpcsw/gpcsrc/fits/burntool/burnutils.c
r23490 r27840 115 115 if(VERBOSE & VERB_BOXGROW) { 116 116 printf("box: %d %d %d %d\n", box->sx, box->sy, box->ex, box->ey); 117 fflush(stdout); 117 118 } 118 119 … … 289 290 return(0); 290 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.
