>  Docs Center  >  Libraries  >  Buie  >  EDGEFIT
Libraries

EDGEFIT

EDGEFIT

Name


  edgefit

Purpose


  Fit an edge between two signal levels

Description


Category


  Function fitting

Calling Sequence


  edgefit,x,y,err,xedge,xedgesig

Inputs


  x - independent variable (vector)
  y - dependent variable (vector)
  err - uncertainties on y

Optional Input Parameters


Keyword Input Parameters


Outputs


  Two plots are generated and the fitted values are printed to the screen.
  xedge - 3 element vector:
              0 - signal level on the left of the edge
              1 - signal level on the right of the edge
              2 - the x value of where the edge is
  xedgesig - 1-sigma uncertainty on the values in xedge

Keyword Output Parameters


Common Blocks


Side Effects


Restrictions


  Assumes data are strictly uniform in x (spacing does not vary).

Procedure


Modification History


  1996/12/23, Written by Marc W. Buie, Lowell Observatory
  2017/01/19, MWB, many rewrites, may sort of work now but still a bit
                fragile or non-general. Use with extreme caution.



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