KIPL_Csval
Calculate the value of a cubic spline fitting function at a given position x.
Interface Definition
float KIPL_Csval(float xi, int initv, float *xData, float *coef)
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
xi |
Single-precision floating-point |
Position where the cubic spline fitting value needs to be calculated. |
Input |
initv |
Integer |
Number of cubic polynomials obtained through fitting, which is equal to nData – 1. |
Input |
xData |
Single-precision floating-point array |
Array with a length of initv + 1, indicating the horizontal coordinates of data points. |
Input |
coef |
Single-precision floating-point array |
Array with a length of 4*(initv + 1), indicating the generated coefficient sequence. |
Output |
Dependencies
#include "kipl.h"
Parent topic: Cubic Spline Functions