IFL 库(Interpolation Library)提供 AUTOSAR 标准插值函数。库函数不维护状态,为纯函数。支持:
IFL / 1D / 2D / Cur(Curve)/ Map / Interpolation / Extrapolation / Breakpoint / Axis / GetVersionInfo / f32
SWS_Ifl_NNNNN 规范项 ID 约 30+ 条。
IFL 函数按插值维度分类:
| 类型 | 描述 |
|---|---|
| Ifl_Float32 | 浮点 32 位(float) |
| Ifl_IndexType | 索引类型(uint16/32) |
| Ifl_SizeType | 大小类型(uint16/32) |
| API | 签名 | 功能 |
|---|---|---|
| Ifl_DPSearch_f32 | boolean Ifl_DPSearch_f32(float X_Value, const float* X_Axis, Ifl_IndexType X_Size, float Y_Value, const float* Y_Axis, Ifl_IndexType Y_Size, Ifl_IndexType* X_Index, Ifl_IndexType* Y_Index) | 2D 双线性网格单元搜索 |
| Ifl_IpoCur_f32 | float Ifl_IpoCur_f32(const float* X_Axis, const float* Y_Axis, Ifl_IndexType Size, float X_Value) | 1D 曲线插值 |
| Ifl_IpoMap_f32 | float Ifl_IpoMap_f32(const float* X_Axis, const float* Y_Axis, Ifl_IndexType Size, float X_Value) | 1D 映射 |
| Ifl_Interpolate_f32 | float Ifl_Interpolate_f32(const float* X_Axis, const float* Y_Axis, Ifl_IndexType Size, float X_Value, Ifl_IndexType Index) | 1D 单点插值(已知索引) |
| Ifl_IntIpoCur_f32_f32 | float Ifl_IntIpoCur_f32_f32(const float* X_Axis, const float* Y_Axis, const float* Z_Grid, Ifl_IndexType X_Size, Ifl_IndexType Y_Size, float X_Value, float Y_Value) | 2D 曲线插值 |
| Ifl_IntIpoMap_f32f32_f32 | float Ifl_IntIpoMap_f32f32_f32(const float* X_Axis, const float* Y_Axis, const float* Z_Grid, Ifl_IndexType X_Size, Ifl_IndexType Y_Size, float X_Value, float Y_Value) | 2D 映射 |
| Ifl_GetVersionInfo | void Ifl_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr) | 获取版本信息 |
共 7 个 API 函数。
校对轮次:L1 自动校对(2026-06-13)