NAME
c_ftcurvs1 - calculate values for a smoothing spline for data in the plane.FUNCTION PROTOTYPE
int c_ftcurvs1(int, float [], float [], int, float [],int, float, float, float [], float []);
SYNOPSIS
int c_ftcurvs1(int n, float xi[], float yi[], int dflg,float d[], int m, float xl, float xr,
float xo[], float yo[])
DESCRIPTION
- n
- The number of input data points. (n > 1)
- xi
- An array containing the X-coordinates for the input data. These need not be increasing.
- yi
- An array containing the Y-coordinates for the input data.
- dflg
- A switch for interpreting the value of d (as described below). If dflg=0, then d is an array of length n (an error estimate for each input data value); if dflg=1, then d is a scalar that serves as an error estimate for every single data item.
- d
- A user-specified value containing the observed weights. D may be either an array or a scalar, depending on the value of dflg.
- m
- The number of output values.
- xl
- A lower limit for an interval of interpolation. The interval between zero and one interpolates the entire curve, any value outside this range results in extrapolation. The interval [xl,xr] is divided into m equal values to produce the interpolated curve.
- xr
- An upper limit for an interval of interpolation. The interval between zero and one interpolates the entire curve, any value outside this range results in extrapolation. The interval [xl,xr] is divided into m equal values to produce the interpolated curve.
- xo
- The interpolated X values.
- yo
- The interpolated Y values.
RETURN VALUE
c_ftcurvs1 returns an error value as per:USAGE
This function computes an interpolatory smoothing spline under tension through a sequence of data values in the plane.ACCESS
To use c_ftcurvs1, load the NCAR Graphics library ngmath.SEE ALSO
fitgrid_params, c_ftseti, c_ftsetr, c_ftsetc.COPYRIGHT
Copyright (C) 2000August 2002 | UNIX |