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

NAME

6       c_csa1s  - cubic spline approximation, simple entry for one-dimensional
7       input
8

FUNCTION PROTOTYPE

10       float *c_csa1s(int, float [], float [], int, int, float [], int *);
11
12

SYNOPSIS

14       float *c_csa1s(int n, float xi[], float yi[], int knots,
15                   int m, float xo[], int *ier);
16
17

DESCRIPTION

19       n           (integer,input) The number of input data points. It must be
20                   that  n  is  greater  than  3 and, depending on the size of
21                   knots below, n may have to be larger.
22
23       xi          (real, input) An array dimensioned  for  n  containing  the
24                   abscissae for the input function.
25
26       yi          (real,  input)  An  array  dimensioned for n containing the
27                   functional values of the input function  --  yi[k]  is  the
28                   functional value at xi[k] for k=0,n-1.
29
30       knots       (integer,  input)  The  number  of knots to be used in con‐
31                   structing the approximation spline.  knots must be at least
32                   4.  The larger the value for knots, the closer the approxi‐
33                   mated curve will come to passing through the input function
34                   values.
35
36       m           (integer,  input) The number of values to be calculated for
37                   the output curve.
38
39       xo          (real, input) An array dimensioned for m containing  the  X
40                   coordinates of the output curve.
41
42       ier         (pointer to integer, output) An error return value. If *ier
43                   is returned as 0, then no errors were detected. If *ier  is
44                   non-zero,  then  refer to the error list in the error table
45                   for details.
46

USAGE

48       c_csa1s is called to find an approximating cubic spline for  one-dimen‐
49       sional  input data. If you want to weight the input data values, calcu‐
50       late derivatives, or handle data sparse areas specially, then you  will
51       need to use c_csa1xs.
52
53       c_csa1s returns a pointer to a linear array of data that is the approx‐
54       imated curve.
55

ACCESS

57       To use c_csa1s, load the NCAR Graphics library ngmath.
58

SEE ALSO

60       csagrid, c_csa1xs, c_csa1ls, c_csa1lxs
61
62       Complete documentation for Csagrid is available at URL
63       http://ngwww.ucar.edu/ngdoc/ng/ngmath/csagrid/csahome.html
64
66       Copyright (C) 2000
67       University Corporation for Atmospheric Research
68
69       The use of this Software is governed by a License Agreement.
70
71
72
73UNIX                             January 1999                  c_csa1s(3NCARG)
Impressum