1c_ftcurv(3NCARG) NCAR GRAPHICS c_ftcurv(3NCARG)
2
3
4
6 c_ftcurv - 1D interpolation for non-periodic functions
7
9 int c_ftcurv (int, float [], float [], int, float [], float []);
10
12 int c_ftcurv (n, xi, yi, m, xo, yo);
13
15 n The number of input data points. (n > 1)
16
17 xi An array containing the abscissae for the input function.
18
19 yi An array containing the functional values of the input
20 function -- y(k) is the functional value at x(k) for k=0,n.
21
22 m The number of desired interpolated values.
23
24 xo An array containing the abscissae for the interpolated val‐
25 ues.
26
27 yo An array containing the interpolated functional values --
28 yo(k) is the functional value at xo(k) for k=0,n.
29
31 c_ftcurv returns an error value as per:
32
33 = 0 -- no error.
34 = 1 -- if n is less than 2.
35 = 2 -- if X values are not strictly increasing.
36
38 c_ftcurv is called after all of the desired values for control parame‐
39 ters have been set using the procedures c_ftseti, c_ftsetr, c_ftsetc.
40 Control parameters that apply to c_ftcurv are: sig, sl1, sln, sf1.
41
43 To use c_ftcurv, load the NCAR Graphics library ngmath.
44
46 fitgrid_params, c_ftseti, c_ftsetr, c_ftsetc.
47
48 Complete documentation for Fitgrid is available at URL
49 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
50
52 Copyright (C) 2000
53 University Corporation for Atmospheric Research
54
55 This documentation is free software; you can redistribute it and/or
56 modify it under the terms of the GNU General Public License as pub‐
57 lished by the Free Software Foundation; either version 2 of the
58 License, or (at your option) any later version.
59
60 This software is distributed in the hope that it will be useful, but
61 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
62 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
63 Public License for more details.
64
65 You should have received a copy of the GNU General Public License along
66 with this software; if not, write to the Free Software Foundation,
67 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
68
69
70
71
72UNIX March 1998 c_ftcurv(3NCARG)