c_csa3ls(3NCARG) | NCAR GRAPHICS | c_csa3ls(3NCARG) |
c_csa3ls - cubic spline approximation, simple entry for three-dimensional input, list output
float *c_csa3ls(int, float [], float [], float [], float [],
int [], int, float [], float [], float[], int *);
float *c_csa3ls(int n, float xi[], float yi[], float zi[], float ui[],
int knots[3], int no, float xo[], float yo[], float zo[],
int *);
c_csa3ls is called to find values of an approximating cubic spline at specified three-dimensional coordinates. If you want to weight the input data values, calculate derivatives, or handle data sparse areas specially, then you will need to use c_csa3lxs.
c_csa3ls returns a pointer to a linear array of data that contains the approximated values calculated at the input list of coordinate values. That is, if out is declared as
float *out;
and we set:
out = c_csa3ls(n, x, y, z, u, knots, no, xo, yo, zo, &ier);
then out[i] is the approximated function value at coordinate point (xo[i], yo[i], zo[i]) for 0 <= i < no. The space for out is allocated internal to c_csa3ls and is no floats in size.
To use c_csa3ls, load the NCAR Graphics library ngmath.
csagrid, c_csa3s, c_csa3xs, c_csa3lxs
Complete documentation for Csagrid is available at URL
http://ngwww.ucar.edu/ngdoc/ng/ngmath/csagrid/csahome.html
Copyright (C) 2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
January 1999 | UNIX |