KIPL_Cssmh
Calculate the coefficients of a smooth cubic spline to approximate noisy data.
Interface Definition
void KIPL_Cssmh(int nData, float *xData, float *fData, float *weight, float smpar, float *coef)
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
nData |
Integer |
Number of elements in the xData array. |
Input |
xData |
Single-precision floating-point array |
Array with a length of nData, indicating the horizontal coordinates of data points. |
Input |
fData |
Single-precision floating-point array |
Array with a length of nData, indicating the vertical coordinates of data points. |
Input |
weight |
Single-precision floating-point array |
Array with a length of nData, containing the estimated standard deviation of fData. |
Input |
smpar |
Single-precision floating-point |
Non-negative number that controls the smoothness. |
Input |
coef |
Single-precision floating-point array |
Array with a length of 4*nData, indicating the generated coefficient sequence. |
Output |
Dependencies
#include "kipl.h"