>  Docs Center  >  Libraries  >  Buie  >  FOURFIT
Libraries

FOURFIT

FOURFIT

Name


  fourfit

Purpose


  Fit one or more fourier terms to discrete (periodic) data.

Description


Category


  Function fitting

Calling Sequence


  fourfit,phase,data,sig,nterms,c,csig,YFIT=yfit,CHISQ=chisq

Inputs


  phase - Fraction of period (mod or linearly increasing).
  data - Measured values.
  sig - Uncertainties of the data.
  nterms - Number of fourier terms to fit. (2*nterms+1 unknowns)

Optional Input Parameters


Keyword Input Parameters


Outputs


  c - fourier series coefficients (see fourfunc)
  csig - uncertainties of the coefficients

Keyword Output Parameters


Common Blocks


Side Effects


Restrictions


Procedure


Modification History


  94/10/10, Written by Marc W. Buie, Lowell Observatory
  2009/02/12, MWB, found and fixed a serious bug that caused the chisq
    value to be WRONG. The old value was basically a reduced chisq
    as if the number of free parameters were zero. Ouch.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us