---
title: KIPL_Bsint
description: "计算basis样条插值的系数。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0583.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0583.html
indexId: d19392cdeb5bf6ce0b8de2dd9f8bb9a773005394b496fe40186f39f59fdb32f061
---
# KIPL_Bsint

计算basis样条插值的系数。

#### 接口定义

void KIPL_Bsint(int nData, float *xData, float *fData, int k, float *xKnot, float *coef)


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| nData | 整型数 | 表示xData数组元素个数。 | 输入 |
| xData | 单精度浮点数组 | 长度为nData的数组，表示数据点的横坐标。 | 输入 |
| fData | 单精度浮点数组 | 长度为nData的数组，表示数据点的纵坐标。 | 输入 |
| k | 整型数 | 表示样条的阶数。 | 输入 |
| xKnot | 单精度浮点数组 | 长度为nData+k的数组，表示KIPL\_Bsnak生成的节点序列。 | 输入 |
| coef | 单精度浮点数组 | 长度为nData的数组，表示生成的系数序列。 | 输出 |


#### 依赖

#include "kipl.h"
