
SC5305A Operating & Programming Manual
Rev 2.1.0
46
Function:
sc5305a_Spline
Definition:
int sc5305a_Spline(double *xArray, double *yArray, int nPoints,
double firstBoundary , double secondBoundary, double *yInterpolant)
Input
:
double *xArray
(the set of independent values)
double *yArray
(the set of x-dependent function values; size is the same as xArray)
int nPoints
(the number of points in xArray)
double firstBoundary
(the second derivative of the first point in the set)
double secondBoundary
(the second derivative of the last point in the set)
Output
:
double *yInterpolant
(the return set of interpolants)
Description
:
sc5305a_Spline
returns the spline interpolants of the input parameters.
Function:
sc5305a_SplineInterp
Definition:
int sc5305a_SplineInterp(double *xArray, double *yArray, double *yInterpolant,
double nPoints, double x, double *interpolatedYValue)
Input
:
double *xArray
(the set of independent values)
double *yArray
(the set of x-dependent function values; size is the same as xArray)
double *yInterpolant
(the returned interpolant from spline())
int nPoints
(the numbers of points in xArray)
double x
(the value at which interpolation is performed)
Output
:
double *interpolatedYValue
(the corresponding interpolated value at x)
Description
:
sc5305a_SplineInterp
returns the spline interpolated value.