logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

c_ftcurv - 1D interpolation for non-periodic functions

Access

       To use c_ftcurv, load the NCAR Graphics library ngmath.

Description

       n           The number of input data points. (n > 1)

       xi          An array containing the abscissae for the input function.

       yi          An  array  containing  the  functional values of the input function -- y(k) is the functional
                   value at x(k) for k=0,n.

       m           The number of desired interpolated values.

       xo          An array containing the abscissae for the interpolated values.

       yo          An array containing the interpolated functional values -- yo(k) is the  functional  value  at
                   xo(k) for k=0,n.

Function Prototype

       int c_ftcurv (int, float [], float [], int, float [], float []);

Name

       c_ftcurv - 1D interpolation for non-periodic functions

Return Value

       c_ftcurv returns an error value as per:

       = 0 -- no error.
       = 1 -- if n is less than 2.
       = 2 -- if X values are not strictly increasing.

See Also

       fitgrid_params, c_ftseti, c_ftsetr, c_ftsetc.

       Complete documentation for Fitgrid is available at URL
       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html

Synopsis

       int c_ftcurv (n, xi, yi, m, xo, yo);

Usage

       c_ftcurv  is  called  after  all  of  the  desired  values for control parameters have been set using the
       procedures c_ftseti, c_ftsetr, c_ftsetc.  Control parameters that apply to c_ftcurv are: sig,  sl1,  sln,
       sf1.

See Also