1CURV2(3NCARG)                    NCAR GRAPHICS                   CURV2(3NCARG)
2
3
4

NAME

6       CURV2 - 1D interpolation for non-periodic functions.
7

SYNOPSIS

9       FUNCTION CURV2 (T, N, X, Y, YP, SIGMA)
10
11       This  function interpolates a value at a specified point using a spline
12       under tension.  CURV1 must be called prior to calling  CURV2,  and  the
13       values thus obtained used as input to CURV2. CURV2 returns the interpo‐
14       lated function value at the X-coordinate specified.
15

DESCRIPTION

17       T           (real, input) The abscissa for which an interpolated  func‐
18                   tion value is desired.
19
20       N           (integer, input) The number of input data values. (N > 1)
21
22       X           (real,  input)  An  array  containing the abscissae for the
23                   input function.
24
25       Y           (real, input) An array containing the functional values  of
26                   the  input data -- Y(K) is the functional value at X(K) for
27                   K=1,N.
28
29       YP          (real, input) Contains values for the second derivative (as
30                   calculated by CURV1).
31
32       SIGMA       (real,  input) Tension factor. Values near zero result in a
33                   cubic spline; large values (e.g. 50)  result  in  nearly  a
34                   polygonal line. A typical value is 1.
35

RETURN VALUE

37       CURV2 returns the interpolated value at the specified point T.
38

ACCESS

40       To use CURV2, load the NCAR Graphics library ngmath.
41

SEE ALSO

43       curv1, fitgrid_params.
44
45       Complete documentation for Fitgrid is available at URL
46       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
47
49       Copyright (C) 2000
50       University Corporation for Atmospheric Research
51
52       This  documentation  is  free  software; you can redistribute it and/or
53       modify it under the terms of the GNU General  Public  License  as  pub‐
54       lished  by  the  Free  Software  Foundation;  either  version  2 of the
55       License, or (at your option) any later version.
56
57       This software is distributed in the hope that it will  be  useful,  but
58       WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of MER‐
59       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  General
60       Public License for more details.
61
62       You should have received a copy of the GNU General Public License along
63       with this software; if not, write  to  the  Free  Software  Foundation,
64       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
65
66
67
68
69UNIX                              March 1998                     CURV2(3NCARG)
Impressum