IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2010, 7:06:18 PM (17 years ago)
Author:
watersc1
Message:

new burntool code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/extsrc/gpcsw/gpcsrc/fits/burntool/burnutils.c

    r25070 r26764  
    290290   return(0);
    291291}
     292
     293/****************************************************************/
     294/* Return of RMS relative to Fit y = ax + b */
     295STATIC 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.