Rate This Document
Findability
Accuracy
Completeness
Readability

KIPL_Bsval

Calculate the value of the basis spline fitting function at a given position x.

Interface Definition

float KIPL_Bsval(float xi, int k, float *xKnot, int ncoef, float *coef)

Parameters

Parameter

Type

Description

Input/Output

xi

Single-precision floating-point

Position where the fitting value needs to be calculated.

Input

ncoef

Integer

Length of the coef array, which is equal to nData.

Input

k

Integer

Order of the spline.

Input

xKnot

Single-precision floating-point array

Array with a length of nData + k, indicating the knot sequence generated by KIPL_Bsnak.

Input

coef

Single-precision floating-point array

Array with a length of nData, indicating the generated coefficient sequence.

Input

Return Value

Single-precision floating-point

Value of the basis spline fitting function at a given position x.

Output

Dependencies

#include "kipl.h"