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

NAME

6       CURVP2 - interpolate a periodic function at a specified point
7

SYNOPSIS

9       FUNCTION CURVP2 (T, N, X, Y, P, YP, SIGMA)
10
11       This  function interpolates a value at a specified point using a spline
12       under tension.  CURVP1 must be called prior to calling CURVP2, and  the
13       values thus obtained used as input to CURVP2. CURVP2 returns the inter‐
14       polated 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       X           (real, input) The period of the function.
30
31       YP          (real, input) Contains values for the second derivative (as
32                   calculated by CURV1).
33
34       SIGMA       (real,  input) Tension factor. Values near zero result in a
35                   cubic spline; large values (e.g. 50)  result  in  nearly  a
36                   polygonal line. A typical value is 1.
37

RETURN VALUE

39       CURVP2 returns the interpolated value at the specified point T.
40

ACCESS

42       To use CURVP2, load the NCAR Graphics library ngmath.
43

SEE ALSO

45       curvp1, fitgrid_params.
46
47       Complete documentation for Fitgrid is available at URL
48       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
49
51       Copyright (C) 2000
52       University Corporation for Atmospheric Research
53
54       The use of this Software is governed by a License Agreement.
55
56
57
58UNIX                              March 1998                    CURVP2(3NCARG)
Impressum