% @(#)computfit.hlq	19.1 (ESO-IPG) 02/25/03 13:19:15 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      computfit.hlq
%.AUTHOR     JDP, IPG/ESO
%.KEYWORDS   MIDAS, help files, COMPUTE/FIT
%.PURPOSE    On-line help file for the command: COMPUTE/FIT
%.VERSION    1.0  12-APR-1984 : Creation, JDP
%----------------------------------------------------------------
\se
SECTION./FIT
\es\co
COMPUTE/FIT						12-APR-1984 JDP
\oc\su
COMPUTE/FIT image[,error]   [= function[(refima)]]
	compute fitted image values
COMPUTE/FIT table y[,error] [= function[(ind)]]
	compute fitted table values
\us\pu
Purpose:      
              Compute fitted values as an image of a column in a table.
              The user function is defined with the command EDIT/FIT,
              Function parameters are computed by the commands FIT/IMAGE
              or FIT/TABLE.
\up\sy
Syntax:       
              COMPUTE/FIT image[,error]   [= function[(refima)]]
              or
              COMPUTE/FIT table y[,error] [= function[(ind)]]

              In the first format :
\ys\pa
              image      = output image name
\ap\pa
              error      = optional error mask
\ap\pa
              function   = function name. Defaulted to the last used function.
\ap\pa
              refima     = optional reference image defining the image
                           space (start,step,no. of pixels).
              In the second format :
\ap\pa
              table      = table name
\ap\pa
              y          = output column, either already existing or a new one
                           created by the command, to store the fitted values.
\ap\pa
              error      = optional output column with the errors
\ap\pa
              function   = function name. Defaulted to the last used function.
\ap\pa
              ind        = optional column(s) to define the values of the
                           independent variable(s)
\ap\no
Note:         
              In conextion to tables, the columns with the independent and
              dependent variables are in the same table.
\on\exs
Examples:
\ex
              COMPUTE/FIT FITTED = FUNC
              computes the image FITTED according to the parameter values
              in the function FUNC. Image space is defaulted to the
              domain used in the command FIT/IMAGE.
\xe\ex
              COMPUTE/FIT TABLE :FIT = FUNC(:X1,:X2)
              computes the column :FIT in TABLE using the same parameter
              values as in the previous case, but the independent variables
              are defined in columns :X1 and :X2.
\xe \sxe
