Previous: fitc2 Up: ../plot79_f.html Next: fitcs
SUBROUTINE FITCF (MODE, X, Y, L, M, U, V, N) C$ (Smooth Curve Fitting) C$ This subroutine fits a smooth curve to a given set of input C$ data points in an X-Y plane. It interpolates points in C$ each interval between a pair of data points and generates a C$ set of output points consisting of the input data points C$ and the interpolated points. It can process either a C$ single-valued function or a multiple-valued function. C$ C$ The input arguments are: C$ C$ MODE = mode of the curve (must be 1 or 2) C$ = 1 for a single-valued function C$ = 2 for multiple-valued function C$ X = Array of dimension L storing the abscissas of input C$ data points (in ascending or descending order for mode C$ = 1) C$ Y = Array of dimension L storing the ordinates of input C$ data points C$ L = Number of input data points (must be 2 or greater) C$ M = Number of subintervals between each pair of input data C$ points (must be 2 or greater). C$ N = Number of output points C$ = (L-1)*M+1 C$ C$ The output arguments are: C$ C$ U = Array of dimension N where the abscissas of output C$ points are to be displayed C$ V = Array of dimension N where the ordinates of output C$ points are to be displayed C$ C$ Author: Hiroshi Akima, "Interpolation and Smooth Curve C$ Fitting Based on Local Procedures", COMM. ACM 15, C$ 914-918 (1972), and "A New Method of Interpolation C$ and Smooth Curve Fitting Based on Local C$ Procedures", J. ACM 17, 589-602 (1970). C$ C$ Corrections: M.R. Andersen, "Remark on Algorithm 433", ACM C$ Trans. on Math. Software, 2, 208 (1976). C$ (30-JAN-82)