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

NAME

6       KURV2 - does interpolation for parametric curves
7

SYNOPSIS

9       CALL KURV2 (T, XS, YS, N, X, Y, XP, YP, S, SIGMA)
10
11       The interpolated curve is parameterized by mapping points in the inter‐
12       val [0.,1.] onto the interpolated curve.  The  resulting  curve  has  a
13       parametric  representation  both  of whose components are splines under
14       tension and functions of the polygonal arc  length.  The  value  0.  is
15       mapped  onto  (X[1],Y[1])  and the value 1. is mapped onto (X[N],Y[N]).
16       KURV1 must be called before calling KURV2.
17

DESCRIPTION

19       T           (real, input) A value to be mapped to a point on the curve.
20                   The  interval [0.,1.] is mapped onto the curve such that 0.
21                   is mapped to (X(1),Y(1)) and 1. is mapped  to  (X(N),Y(N)).
22                   Values outside of [0.,1.] result in extrapolation.
23
24       XS          (real,  oputput)  Contains the X coordinate of the interpo‐
25                   lated point that T maps to.
26
27       YS          (real, oputput) Contains the Y coordinate of  the  interpo‐
28                   lated point that T maps to.
29
30       N           (integer, input) The number of input data points. (N > 1)
31
32       X           (real, input) An array containing the X values of the input
33                   points.
34
35       Y           (real, input) An array containing the Y values of the input
36                   points. Adjacent pairs of points must be distinct.
37
38       XP          (real, input) An array of length N as computed by KURV1.
39
40       YP          (real, input) An array of length N as computed by KURV1.
41
42       S           (real, input) An array of length N containing the polygonal
43                   arc lengths of the curve.
44
45       SIGMA       (real, input) Tension factor. Values near zero result in  a
46                   cubic  spline;  large  values  (e.g. 50) result in nearly a
47                   polygonal line. A typical value is 1.
48

ACCESS

50       To use KURV2, load the NCAR Graphics library ngmath.
51

SEE ALSO

53       kurv1, fitgrid_params.
54
55       Complete documentation for Fitgrid is available at URL
56       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
57
59       Copyright (C) 2000
60       University Corporation for Atmospheric Research
61
62       The use of this Software is governed by a License Agreement.
63
64
65
66UNIX                              March 1998                     KURV2(3NCARG)
Impressum