>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  GEN_FIT
Libraries

GEN_FIT

GEN_FIT

Name


      GEN_FIT

Purpose


      Fitted Y array for given X array from given fit parameters.

Category


Calling Sequence


      y = gen_fit(x, cur)

Inputs


      x = array of desired x values. May be a scalar. in
      cur = array describing the fitted curve. in
        Has following format:
        cur = [ftype, xoff, yoff, ndeg, c0, c1, ..., cn]
              for polynomial,
        cur = [ftype, xoff, yoff, a, b]
              for exponential and power.
        ftype = 0, 1, 2 for Polynomial, Exponential, Power Law.

Keyword Parameters


Outputs


      y = fitted y values. May be a scalar. out

Common Blocks


Notes


      Note: CUR may be obtained from the routine FIT.
     

Modification History


      R. Sterner. 14 Oct, 1986.
      RES 9 Oct, 1989 --- converted to SUN.
  Copyright (C) 1986, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



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